iamjackg / md2cf

Convert and upload Markdown documents to Confluence
MIT License
91 stars 49 forks source link

Resolve title conflicts by prefixing with parent title #127

Open jeffmercerVG opened 6 months ago

jeffmercerVG commented 6 months ago

Implementation for https://github.com/iamjackg/md2cf/issues/126

This adds the ability to prefix a page's title with it's parent page's title. This can prevent title conflicts. This is an opt-in feature on a per-folder basis. You must put the following in the folders .pages file

add-parent-title-as-prefix: true
sheldonhull commented 4 months ago

@iamjackg is this something we can get merged? Would be really useful due to constraints in confluence for uniqueness.

Note I see this readme:

When uploading entire folders, consider adding a prefix to each page title to prevent collisions. You can do this by using the --prefix parameter.

not sure the difference so I'll experiment with that and if I have anything useful add it otherwise move back to issue for details. Thanks!🙏