Skip to content

Commit 98827fd

Browse files
committed
feat(js): Update product pages to drop Set up prefix in navigation
Also make sure to use this in breadcrumbs instead of the actual page heading.
1 parent 0b0cdb4 commit 98827fd

File tree

9 files changed

+10
-2
lines changed

9 files changed

+10
-2
lines changed

docs/platforms/javascript/common/crons/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Set Up Crons
3+
sidebar_title: Crons
34
description: "Sentry Crons allows you to monitor the uptime and performance of any scheduled, recurring job in your application."
45
sidebar_order: 5750
56
supported:

docs/platforms/javascript/common/feature-flags/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Set Up Feature Flags
3+
sidebar_title: Feature Flags
34
sidebar_order: 7000
45
notSupported:
56
- javascript.aws-lambda

docs/platforms/javascript/common/profiling/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Set Up Profiling
3+
sidebar_title: Profiling
34
sidebar_order: 5000
45
description: "Collect & view performance insights for JavaScript programs with Sentry's Profiling integrations. Get started with browser and Node.js profiling to understand your application's performance."
56
notSupported:
@@ -10,4 +11,4 @@ notSupported:
1011
- javascript.cloudflare
1112
---
1213

13-
<PageGrid />
14+
<PageGrid />

docs/platforms/javascript/common/security-policy-reporting/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Set Up Security Policy Reporting
3+
sidebar_title: Security Policy Reporting
34
sidebar_order: 7500
45
description: "Learn how Sentry can help manage Content-Security-Policy violations, CSP reports, Expect-CT, and HTTP Public Key Pinning (HPKP) failures here."
56
---

docs/platforms/javascript/common/session-replay/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Set Up Session Replay
3+
sidebar_title: Session Replay
34
sidebar_order: 5500
45
notSupported:
56
- javascript.cordova

docs/platforms/javascript/common/tracing/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Set Up Tracing
3+
sidebar_title: Tracing
34
description: "Learn how to enable tracing in your app."
45
sidebar_order: 4000
56
---

docs/platforms/javascript/common/user-feedback/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Set Up User Feedback
3+
sidebar_title: User Feedback
34
description: "Learn how to enable User Feedback in your app."
45
sidebar_order: 6000
56
---

docs/platforms/javascript/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
title: Browser JavaScript
22
platformTitle: JavaScript
3+
sidebar_title: JavaScript
34
caseStyle: camelCase
45
supportLevel: production
56
sdk: 'sentry.javascript.browser'

src/components/breadcrumbs/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function Breadcrumbs({leafNode}: BreadcrumbsProps) {
1414
for (let node: DocNode | undefined = leafNode; node; node = node.parent) {
1515
if (node && !node.missing) {
1616
const to = node.path === '/' ? node.path : `/${node.path}/`;
17-
const title = node.frontmatter.platformTitle ?? node.frontmatter.title;
17+
const title = node.frontmatter.platformTitle ?? node.frontmatter.sidebar_title ?? node.frontmatter.title;
1818

1919
breadcrumbs.unshift({
2020
to,

0 commit comments

Comments
 (0)