-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix: Order versioned docs select items by recency #14768
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Bundle ReportChanges will increase total bundle size by 3.04kB (0.01%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sentry-docs-client-array-pushAssets Changed:
view changes for bundle: sentry-docs-server-cjsAssets Changed:
Files in
|
chargome
approved these changes
Aug 29, 2025
codyde
added a commit
that referenced
this pull request
Aug 30, 2025
* 'master' of https://github.com/getsentry/sentry-docs: Layout updates; widening content div, centering and responsiveness, scrollbar update (#14766) Document default sdk logging attributes (#14353) Bump API schema to b8165143 (#14764) fix(OnboardingOptionButtons) Remove sticky css on mobile (#14690) Unreal Engine: Add migration guide (#14186) docs(ai): Update AI agent integrations list (#14769) fix: Order versioned docs select items by recency (#14768) ref(python): Update wording regarding async init (#14631) docs(aws-integration): Remove alert that ESM is not supported (#14756) fix(feedback): Update docs with SwiftUI notes (#14227) chore(docs): Remove explicit openai agents integration registration (#14718) Update list of states subject to tax on /pricing (#14763) ref(replay): Refactor pages inside the Product Walkthrough > Replay area (#14712) docs(replay): Move FAQ Replay for Android questions into dedicated troubleshooting page (#14709)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DESCRIBE YOUR PR
This PR makes a change to the order in which we show the version select items if a docs page has multiple versions: Instead of sorting the version designator alphabetically, this PR attempts to sort them by recent to oldest. For now, this only looks at the major number, since the version designator can be arbitrary and we can't assume proper semver (see example).If we can't extract a proper major version, we continue to sort alphabetically.
Before:

After:

(the 10x version in this screenshot serves an illustrative purpose. I'm not shipping that anytime soon :D)
(This PR is brought to you by a sidequest while working on updating sveltekit docs and encountering weird ordering. Happy to close/adjust as reviewers see fit :) )
IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: