summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/conf.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 14b0749..48b5e46 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -18,6 +18,8 @@ import sys, os
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))
+import smartypants
+
# -- General configuration -----------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
@@ -48,9 +50,9 @@ copyright = u'2013, Yu-Jie Lin'
# built documents.
#
# The short X.Y version.
-version = '1.8'
+version = '.'.join(smartypants.__version__.split('.')[:2])
# The full version, including alpha/beta/rc tags.
-release = '1.8.1'
+release = smartypants.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.