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

.github/workflows/node.js.yaml

Lines changed: 2 additions & 0 deletions
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:

docusaurus.config.ts

Lines changed: 42 additions & 0 deletions
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: [

package.json

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy