Build documentation

HTML

import sphinx

sphinx.build_main([
    '-E',
    '-j', '2',
    '-b', 'html',
    '-D', 'project=Project',
    '-c', conf_directory,
    input_directory,
    output_directory,
])

LaTeX

'-b', 'latex',

Todo

turn make command into xelatex command

make PDFLATEX=xelatex -C build/latex all-pdf