diff options
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/conf.py b/docs/conf.py index d969dde..b6f83e1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,8 +12,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys -import os +from _version import __version__ # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -52,10 +51,10 @@ copyright = u'2014, Michael Foord, Nicola Larosa, Rob Dennis, Eli Courtwright' # |version| and |release|, also used in various other places throughout the # built documents. # -# The short X.Y version. -version = '5.0' # The full version, including alpha/beta/rc tags. -release = '5.0.2' +release = __version__ +# The short X.Y version. +version = '.'.join(release.split('.')[:2]) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |