From cb002ffa90959c6e2feae444bf98f17a84016da3 Mon Sep 17 00:00:00 2001 From: Filippo Date: Tue, 16 Jul 2024 18:00:31 +0200 Subject: [PATCH] added chatbot + search bar --- polkadot-wiki/docusaurus.config.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/polkadot-wiki/docusaurus.config.js b/polkadot-wiki/docusaurus.config.js index 72f3d198d8ea..81056a35bf7f 100644 --- a/polkadot-wiki/docusaurus.config.js +++ b/polkadot-wiki/docusaurus.config.js @@ -25,6 +25,22 @@ module.exports = { "../js/custom.js", "../js/clipboard.min.js", "../js/copycode.js", + { + src: 'https://widget.kapa.ai/kapa-widget.bundle.js', + async: true, + 'data-website-id': 'f4bbad14-cc24-471c-8b7d-3267eafc6dc2', + 'data-project-name': 'Polkadot', + 'data-modal-title': 'Polkadot AI Chatbot', + 'data-project-color': '#1E1E1E', + 'data-button-bg-color': '#1C0533', + 'data-button-text-color': 'white', + 'data-project-logo': 'https://1000logos.net/wp-content/uploads/2022/08/Polkadot-Symbol.png', + 'data-modal-header-bg-color': '#1C0533', + 'data-modal-title-color': 'white', + 'data-modal-disclaimer': 'This is an AI chatbot trained to answer questions about Polkadot. As such, the answers it provides might not always be accurate or up-to-date. Please use your best judgement when evaluating its responses. Also, **please refrain from sharing any personal or private information with the bot**. By submitting a query, you agree that you have read and understood [these conditions](https://polkadot.network/legal-disclosures/). \n\n **If you need further assistance, you can reach out to [Polkadot Support](https://support.polkadot.network/support/tickets/new).**', + 'data-modal-example-questions': 'Where can I store my DOT?,How can I create a DOT account?,How can I stake my DOT?,How does Polkadot OpenGov work?', + 'data-search-mode-enabled': 'true', + }, ], stylesheets: [ "https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css",