From 8459af90cafecef00caf63b4f023cf6978ea1b0e Mon Sep 17 00:00:00 2001 From: Yu-Jie Lin Date: Wed, 28 Aug 2013 19:47:19 +0800 Subject: fix version string in documentation --- docs/conf.py | 6 ++++-- 1 file 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. -- cgit v1.2.1