Made docs look at wagtailcore.__version__

pull/611/head
Karl Hobley 2014-09-09 12:56:26 +01:00
rodzic 69f9f48488
commit 1d7ca5a685
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -29,6 +29,9 @@ if not on_rtd: # only import and set the theme if we're building docs locally
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))
# Get Wagtail version
from wagtail.wagtailcore import __version__
# Autodoc may need to import some models modules which require django settings
# be configured
os.environ['DJANGO_SETTINGS_MODULE'] = 'wagtail.tests.settings'
@ -70,9 +73,9 @@ copyright = u'2014, Torchbox'
# built documents.
#
# The short X.Y version.
version = '0.5'
version = __version__
# The full version, including alpha/beta/rc tags.
release = '0.5'
release = __version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.