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

Feature Request: Treat README.md as Folder Note

Deastrom opened this issue · comments

I have played around with this tool a bit and I am currently writing some bash logic to rename README.md files to the same name of their folder to take advantage of the Folder Note feature.

The reasoning behind this is that the README.md for a folder is universally treated as the "folder note" (as implemented in the obsidian plugin).

At the end of the day, having the "Folder note name" being configurable in the CLI would be amaze-balls.

thank you for this project.

another idea would be to use the connie-title front matter to support folder-notes like functionality.

if connie-title == directory name: do folder-note

find confluence-docs -type f -iname "readme.md" | awk -F"/" '{old=$0; sub($NF, $(NF-1), $0); new=$0; system("mv " old " " new ".md")}'

The one liner i figured out to do this logic for me

This should of already been working. I will need to find the bug and fix it.

Thanks for reporting

i am running this in 5.4 due to the /app/bridge.js error in latest

docker run -u "1000:1000" -it --rm -v "$(pwd):/content" \
  -e ATLASSIAN_API_TOKEN \
  -e ATLASSIAN_USERNAME \
  -e CONFLUENCE_BASE_URL \
  -e CONFLUENCE_PARENT_ID  \
  -e FOLDER_TO_PUBLISH \
  -e CONFLUENCE_CONTENT_ROOT \
  ghcr.io/markdown-confluence/publish:5.4 node /app/index.js

i see it in the changelog now, sorry for the issue, closing this.

Ahh will get the new update out soon to have that fixed.