summaryrefslogtreecommitdiffstats
path: root/common/conf.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2020-03-12 16:34:16 +1100
committerChris Johns <chrisj@rtems.org>2020-03-13 08:18:36 +1100
commit19af6b47d54b802da6a144dbf4008c75cd2fa073 (patch)
tree0ad3c8667924b29e9b48d8f6c418429bc74b7531 /common/conf.py
parentuser: Add anchors to some BSPs. (diff)
downloadrtems-docs-19af6b47d54b802da6a144dbf4008c75cd2fa073.tar.bz2
waf: Get the version numbers from the version file.
Diffstat (limited to 'common/conf.py')
-rw-r--r--common/conf.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/common/conf.py b/common/conf.py
index fe44640..97f8dfa 100644
--- a/common/conf.py
+++ b/common/conf.py
@@ -1,7 +1,10 @@
+import version as rtems_version
+
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.coverage",
"sphinx.ext.doctest",
+ "sphinx.ext.extlinks",
"sphinx.ext.graphviz",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
@@ -9,6 +12,8 @@ extensions = [
"rtemsdomain",
]
+extlinks = {'release_path': ('https://ftp.rtems.org/pub/rtems/releases', None) }
+
# Add any paths that contain templates here, relative to this directory.
#templates_path = ['build/_templates']
@@ -23,17 +28,21 @@ master_doc = 'index'
# General information about the project.
project = u'RTEMS Documentation Project'
-copyright = u'1988, 2019 RTEMS Project and contributors'
+copyright = u'1988, 2020 RTEMS Project and contributors'
# 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 = '@VERSION@'
+version = rtems_version.version()
# The full version, including alpha/beta/rc tags.
-#release = '@RELEASE@'
+release = rtems_version.string()
+
+major = rtems_version.major()
+minor = rtems_version.minor()
+revision = rtems_version.revision()
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.