scverse_doc.release_notes#

A release notes directive.

Given a directory of version files matching FULL_VERSION_RE, render them grouped by minor version (where . is the directory they are in):

.. release-notes:: .

With e.g. the files 1.2.0.md, 1.2.1.md, and 1.3.0.rst, this renders like the following:

.. _v1.3:

Version 1.3
===========

.. include:: 1.3.0.rst


.. _v1.2:

Version 1.2
===========

.. include:: 1.2.1.md
.. include:: 1.2.0.md
scverse_doc.release_notes.FULL_VERSION_RE = re.compile('^(\\d+)\\.(\\d+)\\.(\\d+)(?:.*)?$')#

Regex matching a full version number including patch part, maybe with more after.