comparison docs/conf.py @ 587: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
comparison
equal deleted inserted replaced
586:0971e79cb357 587:2ec9b6c8cace
46 # The version info for the project you're documenting, acts as replacement for 46 # The version info for the project you're documenting, acts as replacement for
47 # |version| and |release|, also used in various other places throughout the 47 # |version| and |release|, also used in various other places throughout the
48 # built documents. 48 # built documents.
49 # 49 #
50 # The short X.Y version. 50 # The short X.Y version.
51 version = '1.0.0' 51 root = os.path.dirname(os.path.dirname(__file__))
52 sys.path.append(root)
53 from rhodecode import get_version, __version__
54 version = get_version()
52 # The full version, including alpha/beta/rc tags. 55 # The full version, including alpha/beta/rc tags.
53 release = '1.0.0rc1' 56 release = __version__
54 57
55 # The language for content autogenerated by Sphinx. Refer to documentation 58 # The language for content autogenerated by Sphinx. Refer to documentation
56 # for a list of supported languages. 59 # for a list of supported languages.
57 #language = None 60 #language = None
58 61