예제 #1
0
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'])
예제 #2
0
파일: dodo.py 프로젝트: davidbrochart/doit
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'])
예제 #3
0
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'])
예제 #4
0
파일: dodo.py 프로젝트: pydoit/doit
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'])
예제 #5
0
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'])
예제 #6
0
파일: dodo.py 프로젝트: pombredanne/doit
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'])
예제 #7
0
 def test_sphinx(self):
     task = list(docs.sphinx("root", "build", task_dep=["prep"]))[0]
     assert task["basename"] == "sphinx"
     assert task["task_dep"] == ["prep"]
예제 #8
0
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'])
예제 #9
0
파일: test_docs.py 프로젝트: saimn/doit-py
 def test_sphinx(self):
     task = list(docs.sphinx('root', 'build', task_dep=['prep']))[0]
     assert task['basename'] == 'sphinx'
     assert task['task_dep'] == ['prep']