Skip to content

Commit 59d2225

Browse files
srothhSimon Roth
andauthored
fix(ui): Filter versioned files from navigation tree. (#14277)
## DESCRIBE YOUR PR Currently, the python page for [shutdown and draining](https://docs.sentry.io/platforms/python/configuration/draining/) navigates to a different version of itself upon clicking "Next". I added a check to filter out versioned pages in filterVisibleSiblings. Issue: #14272 Fixes GH-14272 ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [x] None: Not urgent, can wait up to 1 week+ ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/) Co-authored-by: Simon Roth <simon@F2G243J5X6.local>
1 parent ff41924 commit 59d2225

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/docTree.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ const filterVisibleSiblings = (s: DocNode) =>
246246
(s.frontmatter.sidebar_title || s.frontmatter.title) &&
247247
!s.frontmatter.sidebar_hidden &&
248248
!s.frontmatter.draft &&
249-
s.path;
249+
s.path &&
250+
!isVersioned(s.path);
250251

251252
function nodeToPlatform(n: DocNode): Platform {
252253
const platformData = platformsData()[n.slug];

0 commit comments

Comments
 (0)