X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=doc%2Fsource%2Fconf.py;h=63ffa74cf3ee48390a75559a91d6002c92e3d55c;hb=b29d7c33db5a796778ae477329306e4f4531725a;hp=673323100730a2185be349bda90b96759b8f03da;hpb=82e5057f3954a56df76d7e52101f86f3758d3bb3;p=dunshire.git diff --git a/doc/source/conf.py b/doc/source/conf.py index 6733231..63ffa74 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -16,7 +16,7 @@ sys.path.insert(0, os.path.abspath('../../src/dunshire')) extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', - 'sphinx.ext.coverage', + 'sphinx.ext.doctest', 'sphinx.ext.napoleon', 'sphinx.ext.pngmath', 'sphinx.ext.viewcode', @@ -24,6 +24,12 @@ extensions = [ autosummary_generate = True +# Don't automatically test every >>> block in the documentation. This +# avoids testing the API docs as part of the documentation build, +# which is exactly what we intend, because those are tested as part of +# the (much faster) unittest test suite. +doctest_test_doctest_blocks = '' + # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # source_suffix = ['.rst', '.md']