Get the configuration for the documentation from the main web app.

This commit is contained in:
Dave Page 2016-05-17 13:20:02 -04:00
parent 50c134c4f1
commit 4d47e23c89

View File

@ -13,6 +13,11 @@
import sys, os import sys, os
# Import the pgAdmin config
root = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, root + '/../../web/')
import config
# If extensions (or modules to document with autodoc) are in another directory, # If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the # add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here. # documentation root, use os.path.abspath to make it absolute, like shown here.
@ -40,17 +45,17 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'pgAdmin 4' project = config.APP_NAME
copyright = u'2013 - 2016, The pgAdmin Development Team' copyright = config.APP_COPYRIGHT
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the
# built documents. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = '1.0' version = '%s.%s' % (config.APP_RELEASE, config.APP_REVISION)
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '1.0-dev' release = config.APP_VERSION
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.