You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been busy removing and moving things around in one of the projects I work on and notice that I end up with dead references in release notes for old versions. IMO these references should point to the RTD page for the version the release notes are for rather than the current one.
I know this requires making a bunch of assumptions, but I'm wondering if anyone else has been annoyed by this, if there is a way to do this in towncrier already, if there is an extension, if there is interest in implementing this in towncrier, etc. etc.
For example:
This newsfragment is created during the v1.3 development cycle.
Added ``verbose`` argument to :func:`do_stuff`.
Towncrier is used to generate the release notes and prepend them to the historical list of release notes.
Later in v2.0 do_stuff is removed or moved. The link in the newsfrag above, which is inserted into the release notes, is now broken.
There are a couple ways to deal with this:
If moved, you can manually update the ref, but this potentially changes the fully qualified name in an older version which won't be correct if you have the older version checked out.
If removed, you can just create unlinked names: Added ``verbose`` argument to :func:`my_pack.do_stuff` -> Added ``verbose`` argument to ``my_pack.do_stuff``
Either "solution" are less than ideal. IMO Towncrier could fixup the references (:func:`my_pack.do_stuff` ) to point to the appropriate documentation in the version you are using towncrier to generate. So if you are generating release notes for v1.3 that previously mentioned reference would be fixed up to :ref:`my_pack.do_stuff() <https://docs.myproject.org/en/v1.3/index.rst#my_pack.do_stuff>` so the reference will never die and if clicked will take you to the documentation for that entity as it was in that version.
The text was updated successfully, but these errors were encountered:
I have been busy removing and moving things around in one of the projects I work on and notice that I end up with dead references in release notes for old versions. IMO these references should point to the RTD page for the version the release notes are for rather than the current one.
I know this requires making a bunch of assumptions, but I'm wondering if anyone else has been annoyed by this, if there is a way to do this in towncrier already, if there is an extension, if there is interest in implementing this in towncrier, etc. etc.
For example:
This newsfragment is created during the v1.3 development cycle.
Towncrier is used to generate the release notes and prepend them to the historical list of release notes.
Later in v2.0
do_stuff
is removed or moved. The link in the newsfrag above, which is inserted into the release notes, is now broken.There are a couple ways to deal with this:
Added ``verbose`` argument to :func:`my_pack.do_stuff`
->Added ``verbose`` argument to ``my_pack.do_stuff``
Either "solution" are less than ideal. IMO Towncrier could fixup the references (
:func:`my_pack.do_stuff`
) to point to the appropriate documentation in the version you are using towncrier to generate. So if you are generating release notes for v1.3 that previously mentioned reference would be fixed up to:ref:`my_pack.do_stuff() <https://docs.myproject.org/en/v1.3/index.rst#my_pack.do_stuff>`
so the reference will never die and if clicked will take you to the documentation for that entity as it was in that version.The text was updated successfully, but these errors were encountered: