From: Jason Kirtland Date: Sat, 6 Dec 2008 17:47:20 +0000 (+0000) Subject: Enabled sphinx doctests. X-Git-Tag: rel_0_5_0~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de4ed96ec01d5c5da064001691357f987a6e8892;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Enabled sphinx doctests. --- diff --git a/doc/build/Makefile b/doc/build/Makefile index b27f2c75e6..f1796e3dbf 100644 --- a/doc/build/Makefile +++ b/doc/build/Makefile @@ -46,3 +46,5 @@ latex: @echo "Build finished; the LaTeX files are in output/latex." @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \ "run these through (pdf)latex." +doctest: + $(SPHINXBUILD) -b doctest -d output/doctrees . . diff --git a/doc/build/conf.py b/doc/build/conf.py index f423fa9b0b..320b5e604b 100644 --- a/doc/build/conf.py +++ b/doc/build/conf.py @@ -26,7 +26,7 @@ import sqlalchemy # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', 'builder.builders'] +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'builder.builders'] # Add any paths that contain templates here, relative to this directory. templates_path = ['templates'] @@ -66,7 +66,7 @@ release = sqlalchemy.__version__ #today_fmt = '%B %d, %Y' # List of documents that shouldn't be included in the build. -#unused_docs = [] +unused_docs = ['output.txt'] # List of directories, relative to source directory, that shouldn't be searched # for source files.