Skip to content

Commit 407013b

Browse files
authored
disabled kapa.ai (#959)
1 parent 44a5838 commit 407013b

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

src/.vuepress/config.ts

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -84,47 +84,47 @@ _paq.push(['enableLinkTracking']);
8484
})();
8585
`,
8686
],
87-
[
88-
'script',
89-
{
90-
async: true,
91-
src: 'https://widget.kapa.ai/kapa-widget.bundle.js',
92-
'data-website-id': '2d37bfdd-8d98-40ba-9223-9d4f81bfb327',
93-
// 'data-language': 'zh',
94-
'data-project-name': 'Apache IoTDB',
95-
'data-project-color': '#9E2878',
96-
'data-button-image-height': '0px',
97-
'data-button-image-width': '0px',
98-
// 'data-button-bg-color': '#FFF',
99-
// 'data-button-text-color': '#9E2878',
100-
'data-project-logo': 'https://iotdb.apache.org/slogo.png',
101-
'data-button-position-right': '16px',
102-
'data-button-position-bottom': '120px',
103-
'data-button-height': '50px',
104-
'data-button-width': '50px',
105-
'data-button-text': 'Ask',
106-
'data-modal-image-width': '150px',
107-
'data-modal-title': 'AI Docs',
108-
// 'data-modal-disclaimer':
109-
// 'This is a custom LLM with access to all [Kapa documentation](https://docs.kapa.ai).',
110-
// 'data-modal-example-questions':
111-
// 'How do I get started?,How to add example questions?',
112-
'data-user-analytics-fingerprint-enabled': 'true',
113-
// 'data-modal-x-offset': '0',
114-
// 'data-modal-y-offset': '0',
115-
// 'data-modal-with-overlay': 'false',
116-
// 'data-modal-inner-flex-direction': 'column',
117-
// 'data-modal-inner-justify-content': 'end',
118-
// 'data-modal-inner-max-width': '500px',
119-
// 'data-modal-inner-position-left': 'auto',
120-
// 'data-modal-inner-position-right': '0',
121-
// 'data-modal-inner-position-bottom': '0',
122-
// 'data-modal-inner-position-top': '0',
123-
// 'data-modal-size': '100vh',
124-
// 'data-modal-lock-scroll': 'false',
125-
// 'data-modal-header-bg-color': '#fff',
126-
},
127-
],
87+
// [
88+
// 'script',
89+
// {
90+
// async: true,
91+
// src: 'https://widget.kapa.ai/kapa-widget.bundle.js',
92+
// 'data-website-id': '2d37bfdd-8d98-40ba-9223-9d4f81bfb327',
93+
// // 'data-language': 'zh',
94+
// 'data-project-name': 'Apache IoTDB',
95+
// 'data-project-color': '#9E2878',
96+
// 'data-button-image-height': '0px',
97+
// 'data-button-image-width': '0px',
98+
// // 'data-button-bg-color': '#FFF',
99+
// // 'data-button-text-color': '#9E2878',
100+
// 'data-project-logo': 'https://iotdb.apache.org/slogo.png',
101+
// 'data-button-position-right': '16px',
102+
// 'data-button-position-bottom': '120px',
103+
// 'data-button-height': '50px',
104+
// 'data-button-width': '50px',
105+
// 'data-button-text': 'Ask',
106+
// 'data-modal-image-width': '150px',
107+
// 'data-modal-title': 'AI Docs',
108+
// // 'data-modal-disclaimer':
109+
// // 'This is a custom LLM with access to all [Kapa documentation](https://docs.kapa.ai).',
110+
// // 'data-modal-example-questions':
111+
// // 'How do I get started?,How to add example questions?',
112+
// 'data-user-analytics-fingerprint-enabled': 'true',
113+
// // 'data-modal-x-offset': '0',
114+
// // 'data-modal-y-offset': '0',
115+
// // 'data-modal-with-overlay': 'false',
116+
// // 'data-modal-inner-flex-direction': 'column',
117+
// // 'data-modal-inner-justify-content': 'end',
118+
// // 'data-modal-inner-max-width': '500px',
119+
// // 'data-modal-inner-position-left': 'auto',
120+
// // 'data-modal-inner-position-right': '0',
121+
// // 'data-modal-inner-position-bottom': '0',
122+
// // 'data-modal-inner-position-top': '0',
123+
// // 'data-modal-size': '100vh',
124+
// // 'data-modal-lock-scroll': 'false',
125+
// // 'data-modal-header-bg-color': '#fff',
126+
// },
127+
// ],
128128
],
129129

130130
shouldPrefetch: false,

src/.vuepress/public/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ RewriteRule . /404.html [L]
66

77
ErrorDocument 404 /404.html
88

9-
Header set Content-Security-Policy "default-src data: blob: 'self' *.apache.org *.githubusercontent.com *.github.com *.algolia.net *.algolianet.com *.kapa.ai www.google.com *.gstatic.com *.apachecon.com *.communityovercode.org 'unsafe-inline' 'unsafe-eval'; frame-src 'self' data: blob:; frame-ancestors 'self'; worker-src 'self' data: blob:; img-src 'self' blob: data: https: *.apache.org www.apachecon.com; style-src 'self' 'unsafe-inline' data:;"
9+
Header set Content-Security-Policy "default-src data: blob: 'self' *.apache.org *.githubusercontent.com *.github.com *.algolia.net *.algolianet.com *.kapa.ai www.google.com *.gstatic.com *.apachecon.com *.communityovercode.org 'unsafe-inline' 'unsafe-eval'; frame-src 'self' www.google.com data: blob:; frame-ancestors 'self'; worker-src 'self' data: blob:; img-src 'self' blob: data: https: *.apache.org www.apachecon.com; style-src 'self' 'unsafe-inline' data:;"

0 commit comments

Comments
 (0)