We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PageGrid
1 parent 05e78a6 commit 7bfd991Copy full SHA for 7bfd991
src/components/pageGrid.tsx
@@ -5,6 +5,7 @@ import Link from 'next/link';
5
import {DocNode, nodeForPath} from 'sentry-docs/docTree';
6
import {serverContext} from 'sentry-docs/serverContext';
7
import {isNotNil, sortPages} from 'sentry-docs/utils';
8
+import {isVersioned} from 'sentry-docs/versioning';
9
10
type Props = {
11
exclude?: string[];
@@ -34,7 +35,8 @@ export function PageGrid({header, exclude}: Props) {
34
35
c =>
36
!c.frontmatter.sidebar_hidden &&
37
c.frontmatter.title &&
- !exclude?.includes(c.slug)
38
+ !exclude?.includes(c.slug) &&
39
+ !isVersioned(c.slug)
40
),
41
// a hacky adapter to reuse the same sidebar sorter
42
node => ({...node, context: node.frontmatter})
0 commit comments