You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to include svg files into my documentation. In my source files I use:
.. graphviz::
:caption::align: center
... dot code
Thus graphviz-svg files are produced and are shown as expected, when I open the respective html-page on a browser.
But if I embed my Sphinx-html-Documentation on a third-party website and open a respective html-page on this third-party website: The browser is downloading the graphviz-svg instead of just showing it.
The html-page source including a graphviz-svg looks like this:
<figureclass="align-center" id="id1"><divclass="graphviz"><objectdata="_images/graphviz-svg" type="image/svg+xml" class="graphviz"><pclass="warning">graph a ...
...
</figcaption></figure>
On the other hand: If I include a regular-svg file (without graphviz):
The html-page source looks like this:
My assumption is, that the div class="graphviz" ... class="graphviz" makes a difference.
Anybody who has an idea what the problem is? From my understanding, sphinx.ext.graphviz should make sure, that its own classes or whatever cannot interfere with classes defined elsewhere... or am I wrong?
How to Reproduce
Unrelated, because error only appears on third-party website.
Describe the bug
I use sphinx.ext.graphviz with the option:
to include svg files into my documentation. In my source files I use:
Thus graphviz-svg files are produced and are shown as expected, when I open the respective html-page on a browser.
But if I embed my Sphinx-html-Documentation on a third-party website and open a respective html-page on this third-party website: The browser is downloading the graphviz-svg instead of just showing it.
The html-page source including a graphviz-svg looks like this:
On the other hand: If I include a regular-svg file (without graphviz):
The html-page source looks like this:
And the regular-svg is just shown, as expected.
My assumption is, that the
div class="graphviz" ... class="graphviz"
makes a difference.Anybody who has an idea what the problem is? From my understanding, sphinx.ext.graphviz should make sure, that its own classes or whatever cannot interfere with classes defined elsewhere... or am I wrong?
How to Reproduce
Unrelated, because error only appears on third-party website.
Environment Information
Sphinx extensions
Additional context
No response
The text was updated successfully, but these errors were encountered: