buildhosts.rst 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. .. _buildhosts:
  2. ==========
  3. Buildhosts
  4. ==========
  5. .. sidebar:: This article needs some work
  6. If you have any contribution send us your :pull:`PR <../pulls>`, see
  7. :ref:`how to contribute`.
  8. To get best results from build, its recommend to install additional packages
  9. on build hosts.
  10. .. _docs build:
  11. Build docs
  12. ==========
  13. .. _Graphviz: https://graphviz.gitlab.io
  14. .. _ImageMagick: https://www.imagemagick.org
  15. .. _XeTeX: https://tug.org/xetex/
  16. .. _dvisvgm: https://dvisvgm.de/
  17. .. sidebar:: Sphinx build needs
  18. - ImageMagick_
  19. - Graphviz_
  20. - XeTeX_
  21. - dvisvgm_
  22. Most of the sphinx requirements are installed from :origin:`setup.py` and the
  23. docs can be build from scratch with ``make docs``. For better math and image
  24. processing additional packages are needed. The XeTeX_ needed not only for PDF
  25. creation, its also needed for :ref:`math` when HTML output is build.
  26. To be able to do :ref:`sphinx:math-support` without CDNs, the math are rendered
  27. as images (``sphinx.ext.imgmath`` extension). If your docs build (``make
  28. docs``) shows warnings like this::
  29. WARNING: dot(1) not found, for better output quality install \
  30. graphviz from http://www.graphviz.org
  31. ..
  32. WARNING: LaTeX command 'latex' cannot be run (needed for math \
  33. display), check the imgmath_latex setting
  34. you need to install additional packages on your build host, to get better HTML
  35. output.
  36. .. _system requirements:
  37. .. tabs::
  38. .. group-tab:: Ubuntu / debian
  39. .. code-block:: sh
  40. $ sudo apt install graphviz imagemagick texlive-xetex librsvg2-bin
  41. .. group-tab:: Arch Linux
  42. .. code-block:: sh
  43. $ sudo pacman -S graphviz imagemagick texlive-bin extra/librsvg
  44. .. group-tab:: Fedora / RHEL
  45. .. code-block:: sh
  46. $ sudo dnf install graphviz graphviz-gd texlive-xetex-bin librsvg2-tools
  47. For PDF output you also need:
  48. .. tabs::
  49. .. group-tab:: Ubuntu / debian
  50. .. code:: sh
  51. $ sudo apt texlive-latex-recommended texlive-extra-utils ttf-dejavu
  52. .. group-tab:: Arch Linux
  53. .. code:: sh
  54. $ sudo pacman -S texlive-core texlive-latexextra ttf-dejavu
  55. .. group-tab:: Fedora / RHEL
  56. .. code:: sh
  57. $ sudo dnf install \
  58. texlive-collection-fontsrecommended texlive-collection-latex \
  59. dejavu-sans-fonts dejavu-serif-fonts dejavu-sans-mono-fonts
  60. .. _system requirements END:
  61. .. literalinclude:: ../conf.py
  62. :language: python
  63. :start-after: # sphinx.ext.imgmath setup
  64. :end-before: # sphinx.ext.imgmath setup END