diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2010-10-11 13:52:25 +0200 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2010-10-11 13:52:25 +0200 |
commit | 6384878e4c2273eb2540ccdcc2ef9ab7fde96461 (patch) | |
tree | 26950878dac319782705c09e6848ddbb79519cfc /docs | |
parent | b06e834c8b38e7acaf1344ae164bc961908578a6 (diff) |
automated, version building into sphinx
Diffstat (limited to 'docs')
-rw-r--r-- | docs/conf.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py index 78c399bc..53f421e3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,9 +48,12 @@ copyright = u'2010, Marcin Kuzminski' # built documents. # # The short X.Y version. -version = '1.0.0' +root = os.path.dirname(os.path.dirname(__file__)) +sys.path.append(root) +from rhodecode import get_version, __version__ +version = get_version() # The full version, including alpha/beta/rc tags. -release = '1.0.0rc1' +release = __version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |