changeset 587:2ec9b6c8cace

automated, version building into sphinx
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 11 Oct 2010 13:52:25 +0200
parents 0971e79cb357
children 7949ea595483
files docs/conf.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/docs/conf.py	Mon Oct 11 13:45:29 2010 +0200
+++ b/docs/conf.py	Mon Oct 11 13:52:25 2010 +0200
@@ -48,9 +48,12 @@
 # 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.