diff options
author | Yu-Jie Lin <livibetter@gmail.com> | 2013-08-28 19:47:19 +0800 |
---|---|---|
committer | Yu-Jie Lin <livibetter@gmail.com> | 2013-08-28 19:47:19 +0800 |
commit | 8459af90cafecef00caf63b4f023cf6978ea1b0e (patch) | |
tree | 5f90076daa1eebdc9d10ea3b710969251d4072bf | |
parent | aa0838b02039c417cf725580576c3b55528bf987 (diff) | |
download | smartypants-8459af90cafecef00caf63b4f023cf6978ea1b0e.tar.gz |
fix version string in documentation
-rw-r--r-- | docs/conf.py | 6 |
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. |