Skip to content

Commit 63ea33f

Browse files
Add MarkPrompt Docusaurus integration
1 parent ce2c18c commit 63ea33f

File tree

4 files changed

+10543
-7883
lines changed

4 files changed

+10543
-7883
lines changed

docusaurus/docusaurus.config.js

+27-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const config = {
2525
markdown: {
2626
mermaid: true,
2727
},
28-
themes: ["@docusaurus/theme-mermaid"],
28+
themes: ["@docusaurus/theme-mermaid", "@markprompt/docusaurus-theme-search"],
2929
title: "Airbyte Documentation",
3030
tagline:
3131
"Airbyte is an open-source data integration platform to build ELT pipelines. Consolidate your data in your data warehouses, lakes and databases.",
@@ -145,10 +145,32 @@ const config = {
145145
autoCollapseCategories: true,
146146
},
147147
},
148-
algolia: {
149-
appId: "OYKDBC51MU",
150-
apiKey: "15c487fd9f7722282efd8fcb76746fce", // Public API key: it is safe to commit it
151-
indexName: "airbyte",
148+
markprompt: { // Our AI chat bot
149+
projectKey: "pk_c87ydSnE4o1tX9txQReh3vDvVnKDnbje", // Public project key. Safe to commit.
150+
chat: {
151+
assistantId: "d1399022-d7e2-4404-bd16-8b3ad2b5465b",
152+
enabled: true,
153+
defaultView: {
154+
message: "Hi! I'm Octavia, an AI. **I'm still learning and might make mistakes**. How can I help?",
155+
prompts: [
156+
"What's Airbyte?",
157+
"Can I try Airbyte quickly?",
158+
"How do I use Terraform with Airbyte?",
159+
"Is there an enterprise version?"
160+
]
161+
},
162+
},
163+
// By setting `floating` to false, use the standard navbar search component.
164+
trigger: { floating: false },
165+
search: {
166+
enabled: true,
167+
provider: {
168+
name: "algolia",
169+
apiKey: "15c487fd9f7722282efd8fcb76746fce", // Public API key. Safe to commit.
170+
appId: "OYKDBC51MU",
171+
indexName: "airbyte",
172+
},
173+
},
152174
},
153175
navbar: {
154176
title: "",

docusaurus/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"@fortawesome/free-solid-svg-icons": "^6.5.1",
9393
"@fortawesome/react-fontawesome": "^0.2.0",
9494
"@headlessui/react": "^2.1.9",
95+
"@markprompt/docusaurus-theme-search": "^0.32.3",
9596
"@mdx-js/react": "^3.0.0",
9697
"async": "2.6.4",
9798
"autoprefixer": "10.4.16",

0 commit comments

Comments
 (0)