Skip to content

Commit 092b05f

Browse files
committed
Add version to specification text
Currently the HTML version of the specification doesn't have any indication of the version. Add the version to the title in the doc. Signed-off-by: Rob Herring <robh@kernel.org>
1 parent e15e2ab commit 092b05f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ def setup(app):
9090
with open('rst_prolog', 'rb') as pr:
9191
rst_prolog = pr.read().decode('utf-8')
9292

93+
rst_epilog = """
94+
.. |SpecVersion| replace:: {versionnum}
95+
""".format(
96+
versionnum = version,
97+
)
98+
9399
# The name of the Pygments (syntax highlighting) style to use.
94100
pygments_style = 'sphinx'
95101

source/index.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
66
SPDX-License-Identifier: Apache-2.0
77
8-
Welcome to Devicetree Specification's documentation!
9-
====================================================
8+
|spec-fullname| |SpecVersion|
9+
======================================
1010

1111
.. toctree::
1212
:numbered:
@@ -30,4 +30,3 @@ Welcome to Devicetree Specification's documentation!
3030
* :ref:`genindex`
3131
* :ref:`modindex`
3232
* :ref:`search`
33-

0 commit comments

Comments
 (0)