Skip to content

Commit

Permalink
add ai chat
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 committed Dec 4, 2024
1 parent 72d08e5 commit 598a1a0
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ jobs:

- name: Build website
run: npm run build

env:
INKEEP_API_KEY: ${{ secrets.INKEEP_API_KEY }}
INKEEP_INTEGRATION_ID: ${{ secrets.INKEEP_INTEGRATION_ID }}
INKEEP_ORGANIZATION_ID: ${{ secrets.INKEEP_ORGANIZATION_ID }}
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages (on master)
Expand Down
24 changes: 24 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ const config = {
}),
],
],
themes: ["@inkeep/docusaurus/chatButton"],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
Expand Down Expand Up @@ -321,6 +322,29 @@ const config = {
darkTheme: darkCodeTheme,
additionalLanguages: ['json', 'diff'],
},
inkeepConfig: {
chatButtonType: 'icon', // RECTANGLE_SHORTCUT, ICON, or PILL
baseSettings: {
// see https://docusaurus.io/docs/deployment#using-environment-variables to use docusaurus environment variables
apiKey: process.env.INKEEP_API_KEY, // required
integrationId: process.env.INKEEP_INTEGRATION_ID, // required
organizationId: process.env.INKEEP_ORGANIZATION_ID, // required
primaryBrandColor: "#00acd7", // required -- your brand color, the widget color scheme is derived from this
organizationDisplayName: "GoFiber",
theme: {
// stylesheetUrls: ['/path/to/stylesheets'], // optional
syntaxHighlighter: {
lightTheme: lightCodeTheme, // optional -- pass in the Prism theme you're using
darkTheme: darkCodeTheme, // optional -- pass in the Prism theme you're using
},
}
},
aiChatSettings: {
// optional settings
botAvatarSrcUrl: "img/logo.svg", // optional -- use your own bot avatar
botAvatarDarkSrcUrl: "img/logo-dark.svg", // optional -- use your own bot avatar
},
},
}),
};

Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@docusaurus/plugin-pwa": "^3.6.3",
"@docusaurus/preset-classic": "^3.6.3",
"@easyops-cn/docusaurus-search-local": "^0.46.1",
"@inkeep/docusaurus": "^2.0.16",
"@mdx-js/react": "^3.0.1",
"clsx": "^2.1.1",
"prism-react-renderer": "^2.3.1",
Expand Down

0 comments on commit 598a1a0

Please sign in to comment.