Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

JeanChristopheMorinPerso
Copy link
Member

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).

@JeanChristopheMorinPerso JeanChristopheMorinPerso merged commit b46d435 into AcademySoftwareFoundation:main Oct 19, 2024
5 checks passed
@JeanChristopheMorinPerso JeanChristopheMorinPerso deleted the docs_changelog_stable_header_ids branch October 19, 2024 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant