@@ -0,0 +1,103 @@
7+.. sidebar:: This article needs some work
9+ If you have any contribution send us your :pull:`PR <../pulls>`, see
10+ :ref:`how to contribute`.
12+To get best results from build, its recommend to install additional packages
20+.. _Graphviz: https://graphviz.gitlab.io
21+.. _ImageMagick: https://www.imagemagick.org
22+.. _XeTeX: https://tug.org/xetex/
23+.. _dvisvgm: https://dvisvgm.de/
25+.. sidebar:: Sphinx build needs
32+Most of the sphinx requirements are installed from :origin:`setup.py` and the
33+docs can be build from scratch with ``make docs``. For better math and image
34+processing additional packages are needed. The XeTeX_ needed not only for PDF
35+creation, its also needed for :ref:`math` when HTML output is build.
37+To be able to do :ref:`sphinx:math-support` without CDNs, the math are rendered
38+as images (``sphinx.ext.imgmath`` extension). If your docs build (``make
39+docs``) shows warnings like this::
41+ WARNING: dot(1) not found, for better output quality install \
42+ graphviz from http://www.graphviz.org
44+ WARNING: LaTeX command 'latex' cannot be run (needed for math \
45+ display), check the imgmath_latex setting
47+you need to install additional packages on your build host, to get better HTML
50+.. _system requirements:
54+ .. group-tab:: Ubuntu / debian
58+ $ sudo apt install graphviz imagemagick texlive-xetex librsvg2-bin
60+ .. group-tab:: Arch Linux
64+ $ sudo pacman -S graphviz imagemagick texlive-bin extra/librsvg
66+ .. group-tab:: Fedora / RHEL
70+ $ sudo dnf install graphviz graphviz-gd texlive-xetex-bin librsvg2-tools
73+For PDF output you also need:
77+ .. group-tab:: Ubuntu / debian
81+ $ sudo apt texlive-latex-recommended texlive-extra-utils ttf-dejavu
83+ .. group-tab:: Arch Linux
87+ $ sudo pacman -S texlive-core texlive-latexextra ttf-dejavu
89+ .. group-tab:: Fedora / RHEL
94+ texlive-collection-fontsrecommended texlive-collection-latex \
95+ dejavu-sans-fonts dejavu-serif-fonts dejavu-sans-mono-fonts
97+.. _system requirements END:
99+.. literalinclude:: ../conf.py
101+ :start-after: # sphinx.ext.imgmath setup
102+ :end-before: # sphinx.ext.imgmath setup END