Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 14, 2025
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
@@ -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:
42 changes: 42 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -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: [
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
1,718 changes: 1,691 additions & 27 deletions pnpm-lock.yaml

Large diffs are not rendered by default.