summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py9
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.