diff options
author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-05-11 20:00:17 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-05-11 20:00:17 +0200 |
commit | 59173ceb40c88ef41b106c0f0cb571aa49cb1098 (patch) | |
tree | dec67427b8c35812004164e646c2ef08a766c54a /docs/conf.py | |
parent | d2e5700c68f33b0872616fedc6a3320c84c81de6 (diff) | |
download | gitlab-59173ceb40c88ef41b106c0f0cb571aa49cb1098.tar.gz |
sphinx: don't hardcode the version in conf.py
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py index d7940c1..7ef98ef 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,10 +15,13 @@ from __future__ import unicode_literals -import sys import os +import sys + import sphinx +import gitlab + on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if sphinx.version_info < (1,3,): @@ -64,9 +67,9 @@ copyright = '2014, Gauvain Pocentek, Mika Mäenpää' # built documents. # # The short X.Y version. -version = '0.8' +version = gitlab.__version__ # The full version, including alpha/beta/rc tags. -release = '0.8' +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |