From 19af6b47d54b802da6a144dbf4008c75cd2fa073 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 12 Mar 2020 16:34:16 +1100 Subject: waf: Get the version numbers from the version file. --- common/conf.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'common/conf.py') 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. -- cgit v1.2.3