Graphviz graphs are not generated, text is displayed instead
Categories
(Developer Infrastructure :: Source Documentation, defect)
Tracking
(firefox77 fixed)
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: flod, Assigned: Pike, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=python])
Attachments
(1 file)
See for example this page
https://firefox-source-docs.mozilla.org/build/buildsystem/build-overview.html?highlight=digraph
.. graphviz::
digraph build_components {
rankdir="LR";
"configure" -> "config.status" -> "build backend" -> "build output"
}
Graph is not generated, the text is simply displayed.
Comment 1•4 years ago
|
||
I didn't know we had graphviz :)
is it something which worked in the past?
FYI, we have mermaid support:
https://firefox-source-docs.mozilla.org/tools/moztreedocs/mermaid-integration.html
Updated•4 years ago
|
Comment 2•4 years ago
|
||
We do have the built-in extension enabled:
https://searchfox.org/mozilla-central/source/docs/conf.py#40
I'm unsure if this was ever working in the past or not.
Assignee | ||
Comment 3•4 years ago
|
||
So yeah, this probably worked in the past. This requires for graphviz' dot
to be installed on the machine, though, https://www.sphinx-doc.org/en/master/usage/extensions/graphviz.html.
This might be on by default on rtd, so it might have been broken for that long :-/
The extension to sphinx is still on in https://searchfox.org/mozilla-central/rev/2cd2d511c0d94a34fb7fa3b746f54170ee759e35/docs/conf.py#40
Comment 4•4 years ago
|
||
I will have a look except if someone wants to try before
Reporter | ||
Comment 5•4 years ago
|
||
I've checked quickly, and looks like the build doc is the only currently broken. But we have a patch adding graphs to a couple more docs (that's why I found the error), so it would be great to fix this.
Assignee | ||
Comment 6•4 years ago
|
||
The sphinx.ext.graphviz
extension requires dot
to be installed.
That's default on rtd, which is why we use it in the docs.
Adding this to the lint image as we use that for document building,
and it shouldn't hurt.
Updated•4 years ago
|
Pushed by axel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/81d4ad686888 add graphviz to lint image to fix docs, r=sylvestre
Comment 8•4 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•