Skip to content

Commit 24d805a

Browse files
Add AI Chat settings and integration for CodeRabbit in Docusaurus config (#277)
1 parent 595fb4b commit 24d805a

File tree

4 files changed

+1736
-27
lines changed

4 files changed

+1736
-27
lines changed

Diff for: .github/workflows/node.js.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
cache: pnpm
2727
- run: pnpm install --frozen-lockfile --strict-peer-dependencies
2828
- run: pnpm run build
29+
env:
30+
API_KEY: ${{ secrets.INKEEP_API_KEY }}
2931
- run: pnpm run lint
3032

3133
fix:

Diff for: docusaurus.config.ts

+42
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,48 @@ const config: Config = {
126126
},
127127
}
128128
},
129+
[
130+
"@inkeep/cxkit-docusaurus",
131+
{
132+
SearchBar: {
133+
baseSettings: {
134+
apiKey: process.env.INKEEP_API_KEY,
135+
primaryBrandColor: "#FF570A",
136+
},
137+
aiChatSettings: {
138+
chatSubjectName: "CodeRabbit",
139+
aiAssistantAvatar: "https://www.coderabbit.ai/favicon.ico",
140+
getHelpOptions: [
141+
{
142+
name: "Discord",
143+
icon: {
144+
builtIn: "FaDiscord",
145+
},
146+
action: {
147+
type: "open_link",
148+
url: "https://discord.gg/coderabbit",
149+
},
150+
},
151+
{
152+
name: "Contact Us",
153+
icon: {
154+
builtIn: "IoChatbubblesOutline",
155+
},
156+
action: {
157+
type: "open_link",
158+
url: "https://www.coderabbit.ai/contact-us",
159+
},
160+
},
161+
],
162+
exampleQuestions: [
163+
"What is CodeRabbit?",
164+
"How to integrate CodeRabbit with GitHub?",
165+
"How to set up a AI Code Review?",
166+
],
167+
},
168+
},
169+
},
170+
],
129171
],
130172

131173
presets: [

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@docusaurus/plugin-client-redirects": "^3.6.1",
2424
"@docusaurus/plugin-content-blog": "^3.6.1",
2525
"@docusaurus/preset-classic": "^3.6.1",
26+
"@inkeep/cxkit-docusaurus": "^0.5.52",
2627
"@mdx-js/react": "^3.1.0",
2728
"autoprefixer": "^10.4.20",
2829
"clsx": "^2.1.1",

0 commit comments

Comments
 (0)