Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Add AI Chat settings and integration for CodeRabbit in Docusaurus config #277

Merged
merged 2 commits into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
cache: pnpm
- run: pnpm install --frozen-lockfile --strict-peer-dependencies
- run: pnpm run build
env:
API_KEY: ${{ secrets.INKEEP_API_KEY }}
- run: pnpm run lint

fix:
Expand Down
42 changes: 42 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,48 @@ const config: Config = {
},
}
},
[
"@inkeep/cxkit-docusaurus",
{
SearchBar: {
baseSettings: {
apiKey: process.env.INKEEP_API_KEY,
primaryBrandColor: "#FF570A",
},
aiChatSettings: {
chatSubjectName: "CodeRabbit",
aiAssistantAvatar: "https://www.coderabbit.ai/favicon.ico",
getHelpOptions: [
{
name: "Discord",
icon: {
builtIn: "FaDiscord",
},
action: {
type: "open_link",
url: "https://discord.gg/coderabbit",
},
},
{
name: "Contact Us",
icon: {
builtIn: "IoChatbubblesOutline",
},
action: {
type: "open_link",
url: "https://www.coderabbit.ai/contact-us",
},
},
],
exampleQuestions: [
"What is CodeRabbit?",
"How to integrate CodeRabbit with GitHub?",
"How to set up a AI Code Review?",
],
},
},
},
],
],

presets: [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@docusaurus/plugin-client-redirects": "^3.6.1",
"@docusaurus/plugin-content-blog": "^3.6.1",
"@docusaurus/preset-classic": "^3.6.1",
"@inkeep/cxkit-docusaurus": "^0.5.52",
"@mdx-js/react": "^3.1.0",
"autoprefixer": "^10.4.20",
"clsx": "^2.1.1",
Expand Down
Loading