How to place RELEASESLIST or similar in the sidebar?

7 views
Skip to first unread message

Jim Kennedy

unread,
Mar 4, 2022, 9:42:44 AM3/4/22
to sphinx-users
Hi,

On my website, using sphinx_rtd_theme, I am listing all the releases of my docs in the sidebar by placing this in my index:

.. toctree::
   :maxdepth: 1
   :hidden:
   :caption: Release Versions

   r2022.02 <https://example.org/r2022.02/index.html>
   r2022.01 <https://example.org/r2022.01/index.html>
   r2021.12 <https://example.org/r2021.12/index.html>
   r2021.11 <https://example.org/r2021.11/index.html>

It works as expected but the list has to be updated manually every time we do a new release. Is there a way to replace the hardcoding of each release using something like RELEASESLIST?

I was hoping that something like this would work:

.. toctree::
   :maxdepth: 1
   :hidden:
   :caption: Release Versions

   RELEASESLIST

Thanks,
Jim.
Reply all
Reply to author
Forward
0 new messages