Skip to content

Conversation

@joshtrichards
Copy link
Member

☑️ Resolves

Refactors language list building logic, streamlining the code in the template a bit. And builds the language list via a map so we can sort by display name rather than just code.

Did this on my phone so I can't test it, but should be pretty close.

Don't merge until I or one of you is able to confirm still builds + results in the newly expected sorting behavior. :-)

🖼️ Screenshots

In addition to streamlining the implementation, makes it possible to alphabetize by language display name rather than language code.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Key changes:

- Removed all rules that modify the template per language (versions-template-all, add-lang-to-versions-template-%).
- Retained language detection for multi-language builds.
- Assumes language list is passed to the template via Sphinx's conf.py or similar, not injected by Makefile.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Automatically detect and list available languages for templates. Mostly so we can sort by display name.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen
Copy link
Member

image

Looks okay

@nickvergessen nickvergessen merged commit b394e7d into master Oct 13, 2025
12 checks passed
@nickvergessen nickvergessen deleted the jtr/refactor-user-languages-handler branch October 13, 2025 10:10
@rakekniven
Copy link
Member

@joshtrichards 👍

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.

Sort language list of user documentation

4 participants