@inkeep/docusaurus
v2.0.15
Published
Install NPM package
Downloads
1,091
Keywords
Readme
Installation
Install NPM package
npm install @inkeep/docusaurus
Configuration
Add the code shown below to docusaurus.config
to connect the plugin to docusaurus:
For ChatButton component type:
themes: ["@inkeep/docusaurus/chatButton"],
For SearchBar component type:
themes: ["@inkeep/docusaurus/searchBar"],
Customize your widget's config (Example shown below):
//..
themeConfig: {
inkeepConfig: {
chatButtonType: 'RECTANGLE_SHORTCUT', // optional
baseSettings: {
apiKey: "apiKey", // required
integrationId: "integrationId", // required
organizationId: "organizationId", // required
primaryBrandColor: "#522FC9", // required -- your brand color, widget color scheme is derived from this
organizationDisplayName: "Inkeep", // optional
// ...optional settings
theme: {
stylesheetUrls: ['/path/to/stylesheets'], // optional
},
},
modalSettings: {
// optional settings
},
searchSettings: {
// optional settings
},
aiChatSettings: {
// optional settings
botAvatarSrcUrl: "img/logo.svg", // use your own bot avatar
quickQuestions: [
"Example question 1?",
"Example question 2?",
"Example question 3?",
],
},
}
},
Publishing a new verison
cd path/to/docusaurus-widgets
- in
shared/consts.js
update theWIDGET_VERSION
- in
shared/consts.js
update the correspondingINTEGRITY_SHA
(go to https://unpkg.com/@inkeep/uikit-js@<WIDGET_VERSION>/dist/embed.js?meta) - update the package version in
package.json
npm run build
npm pack
npm publish