Closed Bug 1629893 Opened 4 years ago Closed 4 years ago

Graphviz graphs are not generated, text is displayed instead

Categories

(Developer Infrastructure :: Source Documentation, defect)

defect

Tracking

(firefox77 fixed)

RESOLVED FIXED
mozilla77
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.

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

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.

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

I will have a look except if someone wants to try before

Mentor: sledru
Keywords: good-first-bug
Whiteboard: [lang=python]

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.

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.

Assignee: nobody → l10n
Status: NEW → ASSIGNED
Pushed by axel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/81d4ad686888
add graphviz to lint image to fix docs, r=sylvestre
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: