diff options
| author | Todd Willey <todd@ansolabs.com> | 2011-01-06 15:29:38 -0500 |
|---|---|---|
| committer | Todd Willey <todd@ansolabs.com> | 2011-01-06 15:29:38 -0500 |
| commit | 8cdfdd14a03e1356cda4fcbdfbcc528bc7f397bd (patch) | |
| tree | fc929a986ff2dfc8c38a4f20f29ce22d07d91857 /doc/source | |
| parent | f3ea4d876fe0d62dcf63cfdcaf7657949cc4dbcf (diff) | |
| download | nova-8cdfdd14a03e1356cda4fcbdfbcc528bc7f397bd.tar.gz nova-8cdfdd14a03e1356cda4fcbdfbcc528bc7f397bd.tar.xz nova-8cdfdd14a03e1356cda4fcbdfbcc528bc7f397bd.zip | |
Let documentation get version from nova/version.py as well.
Diffstat (limited to 'doc/source')
| -rw-r--r-- | doc/source/conf.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 8f1b370cc..61b3749d0 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -60,10 +60,12 @@ copyright = u'2010, United States Government as represented by the Administrator # |version| and |release|, also used in various other places throughout the # built documents. # -# The short X.Y version. -version = '2011.1' +import re +from nova import version as nova_version # The full version, including alpha/beta/rc tags. -release = '2011.1-prerelease' +release = nova_version.string() +# The short X.Y version. +version = re.sub(r'-dev$', '', nova_version.string()) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |
