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.
1 parent f5b644c commit 35825f9Copy full SHA for 35825f9
src/plugins/docsearch/index.ts
@@ -1,10 +1,12 @@
1
import { track } from "~/util/zaraz";
2
import type { DocSearchClientOptions } from "@astrojs/starlight-docsearch";
3
4
+const isStyleGuide = window.location.pathname.startsWith("/style-guide/");
5
+
6
export default {
7
appId: "D32WIYFTUF",
8
apiKey: "5cec275adc19dd3bc17617f7d9cf312a",
- indexName: "prod_devdocs",
9
+ indexName: isStyleGuide ? "prod_devdocs_styleguide" : "prod_devdocs",
10
insights: true,
11
// Replace URL with the current origin so search
12
// can be used in local development and previews.
@@ -20,6 +22,10 @@ export default {
20
22
});
21
23
},
24
resultsFooterComponent({ state }) {
25
+ if (isStyleGuide) {
26
+ return null;
27
+ }
28
29
return {
30
type: "a",
31
ref: undefined,
0 commit comments