Build documentation

HTML

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

'-b', 'latex',

Todo

turn make command into xelatex command

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