Skip to content

Commit c62f6cf

Browse files
Chatbot Added
1 parent 6082d90 commit c62f6cf

File tree

2 files changed

+41
-11
lines changed

2 files changed

+41
-11
lines changed

.vitepress/config.mts

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,33 @@ export default defineConfig({
1616

1717
srcDir: './src',
1818

19+
head: [
20+
[
21+
'link',
22+
{ rel: 'icon', type: 'image/png', href: '/favicon.ico' }
23+
],
24+
[
25+
'script',
26+
{},
27+
`
28+
(function () {
29+
let script = document.createElement('script');
30+
31+
script.innerHTML = 'window.chatbotConfig = { url: "https://ask.bagisto.com:5000/chat" };';
32+
33+
document.body.appendChild(script);
34+
})();;
35+
`
36+
],
37+
[
38+
'script',
39+
{
40+
src: 'https://bagisto.github.io/ai-chatbot/chatbot.js',
41+
async: true
42+
}
43+
],
44+
],
45+
1946
themeConfig: {
2047
siteTitle: false,
2148

@@ -138,7 +165,6 @@ export default defineConfig({
138165
]
139166
},
140167

141-
142168
{
143169
text: 'Settings',
144170
collapsed: false,
@@ -219,7 +245,7 @@ export default defineConfig({
219245
]
220246
},
221247

222-
{
248+
{
223249
text: 'B2B Marketplace',
224250
collapsed: false,
225251
items: [
@@ -232,7 +258,7 @@ export default defineConfig({
232258
]
233259
},
234260

235-
{
261+
{
236262
text: 'Multi Tenant Ecommerce',
237263
collapsed: false,
238264
items: [
@@ -243,7 +269,7 @@ export default defineConfig({
243269
]
244270
},
245271

246-
{
272+
{
247273
text: 'B2B eCommerce Platform',
248274
collapsed: false,
249275
items: [
@@ -252,19 +278,19 @@ export default defineConfig({
252278
{ text: 'Role Based Permissions', link: '/b2b-ecommerce-platform/role-based-permissions' },
253279
{ text: 'Purchase Orders', link: '/b2b-ecommerce-platform/purchase-orders' },
254280
{ text: 'Requisition Lists', link: '/b2b-ecommerce-platform/requisition-lists' },
255-
{ text: 'Quick Order', link: '/b2b-ecommerce-platform/quick-order' },
256-
{ text: 'Request for Quote', link: '/b2b-ecommerce-platform/request-for-quote' },
257-
{ text: 'Quotation Handling', link: '/b2b-ecommerce-platform/quotation-handling' },
281+
{ text: 'Quick Order', link: '/b2b-ecommerce-platform/quick-order' },
282+
{ text: 'Request for Quote', link: '/b2b-ecommerce-platform/request-for-quote' },
283+
{ text: 'Quotation Handling', link: '/b2b-ecommerce-platform/quotation-handling' },
258284
]
259285
},
260286
],
261287

262-
outline: {
288+
outline: {
263289
level: 'deep'
264290
},
265-
291+
266292
footer: {
267-
message: 'Released under the <a href="https://opensource.org/licenses/mit" target="_blank" class="mit-licens">MIT License</a>.',
293+
message: 'Released under the <a href="https://opensource.org/licenses/mit" target="_blank" class="mit-license">MIT License</a>.',
268294
copyright: `Copyright © ${new Date().getFullYear()} Webkul`
269295
},
270296

@@ -299,4 +325,4 @@ export default defineConfig({
299325
console.log(`✅ Redirect created: ${from} -> ${to}`)
300326
})
301327
}
302-
})
328+
})

.vitepress/theme/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
}
2626
}
2727

28+
html.dark {
29+
color-scheme:initial!important;
30+
}
31+
2832
@media (min-width: 960px) {
2933
:root {
3034
--vp-home-hero-image-filter: blur(68px);

0 commit comments

Comments
 (0)