xyz2tex / dot2tex

Convert graphs generated by Graphviz to LaTeX friendly formats
Other
150 stars 44 forks source link

dot2tex: documentation doesnt build with sphinx 1.8 #63

Closed sandrotosi closed 5 years ago

sandrotosi commented 5 years ago

Hello, in Debian we just received this bug report, http://bugs.debian.org/918814:

dot2tex fails to build with Sphinx 1.8, currently available in experimental:

  /usr/bin/make -C docs/ html
  make[2]: Entering directory '/<<PKGBUILDDIR>>/docs'
  sphinx-build -b html -d _build/doctrees   . _build/html
  Running Sphinx v1.8.3

  Extension error:
  Could not import extension sphinx.ext.pngmath (exception: No module named pngmath)

The pngmath extension was deprecated in Sphinx 1.4 and has been removed [1]
in Sphinx 1.8. The recommended alternative is sphinx.ext.imgmath [2] which
also has SVG support in addition to PNG.

To me it looks like this extension is unused anyway: there are no “.. math::”
directives or “:math:” roles, and the binary package does not have any
generated PNG images. So maybe this extension can be simply removed from
extensions in conf.py.

[1]: https://github.com/sphinx-doc/sphinx/pull/4702
[2]: https://www.sphinx-doc.org/en/1.8/usage/extensions/math.html

could you have a look at making dot2tex compatible with sphinx 1.8?

thanks!

kjellmf commented 5 years ago

Hope this helps. I have not tested it.

sandrotosi commented 5 years ago

yep that worked, thanks!