Add search to docs (#751)

This commit is contained in:
Adewale Abati
2025-01-24 23:05:43 +01:00
committed by GitHub
parent 2e99b76a50
commit 3184b7d79f
4 changed files with 59 additions and 0 deletions

View File

@@ -4,6 +4,12 @@ import type * as Preset from "@docusaurus/preset-classic";
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
require('dotenv').config();
const inkeepApiKey = process.env.INKEEP_API_KEY;
const inkeepIntegrationId = process.env.INKEEP_INTEGRATION_ID;
const inkeepOrgId = process.env.INKEEP_ORG_ID;
const config: Config = {
title: "codename goose",
tagline:
@@ -57,6 +63,7 @@ const config: Config = {
],
],
themes: ["@inkeep/docusaurus/chatButton", "@inkeep/docusaurus/searchBar"],
themeConfig: {
// Replace with your project's social card
image: "img/home-banner.png",
@@ -153,7 +160,33 @@ const config: Config = {
theme: prismThemes.github,
darkTheme: prismThemes.nightOwl,
},
inkeepConfig: {
baseSettings: {
apiKey: "inkeepApiKey",
integrationId: "inkeepIntegrationId",
organizationId: "inkeepOrgId",
primaryBrandColor: "#1E1E1E"
},
aiChatSettings: {
chatSubjectName: "goose",
botAvatarSrcUrl: "https://storage.googleapis.com/organization-image-assets/block-botAvatarSrcUrl-1737745528096.png",
botAvatarDarkSrcUrl: "https://storage.googleapis.com/organization-image-assets/block-botAvatarDarkSrcUrl-1737745527450.png",
getHelpCallToActions: [
{
name: "GitHub",
url: "https://github.com/block/goose",
icon: {
builtIn: "FaGithub"
}
}
],
quickQuestions: [
"What is Goose?"
]
}
},
} satisfies Preset.ThemeConfig,
};
export default config;