Skip to content

Support Sphinx :reversed: on .. toctree:: #1148

Closed
@d-s-codappix

Description

@d-s-codappix

Feature request

The .. toctree:: directive of Sphinx has an option :reversed: which will invert the order of entries: https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-option-toctree-reversed

This is useful for situations like:

.. _changelog:

Changelog
=========

.. toctree::
   :glob:
   :reversed:

   Changelog/*

That way newest versions are at the top.

Would be cool to have that supported. Right now the option seems to be ignored.

We use this here: https://github.com/werkraum-media/events/blob/main/Documentation/Changelog.rst rendered result: https://docs.typo3.org/p/werkraummedia/events/main/en-us/Changelog.html

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions