Skip to content

Commit 86481fd

Browse files
committed
feat: Restructure JavaScript SDK documentation organization
- Move apis.mdx from /common/ to /common/configuration/ - Move sampling.mdx from /common/configuration/ to /common/ - Add redirects for both old paths to maintain existing links This reorganization improves the documentation structure by: - Placing APIs documentation with other configuration topics - Elevating sampling to a top-level concept (not just a config option) All existing URLs will automatically redirect to the new locations.
1 parent 87b7518 commit 86481fd

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

docs/platforms/javascript/common/apis.mdx renamed to docs/platforms/javascript/common/configuration/apis.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: APIs
33
description: "Learn more about APIs of the SDK."
44
customCanonicalTag: "/platforms/javascript/apis/"
5-
sidebar_order: 3
5+
sidebar_order: 1
66
---
77

88
This page shows all available top-level APIs of the SDK. You can use these APIs as the primary way to:

docs/platforms/javascript/common/configuration/sampling.mdx renamed to docs/platforms/javascript/common/sampling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Sampling
33
description: "Learn how to configure the volume of error and transaction events sent to Sentry."
4-
sidebar_order: 50
4+
sidebar_order: 5.5
55
---
66

77
Adding Sentry to your app gives you a great deal of very valuable information about errors and performance you wouldn't otherwise get. And lots of information is good -- as long as it's the right information, at a reasonable volume.

redirects.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,22 @@ const userDocsRedirects = [
11181118
source: '/platforms/javascript/guides/:guide/profiling/browser-profiling/',
11191119
destination: '/platforms/javascript/guides/:guide/profiling/',
11201120
},
1121+
{
1122+
source: '/platforms/javascript/apis/',
1123+
destination: '/platforms/javascript/configuration/apis/',
1124+
},
1125+
{
1126+
source: '/platforms/javascript/guides/:guide/apis/',
1127+
destination: '/platforms/javascript/guides/:guide/configuration/apis/',
1128+
},
1129+
{
1130+
source: '/platforms/javascript/configuration/sampling/',
1131+
destination: '/platforms/javascript/sampling/',
1132+
},
1133+
{
1134+
source: '/platforms/javascript/guides/:guide/configuration/sampling/',
1135+
destination: '/platforms/javascript/guides/:guide/sampling/',
1136+
},
11211137
{
11221138
source: '/platforms/javascript/guides/:guide/profiling/node-profiling/',
11231139
destination: '/platforms/javascript/guides/:guide/profiling/',

0 commit comments

Comments
 (0)