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`.
17To get best results from build, its recommend to install additional packages
18on build hosts (see :ref:`searx.sh`).::
20 sudo -H ./utils/searx.sh install buildhost
22This will install packages needed by searx:
24.. kernel-include:: $DOCS_BUILD/includes/searx.rst
25 :start-after: START distro-packages
26 :end-before: END distro-packages
28and packages needed to build docuemtation and run tests:
30.. kernel-include:: $DOCS_BUILD/includes/searx.rst
31 :start-after: START build-packages
32 :end-before: END build-packages
39.. _Graphviz: https://graphviz.gitlab.io
40.. _ImageMagick: https://www.imagemagick.org
41.. _XeTeX: https://tug.org/xetex/
42.. _dvisvgm: https://dvisvgm.de/
44.. sidebar:: Sphinx build needs
51Most of the sphinx requirements are installed from :origin:`setup.py` and the
52docs can be build from scratch with ``make docs``. For better math and image
53processing additional packages are needed. The XeTeX_ needed not only for PDF
54creation, its also needed for :ref:`math` when HTML output is build.
56To be able to do :ref:`sphinx:math-support` without CDNs, the math are rendered
57as images (``sphinx.ext.imgmath`` extension).
59Here is the extract from the :origin:`docs/conf.py` file, setting math renderer
62.. literalinclude:: ../conf.py
64 :start-after: # sphinx.ext.imgmath setup
65 :end-before: # sphinx.ext.imgmath setup END
67If your docs build (``make docs``) shows warnings like this::
69 WARNING: dot(1) not found, for better output quality install \
70 graphviz from https://www.graphviz.org
72 WARNING: LaTeX command 'latex' cannot be run (needed for math \
73 display), check the imgmath_latex setting
75you need to install additional packages on your build host, to get better HTML
80 .. group-tab:: Ubuntu / debian
84 $ sudo apt install graphviz imagemagick texlive-xetex librsvg2-bin
86 .. group-tab:: Arch Linux
90 $ sudo pacman -S graphviz imagemagick texlive-bin extra/librsvg
92 .. group-tab:: Fedora / RHEL
96 $ sudo dnf install graphviz graphviz-gd texlive-xetex-bin librsvg2-tools
99For PDF output you also need:
103 .. group-tab:: Ubuntu / debian
107 $ sudo apt texlive-latex-recommended texlive-extra-utils ttf-dejavu
109 .. group-tab:: Arch Linux
113 $ sudo pacman -S texlive-core texlive-latexextra ttf-dejavu
115 .. group-tab:: Fedora / RHEL
120 texlive-collection-fontsrecommended texlive-collection-latex \
121 dejavu-sans-fonts dejavu-serif-fonts dejavu-sans-mono-fonts \
129.. _ShellCheck: https://github.com/koalaman/shellcheck
131To lint shell scripts, we use ShellCheck_ - A shell script static analysis tool.
133.. SNIP sh lint requirements
137 .. group-tab:: Ubuntu / debian
141 $ sudo apt install shellcheck
143 .. group-tab:: Arch Linux
147 $ sudo pacman -S shellcheck
149 .. group-tab:: Fedora / RHEL
153 $ sudo dnf install ShellCheck
155.. SNAP sh lint requirements
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list