Skip to content

Commit

Permalink
Add version to specification text
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
robherring committed Nov 30, 2021
1 parent e15e2ab commit 092b05f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ def setup(app):
with open('rst_prolog', 'rb') as pr:
rst_prolog = pr.read().decode('utf-8')

rst_epilog = """
.. |SpecVersion| replace:: {versionnum}
""".format(
versionnum = version,
)

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'

Expand Down
5 changes: 2 additions & 3 deletions source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
SPDX-License-Identifier: Apache-2.0
Welcome to Devicetree Specification's documentation!
====================================================
|spec-fullname| |SpecVersion|
======================================

.. toctree::
:numbered:
Expand All @@ -30,4 +30,3 @@ Welcome to Devicetree Specification's documentation!
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

0 comments on commit 092b05f

Please sign in to comment.