-
Notifications
You must be signed in to change notification settings - Fork 99
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
Uploading wrong attachments for drawio #965
Comments
Thanks for the report -- there looks to be something up. Using the drawio sample set, a run appears to render drawio content as expected. When trying to match the configuration exactly, the same results. Although, when inspecting the Confluence instance being published to, both the
Uploading both files is less than ideal. We should maybe update confluencebuilder to detect when image content is "replaced" and remove it from asset tracking. That being said, it does not explain why the figures are not working for the reported use case. Some questions about your case:
|
The svg is generated locally: I don't see svg being uploaded, only drawio.
The resulting confluence page only has the drawio as attachment. I tried jpg as well, no difference. sphinxcontrib-drawio: sphinxcontrib-drawio==0.0.17
Thanks! |
One thing I do that might be different from others is this:
I suspect the builder failed to find the svg asset because of this. I don't know if I am using this feature correctly. |
I may be completely off but I noticed that we are always looking for an asset in the srcdir? If an assert is generated (like drawio), then it will be in the build dir, right? When looking for an assert, can we check both src dir and build dir?
|
You might be on the right path. I assume confluencebuilder cannot find the path of the SVG when using Do you by chance see any
Unfortunately, it is not always consistent. It has been observed various extensions to unique things when referencing certain files -- a mix of absolute paths, relative to a source and relative to a build directory (on a side note, no idea why drawio is generating content in I do no think you are doing anything wrong from a quick inspection of the CMake snippet you have provided. |
Hmm.. after switching to png/jpg, the image will be uploaded to confluence. It seems to be specific to SVG. |
If you do not mind trying this out, but do other SVG images (non-DrawIO generated) work as expected? |
Hi,
First, thanks for this great tool! I finally don't have to deal with confluence editor anymore.
I have installed both drawio and confluencebuilder extensions:
I tried to include drawio figures using this directive:
.. drawio-image:: diagram/xxx.drawio
The problem is the figure won't show up in confluence. I checked the source, it is referring to a xxx.svg file, which is expected. However, I noticed confluencebuilder is trying to upload the raw drawio file xxx.drawio instead of the generated svg file.
The text was updated successfully, but these errors were encountered: