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)
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)
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.')
def setup_class(cls): cls.docs_dir = join(dirname(__file__), 'source', 'docs') with cd(cls.docs_dir): sphinx_main(['dummy', '-b', 'text', '-E', '.', '_build'])
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.')