1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-27 00:19:39 +01:00

feat: expose kapi as part of docs ()

Small poc to add ask kapi.ai to our docs. UI not great yet. 


![image](https://github.com/Unleash/unleash/assets/158948/68a5b60f-0262-4fe3-89d8-3fcf30d23029)

And this is the widget in action:

![image](https://github.com/Unleash/unleash/assets/158948/63b0bcdd-b164-46dc-89ea-7f7f80aa364a)

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.io>
This commit is contained in:
Ivar Conradi Østhus 2023-06-23 13:55:59 +02:00 committed by GitHub
parent 4a0d5fcede
commit 72657a60a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions
website

View File

@ -636,4 +636,15 @@ module.exports = {
'docusaurus-theme-openapi-docs', // Allows use of @theme/ApiItem and other components
'@docusaurus/theme-mermaid',
],
scripts: [
{
src: 'https://widget.kapa.ai/kapa-widget.bundle.js',
'data-website-id': '1d187510-1726-4011-b0f7-62742ae064ee',
'data-project-name': 'Unleash',
'data-project-color': '#1A4049',
'data-project-logo':
'https://cdn.getunleash.io/uploads/2022/05/logo.png',
async: true,
},
],
};

View File

@ -1,5 +1,5 @@
/* Figures (with captions) */
figure {
.main-wrapper figure {
box-shadow: var(--ifm-global-shadow-lw);
border-radius: var(--ifm-global-radius);
border: var(--ifm-global-border-width) solid var(--unleash-color-gray);