kopia lustrzana https://github.com/wagtail/wagtail
Made docs look at wagtailcore.__version__
rodzic
69f9f48488
commit
1d7ca5a685
|
@ -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.
|
||||
|
|
Ładowanie…
Reference in New Issue