-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hopefully fix issue #30 and #32 #31
base: master
Are you sure you want to change the base?
Conversation
- Since the image is attached to this page, using ri:attachment should be better than ri:url - The documentation is at https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html#ConfluenceStorageFormat-Images at the time of this writing.
The reason I originally picked URI instead of attachments, I believe was so that a version of a page in the Confluence history retained the explicit link to the version of the image that was embedded in the notebook at the time of the posting. With attachments, I believe a version of a page in the history would also update to point to the attachment on the latest version of the page rather than the attachment at the time the page was posted. That behavior could have changed in newer Confluence versions. I no longer have access to a Confluence server to test any of the PRs here. @tabbal, you're the best candidate to review or maybe, @danizen, you can try to confirm or deny the above behavior. |
@tabbal , the web links didn't work right in my copy of Confluence. If I go back to a version from the history where an image is not rendering properly, I see the problem. The web link is Regardless of the reason; I think the design described by @parente does not meet the KISS principal, and I think it is brittle because many times a Confluence instance may be behind a reverse proxy. I also think that the ability to go back to an earlier published version from the Confluence history is not as important as the brittleness. If you are not convinced of the brittleness, I can explain - I do not want to use techno babble about Apache httpd2 directives, Java containers, response header and content re-writing, etc. My understanding of @parente's design is that he is trying to make sure that the right thing happens if a confluence user simply restores a previous version of a published notebook. A user might try this. Of course, a confluence user might not understand that the point is "notebook as code" and might edit the page anyway once getting it "into" confluence. So, there is no real way to keep things "in sync". My ideal nbconvert user will prefer to re-run nbconflux (i.e. using the notebook from another git branch), and even if they do not, the original notebook version is attached to the confluence page. Enough said -- if you are convinced, great. If not, I'll figure out why the link is different, and try to fix that. |
Answer for earlier questions: I think that preserving the original behavior with a corrected |
Awesome, thanks @danizen! |
at the time of this writing.