AcademySoftwareFoundation / rez

An integrated package configuration, build and deployment system for software
https://rez.readthedocs.io
Apache License 2.0
959 stars 338 forks source link

Standardize changelog headers and make sure headers have stable IDs in Sphinx #1859

Closed JeanChristopheMorinPerso closed 1 month ago

JeanChristopheMorinPerso commented 1 month ago

I noticed that the changelog at https://rez.readthedocs.io/en/stable/changelog.html doesn't have real and stable IDs for each version. For example, https://rez.readthedocs.io/en/stable/changelog.html#id1 leads to 3.1.1... That's not great.

It turns out that sphinx doesn't like headers that contain only numbers. After debugging sphinx a little, I saw that 3.1.1 (2024-04-14) was being converted to 3-1-1-2024-04-14. When sphinx sees that, it strips all non-valid leading characters (so numbers and -) which results in an empty string. It then assigns a generic ID.

So this PR adds a v in front of each entry in the changelog.

While being there, I also took the time to standardize on the format a little bit so that each entry use the same format (except for older versions where I didn't bother to get the release date).