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.