# HG changeset patch
# User Marcin Kuzminski <marcin@python-works.com>
# Date 2010-10-11 11:52:25
# Node ID 2ec9b6c8cacee06a773713f455a516d622241a25
# Parent  0971e79cb3574895178860371d5209738e282805

automated, version building into sphinx

diff --git a/docs/conf.py b/docs/conf.py
--- 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.