mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-17 22:24:21 +01:00
Add search to docs (#751)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user