-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathdevelopDocsConfig.ts
More file actions
31 lines (30 loc) · 884 Bytes
/
Copy pathdevelopDocsConfig.ts
File metadata and controls
31 lines (30 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Develop docs roots that should remain indexable by search engines.
* Noindex to prevent them from competing with docs.sentry.io in search results.
* Used by both page.tsx (meta tags) and sitemap.ts (sitemap filtering)
*/
export const DEVELOP_DOCS_INDEXABLE_ROOTS = new Set([
'getting-started',
'engineering-practices',
'application-architecture',
'development-infrastructure',
'backend',
'frontend',
'services',
'integrations',
'ingestion',
'sdk',
'sdk-setup-wizards',
'self-hosted',
]);
/**
* Returns true if a develop docs path should remain indexable.
*/
export function isDevelopDocsIndexablePath(path: string[] | undefined): boolean {
// Homepage
if (!path || path.length === 0) {
return true;
}
// Section root pages (e.g., /getting-started/, /backend/)
return path.length === 1 && DEVELOP_DOCS_INDEXABLE_ROOTS.has(path[0]);
}