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

docs: improve sidebar for the changelog page #5070

Merged
merged 3 commits into from
Oct 1, 2024
Merged

Conversation

tigarmo
Copy link
Contributor

@tigarmo tigarmo commented Sep 26, 2024

These two facts:

  • Changelog entries for a given version can be rather long
  • We order the versions "chronologically" instead of "numerically"

... mean that the entries for a given major version can get "hidden" further
down the page if multiple hotfixes have been released in the meantime. This
can cause confusion and make it seem like the version has not been released,
or at least doesn't have changelog entries. To alleviate this, add a table of
contents to the sidebar that links to the subsection for each release.

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run tox run -m lint?
  • Have you successfully run tox run -e test-py310? (supported versions: py39, py310, py311, py312)

Copy link
Collaborator

@mr-cal mr-cal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about setting a max depth such that only the contents only show the top-level versions are shown and not the sub-headings? I'm not sure if it's possible.

A few weeks ago, I tried to figure out how to do it on the right-hand page navigation (see attached) but gave up because I couldn't figure out how to do it without html/css hacking.

image

These two facts:

- Changelog entries for a given version can be rather long
- We order the versions "chronologically" instead of "numerically"

... mean that the entries for a given major version can get "hidden" further
down the page if multiple hotfixes have been released in the meantime. This
can cause confusion and make it seem like the version has not been released,
or at least doesn't have changelog entries. To alleviate this, add a table of
contents to the sidebar that links to the subsection for each release.
@tigarmo
Copy link
Contributor Author

tigarmo commented Sep 27, 2024

@mr-cal what a coincidence, I had the same thought and managed to find a way to do it (don't ask me how)
Looks like this now; I also updated the commit and will update the PR description
image

@tigarmo tigarmo changed the title docs: add a table of contents for the versions docs: improve sidebar for the changelog page Sep 27, 2024
@tigarmo tigarmo marked this pull request as ready for review September 27, 2024 16:43
Copy link
Collaborator

@mr-cal mr-cal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's beautiful, thank you!!

don't ask me how

I closed my eyes when approving so I wouldn't find out.

Copy link
Contributor

@medubelko medubelko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:tocdepth: can't see you, :tocdepth: can't hurt you.

@mr-cal mr-cal added the squash label Oct 1, 2024
@mr-cal
Copy link
Collaborator

mr-cal commented Oct 1, 2024

spread test failure is a launchpad connectivity issue, merging anyway

@mr-cal mr-cal merged commit 1b6b0cb into main Oct 1, 2024
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants