scripts option of docusaurus.config.js to every page. You add the widget there.
Before you start
- Your website widget. Kelu makes one for you when you create a knowledge base. Its Install tab shows these steps with your widget id and key already in the code.
- Your site on the widget’s Sites it works on list (Install tab).
Add the widget
Open docusaurus.config.js
It is at the root of your project. In a TypeScript project it is
docusaurus.config.ts.Add the widget to scripts
Add this inside your config object. If Replace
scripts already exists, add the entry to it.docusaurus.config.js
YOUR_WIDGET_ID and kl_pk_... with the values from your widget’s snippet.