コード例 #1
0
ファイル: dodo.py プロジェクト: skykode/pyRegurgitator
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
ファイル: 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'])
コード例 #6
0
ファイル: test_docs.py プロジェクト: pombredanne/doit-py
 def test_spell_task(self):
     tasks = list(docs.spell(["a.txt", "b.txt"], "dict.txt"))
     assert len(tasks) == 2
     assert tasks[0]["name"] == "a.txt"
     assert tasks[0]["file_dep"] == ["dict.txt", "a.txt"]
コード例 #7
0
ファイル: dodo.py プロジェクト: pombredanne/doit-cmd
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'])
コード例 #8
0
ファイル: dodo.py プロジェクト: pytest-dev/pytest-incremental
def task_docs():
    doc_files = glob.glob('docs/*.rst') + [
        'README.rst',
    ]
    yield docs.spell(doc_files, 'docs/dictionary.txt')
コード例 #9
0
ファイル: dodo.py プロジェクト: adamchainz/pytest-incremental
def task_docs():
    doc_files = glob.glob('docs/*.rst') + ['README.rst', ]
    yield docs.spell(doc_files, 'docs/dictionary.txt')
コード例 #10
0
ファイル: test_docs.py プロジェクト: saimn/doit-py
 def test_spell_task(self):
     tasks = list(docs.spell(['a.txt', 'b.txt'], 'dict.txt'))
     assert len(tasks) == 2
     assert tasks[0]['name'] == 'a.txt'
     assert tasks[0]['file_dep'] == ['dict.txt', 'a.txt']