rtfd/docs/public/sphinx/build.rst
2020-07-20 11:31:22 +02:00

32 lines
443 B
ReStructuredText

Build documentation
===================
HTML
----
.. code:: python3
import sphinx.cmd.build
sphinx.cmd.build.build_main([
'-E',
'-j', '2',
'-b', 'html',
'-D', 'project=Project',
'-c', conf_directory,
input_directory,
output_directory,
])
LaTeX
-----
.. code:: python3
'-b', 'latex',
.. todo:: turn make command into xelatex command
.. code:: shell
make PDFLATEX=xelatex -C build/latex all-pdf