diff --git a/docs-config.ts b/docs-config.ts index 2eec1892a..5b97922ae 100644 --- a/docs-config.ts +++ b/docs-config.ts @@ -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: [ diff --git a/src/components/SpotlightSearch.tsx b/src/components/SpotlightSearch.tsx index 0754518cc..f25f508a5 100644 --- a/src/components/SpotlightSearch.tsx +++ b/src/components/SpotlightSearch.tsx @@ -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 { @@ -217,17 +218,19 @@ export default function SpotlightSearch() { leftSection={} style={{ flex: 1 }} /> - + {docsConfig.kapa && ( + + )} {results.length > 0 ? (