summaryrefslogtreecommitdiff
path: root/doc/conf.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-06-05 10:09:21 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-06-05 10:09:21 -0400
commit23d965aee6ac35d85fb38b061440f8d9931ee443 (patch)
tree0eebf7fa1f1b7e61dde3339c05fe5314b6418d38 /doc/conf.py
parentc005acc51bf72905d68e93a9b62ed3b67e86ec4d (diff)
downloadpython-coveragepy-git-23d965aee6ac35d85fb38b061440f8d9931ee443.tar.gz
Add some beta-specific stuff to the home page.
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/conf.py b/doc/conf.py
index b8636818..e4dd824d 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -24,7 +24,7 @@ sys.path.append(os.path.join(os.path.dirname(__file__), "_ext"))
# 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', 'sphinx.ext.todo', 'px_xlator']
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.ifconfig', 'px_xlator']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -204,3 +204,13 @@ latex_documents = [
# When auto-doc'ing a class, write the class' docstring and the __init__ docstring
# into the class docs.
autoclass_content = "both"
+
+
+
+
+
+prerelease = bool(max(release).isalpha())
+
+def setup(app):
+ app.add_config_value('prerelease', False, 'env')
+ print "** Prerelease = %r" % prerelease