Skip to content

Commit 625cd2d

Browse files
committed
Disable Kapa until prometheus.io domain is in allowlist
Signed-off-by: Julius Volz <julius.volz@gmail.com>
1 parent 45ec449 commit 625cd2d

2 files changed

Lines changed: 23 additions & 17 deletions

File tree

docs-config.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ export default {
1111
endDate: "2026-04-07",
1212
},
1313

14-
kapa: {
15-
websiteId: "80cbacc9-0b84-48aa-bfb8-0002270176bf",
16-
projectName: "Prometheus",
17-
projectColor: "#D86444",
18-
projectLogoPath: "/assets/prometheus-logo.svg",
19-
},
14+
// Disable Kapa until we manage to enable the domain (prometheus.io) in the Kapa dashboard.
15+
//
16+
// kapa: {
17+
// websiteId: "80cbacc9-0b84-48aa-bfb8-0002270176bf",
18+
// projectName: "Prometheus",
19+
// projectColor: "#D86444",
20+
// projectLogoPath: "/assets/prometheus-logo.svg",
21+
// },
22+
kapa: undefined,
2023

2124
// Docs to load from repo-local files.
2225
localMarkdownSources: [

src/components/SpotlightSearch.tsx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
} from "@mantine/core";
1414
import React, { useState, useEffect, useRef } from "react";
1515
import { decode } from "html-entities";
16+
import docsConfig from "../../docs-config";
1617

1718
// Extend Window interface to include pagefind and Kapa
1819
declare global {
@@ -217,17 +218,19 @@ export default function SpotlightSearch() {
217218
leftSection={<IconSearch stroke={1.5} />}
218219
style={{ flex: 1 }}
219220
/>
220-
<Button
221-
variant="light"
222-
size="compact-md"
223-
onClick={handleAskAI}
224-
leftSection={<IconSparkles size={16} stroke={1.8} />}
225-
mr="xs"
226-
fw={500}
227-
style={{ flexShrink: 0 }}
228-
>
229-
Ask AI
230-
</Button>
221+
{docsConfig.kapa && (
222+
<Button
223+
variant="light"
224+
size="compact-md"
225+
onClick={handleAskAI}
226+
leftSection={<IconSparkles size={16} stroke={1.8} />}
227+
mr="xs"
228+
fw={500}
229+
style={{ flexShrink: 0 }}
230+
>
231+
Ask AI
232+
</Button>
233+
)}
231234
</Group>
232235
<Spotlight.ActionsList>
233236
{results.length > 0 ? (

0 commit comments

Comments
 (0)