def task_docs(): doc_files = glob.glob('doc/*.rst') + ['README.rst'] yield docs.spell(doc_files, 'doc/dictionary.txt') yield docs.sphinx('doc/', 'doc/_build/html/', task_dep=['spell', 'doc_sample']) yield docs.pythonhosted_upload('doc/_build/html/', task_dep=['sphinx'])
def task_docs(): doc_files = glob.glob('doc/*.rst') doc_files += ['README.rst', 'CONTRIBUTING.md', 'doc/open_collective.md'] yield docs.spell(doc_files, 'doc/dictionary.txt') sphinx_opts = "-A include_analytics=1 -A include_donate=1" yield docs.sphinx(DOC_ROOT, DOC_BUILD_PATH, sphinx_opts=sphinx_opts, task_dep=['spell'])
def task_docs(): doc_files = glob.glob('doc/*.rst') + ['README.rst'] yield docs.spell(doc_files, 'doc/dictionary.txt') sphinx_opts = "-A include_analytics=1 -A include_gittip=1" yield docs.sphinx(DOC_ROOT, DOC_BUILD_PATH, sphinx_opts=sphinx_opts, task_dep=['spell'])
def task_docs(): doc_files = glob.glob('doc/*.rst') doc_files += ['README.rst', 'CONTRIBUTING.md', 'doc/open_collective.md'] yield docs.spell(doc_files, 'doc/dictionary.txt') sphinx_opts = "-A include_analytics=1 -A include_donate=1" yield docs.sphinx(DOC_ROOT, DOC_BUILD_PATH, sphinx_opts=sphinx_opts, task_dep=['spell', 'rm_index'])
def task_docs(): """Build Sphinx based documentation. """ doc_files = list(DOC_ROOT.rglob('*.rst')) doc_files.append(Path('README.rst')) # yield docs.spell(doc_files, 'docs/dictionary.txt') sphinx_opts = "-A include_analytics=1 -A include_donate=1" yield docs.sphinx(DOC_ROOT, DOC_BUILD_PATH, sphinx_opts=sphinx_opts, task_dep=['spell'])
def task_docs(): doc_files = glob.glob('doc/*.rst') + ['README.rst', 'CONTRIBUTING.md'] yield docs.spell(doc_files, 'doc/dictionary.txt') sphinx_opts = "-A include_analytics=1 -A include_gittip=1" yield docs.sphinx(DOC_ROOT, DOC_BUILD_PATH, sphinx_opts=sphinx_opts, task_dep=['spell'])
def test_sphinx(self): task = list(docs.sphinx("root", "build", task_dep=["prep"]))[0] assert task["basename"] == "sphinx" assert task["task_dep"] == ["prep"]
def task_docs(): doc_files = glob.glob('doc/*.rst') + ['README.rst'] yield docs.spell(doc_files, 'doc/dictionary.txt') yield docs.sphinx('doc/', 'doc/_build/html/', task_dep=['spell']) yield docs.pythonhosted_upload('doc/_build/html/', task_dep=['sphinx'])
def test_sphinx(self): task = list(docs.sphinx('root', 'build', task_dep=['prep']))[0] assert task['basename'] == 'sphinx' assert task['task_dep'] == ['prep']