Esempio n. 1
0
def build_docs(source, destination, doctrees):
    """
    Use Sphinx to build the reStructuredText into HTML.
    """
    sphinx_argv = ['-b', 'html', '-d', doctrees, source, destination]

    sphinx_main(['sphinx-build'] + sphinx_argv)
Esempio n. 2
0
def build_docs(source, destination, doctrees):
    """
    Use Sphinx to build the reStructuredText into HTML.
    """
    sphinx_argv = [
        '-b', 'html',
        '-d', doctrees,
        source,
        destination]

    sphinx_main(['sphinx-build'] + sphinx_argv)
Esempio n. 3
0
 def setup_class(cls):
     cls.docs_dir = join(dirname(__file__), 'source', 'docs')
     with cd(cls.docs_dir):
         if sphinx_main(['dummy', '-b', 'text', '-E', '.', '_build']):
             raise RuntimeError('Sphinx build exploded.')
Esempio n. 4
0
 def setup_class(cls):
     cls.docs_dir = join(dirname(__file__), 'source', 'docs')
     with cd(cls.docs_dir):
         sphinx_main(['dummy', '-b', 'text', '-E', '.', '_build'])
Esempio n. 5
0
 def setup_class(cls):
     """Run Sphinx against the dir adjacent to the testcase."""
     cls.docs_dir = join(cls.this_dir(), 'source', 'docs')
     with cd(cls.docs_dir):
         if sphinx_main(['.', '-b', 'text', '-E', '_build']):
             raise RuntimeError('Sphinx build exploded.')