Skip to content

Commit b00103c

Browse files
authored
ai chat (#109)
1 parent 4ef16c1 commit b00103c

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

docusaurus.config.js

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const allLanguages = ['yaml', 'bash', 'docker', 'java', 'properties', 'json', 't
88

99
/** @type {import('@docusaurus/types').Config} */
1010
const config = {
11-
title: 'Stirling-PDF',
11+
title: 'Stirling PDF',
1212
tagline: 'Your locally hosted one-stop-shop for all your PDF needs.',
1313
favicon: 'img/favicon.ico',
1414

@@ -35,6 +35,16 @@ const config = {
3535
autoBlock: 'on'
3636
}
3737
},
38+
{
39+
src: 'https://widget.kapa.ai/kapa-widget.bundle.js',
40+
'data-website-id': '32633e81-a72c-4df4-9cb9-c6cd3a0899cb',
41+
'data-project-name': 'Stirling PDF',
42+
'data-project-color': '#b52e2e',
43+
'data-project-logo': 'https://docs.stirlingpdf.com/img/logo.svg',
44+
'data-view-mode': 'sidebar',
45+
'data-color-scheme-selector': "[data-theme='dark']",
46+
async: true,
47+
},
3848
],
3949
plugins: [
4050
[
@@ -134,9 +144,9 @@ const config = {
134144

135145
image: 'img/stirling-social-card.png',
136146
navbar: {
137-
title: 'Stirling-PDF',
147+
title: 'Stirling PDF',
138148
logo: {
139-
alt: 'Stirling-PDF Logo',
149+
alt: 'Stirling PDF Logo',
140150
src: 'img/logo.svg',
141151
},
142152
items: [{
@@ -155,12 +165,17 @@ const config = {
155165
label: 'GitHub',
156166
position: 'right',
157167
},
168+
{
169+
type: 'html',
170+
position: 'right',
171+
value: '<button id="kapa-navbar-btn" class="navbar__link" style="background:none;border:none;cursor:pointer;font:inherit;color:inherit;padding:4px 8px;" onclick="window.Kapa &amp;&amp; window.Kapa.open()">&#10024; Ask AI</button>',
172+
},
158173
],
159174
},
160175
footer: {
161176
style: 'dark',
162177
links: [{
163-
title: 'Stirling-PDF',
178+
title: 'Stirling PDF',
164179
items: [{
165180
label: 'Homepage',
166181
to: 'https://www.stirlingpdf.com/',
@@ -203,7 +218,7 @@ const config = {
203218
],
204219
},
205220
],
206-
copyright: `Copyright © ${new Date().getFullYear()} Stirling-PDF, Inc. Built with Docusaurus.`,
221+
copyright: `Copyright © ${new Date().getFullYear()} Stirling PDF, Inc. Built with Docusaurus.`,
207222
},
208223
prism: {
209224
theme: prismThemes.github,

0 commit comments

Comments
 (0)