Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions docs-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ export default {
endDate: "2026-04-07",
},

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

// Docs to load from repo-local files.
localMarkdownSources: [
Expand Down
25 changes: 14 additions & 11 deletions src/components/SpotlightSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from "@mantine/core";
import React, { useState, useEffect, useRef } from "react";
import { decode } from "html-entities";
import docsConfig from "../../docs-config";

// Extend Window interface to include pagefind and Kapa
declare global {
Expand Down Expand Up @@ -217,17 +218,19 @@ export default function SpotlightSearch() {
leftSection={<IconSearch stroke={1.5} />}
style={{ flex: 1 }}
/>
<Button
variant="light"
size="compact-md"
onClick={handleAskAI}
leftSection={<IconSparkles size={16} stroke={1.8} />}
mr="xs"
fw={500}
style={{ flexShrink: 0 }}
>
Ask AI
</Button>
{docsConfig.kapa && (
<Button
variant="light"
size="compact-md"
onClick={handleAskAI}
leftSection={<IconSparkles size={16} stroke={1.8} />}
mr="xs"
fw={500}
style={{ flexShrink: 0 }}
>
Ask AI
</Button>
)}
</Group>
<Spotlight.ActionsList>
{results.length > 0 ? (
Expand Down
Loading