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

Improve GDScript Basics sidebar navigation by changing header levels #10080

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tetrapod00
Copy link
Contributor

@tetrapod00 tetrapod00 commented Oct 13, 2024

Resolves #5701. IMO fixing the sidebar navigation will sufficiently fix the problem mentioned in that issue, although the OP is asking for a slightly different solution.

Promotes many headers up one level, so they appear in the sidebar. Removes the redundant Language header, since the whole page is about the language.

Each separate topic is promoted to a top-level subheader on this page, so it appears in the sidebar. The sidebar is long, but still fits on a single screen on a 1080 monitor. Ideally I would have liked to have two levels of navigable headers, but this is the best we can do with the current Sphinx theme. Subheaders under each promoted header are also promoted one level.

The Language and Data headers were removed. In the current organization, it was a parent header for Identifiers, Keywords, Operators, and a few others. However, this whole page is technically a description of the language, and because all the other headers were promoted to top-level, keeping the Language header seemed redundant to me. The Data header was similarly meant to have Variables, Constants, etc as subheaders, but if those subheaders are promoted it is now just an empty sibling header, and is redundant. I don't strongly care about this change; these two headers can be added back if anyone feels strongly.

4.4 Master This PR
firefox_Nj6CIJujyC firefox_mkA8FxDoGE

Promotes many headers up one level, so they appear in the sidebar.
Removes the redundant Language header, since the whole page is about the language.
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.

Very long pages with no TOC
1 participant