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(): 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_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"]
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 task_docs(): doc_files = glob.glob('docs/*.rst') + [ 'README.rst', ] yield docs.spell(doc_files, 'docs/dictionary.txt')
def task_docs(): doc_files = glob.glob('docs/*.rst') + ['README.rst', ] yield docs.spell(doc_files, 'docs/dictionary.txt')
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']