Skip to content
Snippets Groups Projects
Commit 3602a5f4 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[sphinx] Enable '-n' mode automatically; Allow user to ignore things

parent 43e1393c
Branches
No related tags found
1 merge request!7[sphinx] Enable '-n' mode automatically; Allow user to ignore things
...@@ -34,6 +34,25 @@ if sphinx.__version__ >= "1.4.1": ...@@ -34,6 +34,25 @@ if sphinx.__version__ >= "1.4.1":
else: else:
extensions.append('sphinx.ext.pngmath') extensions.append('sphinx.ext.pngmath')
# Be picky about warnings
nitpicky = True
# Ignores stuff we can't easily resolve on other project's sphinx manuals
nitpick_ignore = []
# Allows the user to override warnings from a separate file
if os.path.exists('nitpick-exceptions.txt'):
for line in open('nitpick-exceptions.txt'):
if line.strip() == "" or line.startswith("#"):
continue
dtype, target = line.split(None, 1)
target = target.strip()
try: # python 2.x
target = unicode(target)
except NameError:
pass
nitpick_ignore.append((dtype, target))
# Always includes todos # Always includes todos
todo_include_todos = True todo_include_todos = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment