Mercurial > public > src > rhodecode
diff docs/conf.py @ 637:2ec9b6c8cace
automated, version building into sphinx
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 11 Oct 2010 13:52:25 +0200 |
parents | a60cd29ba7e2 |
children | b3ec9f4af18b |
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.