Example #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'])
Example #2
0
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'])
Example #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'])
Example #4
0
File: dodo.py Project: 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'])
Example #5
0
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'])
Example #6
0
 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"]
Example #7
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'])
Example #8
0
def task_docs():
    doc_files = glob.glob('docs/*.rst') + [
        'README.rst',
    ]
    yield docs.spell(doc_files, 'docs/dictionary.txt')
Example #9
0
def task_docs():
    doc_files = glob.glob('docs/*.rst') + ['README.rst', ]
    yield docs.spell(doc_files, 'docs/dictionary.txt')
Example #10
0
 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']