Skip to content

Commit

Permalink
doc: update release notes index to use globbing
Browse files Browse the repository at this point in the history
Use globbing to find release notes and display them in the expected
reverse-sorted order (newest release first).  Some trickery is needed
because were not using two-digit version/subversion numbers so the list
won't sort naturally. This will eliminate the need to edit the index
page on every release, until we get to subversion 10.

Signed-off-by: David B. Kinder <[email protected]>
  • Loading branch information
dbkinder authored and galak committed Sep 19, 2019
1 parent ff36fc7 commit c4f730f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions doc/releases/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ so with the help of west.
The project's technical documentation is also tagged to correspond with a
specific release and can be found at https://docs.zephyrproject.org/.

.. comment We need to split the globbing of release notes to get the
single-digit and double-digit subversions sorted correctly. Specify
names in normal order and use the :reversed: option to reverse it.
This will get us through 10 subversions (0-9) before we need to
update this list for two-digit subversions again.
.. toctree::
:maxdepth: 1
:glob:
:reversed:

release-notes-2.0
release-notes-1.14
release-notes-1.13
release-notes-1.12
release-notes-1.11
release-notes-1.10
release-notes-1.9
release-notes-1.8
release-notes-1.7
release-notes-1.6
release-notes-1.5
release-notes-1.?
release-notes-1.*
release-notes-*

.. _`GitHub repository`: https://github.com/zephyrproject-rtos/zephyr
.. _`GitHub tagged releases`: https://github.com/zephyrproject-rtos/zephyr/tags

0 comments on commit c4f730f

Please sign in to comment.