diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2011-06-05 10:09:21 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-06-05 10:09:21 -0400 |
| commit | bf9e4f770c8cebae7354a24ff760103eb1901f5a (patch) | |
| tree | b31f7242bd66bd6cbf3ba50b6c5e68485b91f9c6 /doc/conf.py | |
| parent | 587e5299748b7a0e146de89620aee7d35c44a819 (diff) | |
| download | python-coveragepy-bf9e4f770c8cebae7354a24ff760103eb1901f5a.tar.gz | |
Add some beta-specific stuff to the home page.
Diffstat (limited to 'doc/conf.py')
| -rw-r--r-- | doc/conf.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/conf.py b/doc/conf.py index b863681..e4dd824 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
|
