markdown-confluence / markdown-confluence

Publish your Markdown Files to Confluence

Home Page:https://markdown-confluence.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trying to publish example project and encountering errors.

serge-afanasyev opened this issue · comments

I am trying to use https://github.com/markdown-confluence/docs-markdown-confluence project as proof of concept of publishing documentation to confluence.
Obviously I need to change contentRoot property in config since I don't have /github/workspace/src/ directory in my filesystem. I am setting this property to ./src/ and running the command npx @markdown-confluence/cli from repository root.
As a result I am getting errors:
updateMarkdownValues {"actualAbsoluteFilePath":"src\\src\\development","absoluteFilePath":"src\\development","contentRoot":"./src/","errorMessage":"ENOENT: no such file or directory, stat '<REDACTED>\\src\\src\\development'"}
I am on Windows using powershell. Bash on Windows behaves similar, producing ENOENT error. It looks like it is trying to concatenate perceived absolute path of content root directory with relative path of the target file/directory to repository root directory.
{"actualAbsoluteFilePath":"src\\src\\development", "absoluteFilePath":"src\\development"... is obviously wrong path.

I have found a workaround. Use bash and specify . for contentRoot and src for folderToPublish but now I am getting

Error: Page title "index" is not unique across all files.

Is it possible to do publishing manually? Thank you in advance.

I'm getting a similar, but different name where "Item-Management' must be unique, BUT, grep is not returning anything with that title, phrase, or anything in anyof these folders. Unless the Folder AND the File must be uniquely named.