Skip to content
Snippets Groups Projects
Commit 42c8d5cc authored by legac's avatar legac
Browse files

API Release number from App.js.

parent 1474d621
No related branches found
No related tags found
No related merge requests found
......@@ -11,11 +11,19 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys
import os
import re
import sys
from datetime import datetime
def get_plugin_dbui_release():
JSBASE = '../../static/plugin_dbui/src/App.js'
s = open(JSBASE, 'rb').read()
m = re.match("(.+ version: ')([\w._-]*)('.+)", s, re.DOTALL)
return m.group(2)
# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
......@@ -60,17 +68,19 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
now = datetime.now()
project = u'plugin_dbui'
copyright = u'2009-%s, R. Le Gac, licensed under CeCILL' % datetime.now().year
copyright = u'2009-%s, R. Le Gac, licensed under CeCILL' % now.year
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '0.6.2'
# The full version, including alpha/beta/rc tags.
release = '0.6.2.7'
release = get_plugin_dbui_release()
# The short X.Y version.
version = release[:release.rfind('.')]
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment