def build_docs(source, destination, doctrees):
    sphinx_argv = [
        '-b', 'html',
        '-d', doctrees,
        source,
        destination]

    sphinx_main(['sphinx-build'] + sphinx_argv)
Use Sphinx to build the reStructuredText into HTML.
dataset/ETHPy150Open robmadole/jig/salt/roots/salt/docs/httpdocs.py/build_docs