Skip to content

Commit

Permalink
Merge branch 'main' of github.com:avo-hq/avodocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Sep 11, 2024
2 parents 2509e32 + fc03b73 commit 9d56845
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
54 changes: 54 additions & 0 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,60 @@ const config = {
},
},
head: [
[
"script",
{
src: "https://unpkg.com/@inkeep/[email protected]/dist/embed.js",
type: "module",
defer: true,
},
],
["script", { src: "/static/addInkeep.js", type: "module", defer: true }],
// [;
// 'script',
// {},
// `// Embed the widget using the Inkeep.embed() function.
// const config = {
// componentType: "ChatButton",
// // optional -- for syncing UI color mode
// colorModeSync: {
// observedElement: document.documentElement,
// isDarkModeCallback: (el) => {
// return el.classList.contains("dark");
// },
// colorModeAttribute: "class",
// },
// properties: {
// chatButtonType: "PILL",
// baseSettings: {
// apiKey: import.meta.env.VITE_INKEEP_API_KEY, // required
// integrationId: import.meta.env.VITE_INKEEP_INTEGRATION_ID, // required
// organizationId: import.meta.env.VITE_INKEEP_ORGANIZATION_ID, // required
// primaryBrandColor: "#1398FE", // your brand color, widget color scheme is derived from this
// organizationDisplayName: "Avo",
// // ...optional settings
// chatButtonText: "Ask the AI Assistant",
// },
// modalSettings: {
// // optional settings
// },
// searchSettings: {
// // optional settings
// },
// aiChatSettings: {
// // optional settings
// botAvatarSrcUrl: "/logomark.png", // use your own bot avatar
// // quickQuestions: [
// // "Example question 1?",
// // "Example question 2?",
// // "Example question 3?",
// // ],
// },
// },
// };

// const inkeepWidget = Inkeep().embed(config);`
// ],
// <script async="" src="https://www.google-analytics.com/analytics.js"></script>
[
'script',
Expand Down
Binary file added docs/public/logomark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions docs/public/static/addInkeep.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Embed the widget using the `Inkeep.embed()` function.
const config = {
componentType: "ChatButton",
// optional -- for syncing UI color mode
colorModeSync: {
observedElement: document.documentElement,
isDarkModeCallback: (el) => {
return el.classList.contains("dark");
},
colorModeAttribute: "class",
},
properties: {
chatButtonType: "PILL",
baseSettings: {
apiKey: "389a67786d65d3ed8f59715c9e61d4a782c33269e7a89919", // required
integrationId: "cm0wbyzba009blzci5h1bxbg8", // required
organizationId: "org_IqSqx2i7H6DlDzGS", // required
primaryBrandColor: "#1398FE", // your brand color, widget color scheme is derived from this
organizationDisplayName: "Avo",
// ...optional settings
chatButtonText: "Ask the AI Assistant",
},
modalSettings: {
// optional settings
},
searchSettings: {
// optional settings
},
aiChatSettings: {
// optional settings
botAvatarSrcUrl: "/logomark.png", // use your own bot avatar
// quickQuestions: [
// "Example question 1?",
// "Example question 2?",
// "Example question 3?",
// ],
},
},
};

const inkeepWidget = Inkeep().embed(config);

0 comments on commit 9d56845

Please sign in to comment.