2017-12-02 22:02:37 +00:00
|
|
|
Build documentation
|
2019-08-06 10:00:22 +00:00
|
|
|
===================
|
|
|
|
|
2019-08-25 18:37:59 +00:00
|
|
|
HTML
|
|
|
|
----
|
|
|
|
|
2019-08-25 18:22:57 +00:00
|
|
|
.. code:: python3
|
|
|
|
|
2020-07-20 09:31:22 +00:00
|
|
|
import sphinx.cmd.build
|
2019-08-25 18:22:57 +00:00
|
|
|
|
2020-07-20 09:31:22 +00:00
|
|
|
sphinx.cmd.build.build_main([
|
2019-08-25 18:22:57 +00:00
|
|
|
'-E',
|
|
|
|
'-j', '2',
|
|
|
|
'-b', 'html',
|
|
|
|
'-D', 'project=Project',
|
|
|
|
'-c', conf_directory,
|
|
|
|
input_directory,
|
|
|
|
output_directory,
|
|
|
|
])
|
2019-08-25 18:37:59 +00:00
|
|
|
|
|
|
|
LaTeX
|
|
|
|
-----
|
|
|
|
|
|
|
|
.. code:: python3
|
|
|
|
|
|
|
|
'-b', 'latex',
|
|
|
|
|
|
|
|
.. todo:: turn make command into xelatex command
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
make PDFLATEX=xelatex -C build/latex all-pdf
|