Skip to content

Commit e9b8b59

Browse files
committed
[Docs Site] Use prod_devdocs_styleguide index on /style-guide/
1 parent d12d9f8 commit e9b8b59

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

astro.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,6 @@ export default defineConfig({
167167
icon(),
168168
sitemap({
169169
filter(page) {
170-
if (page.includes("/style-guide/")) {
171-
return false;
172-
}
173-
174170
if (page.endsWith("/404/")) {
175171
return false;
176172
}

src/plugins/docsearch/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import type { DocSearchClientOptions } from "@astrojs/starlight-docsearch";
44
export default {
55
appId: "D32WIYFTUF",
66
apiKey: "5cec275adc19dd3bc17617f7d9cf312a",
7-
indexName: "prod_devdocs",
7+
indexName: window.location.pathname.startsWith("/style-guide/")
8+
? "prod_devdocs_styleguide"
9+
: "prod_devdocs",
810
insights: true,
911
// Replace URL with the current origin so search
1012
// can be used in local development and previews.

0 commit comments

Comments
 (0)