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
sphinx.ext.graphviz: custom node shape images are not copied to _images at building #8232
Comments
This report contains a bug and a feature request. The first is a bug that graphviz failed to find the image files if the image source (.dot) file is placed at sub directory. It was caused that our graphviz extension invokes dot command just under the source directory. I confirmed the bug with And another one is the image files refered from the image source are not copied. It is happened when |
…le is in subdir To support images for graphviz, graphviz commands (ex. dots) should be invoked at the directory placed the graph file.
…sphinx-doc#8232) To support images for graphviz, graphviz commands (ex. dots) should be invoked at the directory placed the graph file.
…sphinx-doc#8232) To support images for graphviz, graphviz commands (ex. dots) should be invoked at the directory placed the graph file.
I posted #8766 to fix the bug. |
Note: I think pydot might help to parse the graph file. |
…sphinx-doc#8232) To support images for graphviz, graphviz commands (ex. dots) should be invoked at the directory placed the graph file.
…sphinx-doc#8232) To support images for graphviz, graphviz commands (ex. dots) should be invoked at the directory placed the graph file.
graphviz: Image node is not rendered if graph file is in subdir (refs: #8232)
Hi @tk0miya , i am still facing the bug in Sphinx v4.3.1 (latest). For example for source files
and the minimal reST snippet: .. graphviz::
digraph {
typo3 [
image="typo3.png"
label=""
]
} the image does not get copied to <image xlink:href="typo3.png" width="482px" height="204px" preserveAspectRatio="xMinYMin meet" x="15.6798" y="-211.602"/> |
@alexander-nitsche Thanks, |
hi @tk0miya , if sphinx would be written in PHP i would do it but have to stick to provide bug report details for the moment. |
Okay, don't mind. |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Start from autodoc
Unzip this archive in
source
: graphviz_image_copy_issue.zipBuild the doc:
make html
Display the built doc in a browser
The graph doesn't display the declared image in the
custom
node.Now copy the
film.svg
file manually intobuild/html/_images
Refresh the documentation in the browser, the custom shape displays correctly
Expected behavior
The targetted image to be copied in
build/html/_images
by default.Your project
Link to your sphinx project, or attach zipped small project sample.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment info
The text was updated successfully, but these errors were encountered: