Permalink
Browse files

make sphinx compile strictly by turning all warnings into erros

fix up warnings for latex compilation by putting latext specific
files into a hidden toc. this should help with sphinx/docutils
breakages if any
  • Loading branch information...
1 parent c52d064 commit 7686d0fb354fa2263658876e040ff083e2fcc067 michr committed Oct 1, 2011
Showing with 13 additions and 2 deletions.
  1. +1 −1 docs/Makefile
  2. +2 −1 docs/conf.py
  3. +10 −0 docs/index.rst
View
@@ -2,7 +2,7 @@
#
# You can set these variables from the command line.
-SPHINXOPTS =
+SPHINXOPTS = -W
SPHINXBUILD = sphinx-build
PAPER =
View
@@ -11,7 +11,8 @@
# All configuration values have a default value; values that are commented out
# serve to show the default value.
-import sys, os
+import sys
+import os
import datetime
import inspect
import warnings
View
@@ -201,3 +201,13 @@ Index and Glossary
* :ref:`glossary`
* :ref:`genindex`
* :ref:`search`
+
+.. add glossary, foreword, and latexindex in a hidden toc to avoid warnings
+
+.. toctree::
+ :hidden:
+
+ glossary
+ foreword.rst
+ latexindex.rst
+

0 comments on commit 7686d0f

Please sign in to comment.