summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-08-05 15:42:31 -0400
committerGitHub <noreply@github.com>2018-08-05 15:42:31 -0400
commitab6da6182c6055108179eb762208b13115365b88 (patch)
tree855899a28ea0d8cb351a01cf30b3c5873dff745b /tasks.py
parent94a7c993f1d251d066f15439c08992871325813d (diff)
parentb7e265e547a85adc080f6778eb80b57ff4bad2b6 (diff)
downloadcmd2-git-ab6da6182c6055108179eb762208b13115365b88.tar.gz
Merge pull request #491 from python-cmd2/module_index
Removed non-working Module Index link from the main Sphinx docs page
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tasks.py b/tasks.py
index 183a033d..583674e9 100644
--- a/tasks.py
+++ b/tasks.py
@@ -89,11 +89,12 @@ namespace_clean.add_task(tox_clean, 'tox')
#####
DOCS_SRCDIR = 'docs'
DOCS_BUILDDIR = os.path.join('docs', '_build')
+SPHINX_OPTS = '-nvWT' # Be nitpicky, verbose, and treat warnings as errors
@invoke.task()
def docs(context, builder='html'):
"Build documentation using sphinx"
- cmdline = 'python -msphinx -M {} {} {}'.format(builder, DOCS_SRCDIR, DOCS_BUILDDIR)
+ cmdline = 'python -msphinx -M {} {} {} {}'.format(builder, DOCS_SRCDIR, DOCS_BUILDDIR, SPHINX_OPTS)
context.run(cmdline)
namespace.add_task(docs)