fix docs/conf.py to display correct version
This commit is contained in:
@@ -47,10 +47,11 @@ copyright = u'2013, Mathieu Agopian'
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '0.1dev'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '0.1dev'
|
||||
|
||||
# read the VERSION file which is three level up
|
||||
from os.path import join, dirname, abspath
|
||||
with open(join(dirname(dirname(dirname(abspath(__file__)))), 'VERSION')) as f:
|
||||
release = version = f.read()
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
||||
Reference in New Issue
Block a user