Skip to content

Commit

Permalink
Turn on nitpicky mode for documentation builds (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickinson committed Jul 17, 2021
1 parent bb1ff5c commit 6bd09ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 1 addition & 6 deletions ci/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,7 @@ def doc(edm, python_version, toolkit):
"""
pyenv = _get_devenv(edm, python_version, toolkit)

# Be nitpicky. This detects missing class references.
sphinx_options = ["-n"]

build_cmd = ["-m", "sphinx"]
build_cmd.extend(sphinx_options)
build_cmd.extend([cfg.DOCS_SOURCE_DIR, cfg.DOCS_BUILD_DIR])
build_cmd = ["-m", "sphinx", cfg.DOCS_SOURCE_DIR, cfg.DOCS_BUILD_DIR]
pyenv.python(build_cmd)


Expand Down
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@
# Don't include parentheses after function and method names.
add_function_parentheses = False

# Do use nitpicky mode: we want to know about broken references.
nitpicky = True

# Ignore complaints about references to classes in wx and pyface.qt.QtCore
nitpick_ignore = [
# Exclusions needed for Sphinx < 4.
Expand Down

0 comments on commit 6bd09ef

Please sign in to comment.