iamjackg / md2cf

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

any chance for --only-changed to be compatible with --enable-relative-links ? #121

Open munhitsu opened 9 months ago

munhitsu commented 9 months ago

We are finding --enable-relative-links very useful, however we can't use it at our scale.

Every time we publish a page that has internal links, md2cf will 1st upload a new version with f"md2cf-internal-link-{uuid.uuid4()}" strings as links and then in the following step it will update the links to real confluence links (function update_pages_with_relative_links)

This results in 2 page versions on every push of the folder irrespectively if --only-changed is used

Background

As we are synchronising to confluence about 200 ADRs and RFCs we get hit by Confluence API 500 error on nearly every push so I'm looking for every way to reduce the document changes.

md2cf version 2.3.0