From 01462844655bc515c485983b84ed384ffa532199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Mon, 1 Sep 2025 13:50:07 +0200 Subject: [PATCH 1/4] chore: install `docusaurus-biel` package --- package-lock.json | 12 +++++++++++- package.json | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index d8076bcdcf..93cb97f40b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,6 +28,7 @@ "@signalwire/docusaurus-plugin-llms-txt": "^1.2.1", "ajv": "^8.17.1", "clsx": "^2.0.0", + "docusaurus-biel": "^1.0.8", "docusaurus-plugin-image-zoom": "^3.0.1", "docusaurus-plugin-openapi-docs": "^4.3.7", "docusaurus-theme-openapi-docs": "^4.3.7", @@ -74,7 +75,7 @@ }, "apify-docs-theme": { "name": "@apify/docs-theme", - "version": "1.0.203", + "version": "1.0.207", "license": "ISC", "dependencies": { "@apify/docs-search-modal": "^1.2.2", @@ -11740,6 +11741,15 @@ "node": ">=0.10.0" } }, + "node_modules/docusaurus-biel": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/docusaurus-biel/-/docusaurus-biel-1.0.8.tgz", + "integrity": "sha512-/0Di34OijQWfU8JO+lGud4GmOtja21EEEGjg4r1BjxVwBykewV6NN/fvwuT/4Y7b1KM2Zzuyd3s1oGg1Il55rA==", + "license": "MIT", + "peerDependencies": { + "@docusaurus/core": "3.x" + } + }, "node_modules/docusaurus-gtm-plugin": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/docusaurus-gtm-plugin/-/docusaurus-gtm-plugin-0.0.2.tgz", diff --git a/package.json b/package.json index a4aa7ff682..2a21d75913 100644 --- a/package.json +++ b/package.json @@ -82,6 +82,7 @@ "@signalwire/docusaurus-plugin-llms-txt": "^1.2.1", "ajv": "^8.17.1", "clsx": "^2.0.0", + "docusaurus-biel": "^1.0.8", "docusaurus-plugin-image-zoom": "^3.0.1", "docusaurus-plugin-openapi-docs": "^4.3.7", "docusaurus-theme-openapi-docs": "^4.3.7", From 9626a2742fb7eaf0a22fe73b6df8473b0b7361cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Mon, 1 Sep 2025 13:50:30 +0200 Subject: [PATCH 2/4] feat: add Biel.AI chatbot widget --- docusaurus.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index 1cf94cc3a5..9afe62cae2 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -131,6 +131,13 @@ module.exports = { ], ]), plugins: [ + [ + 'docusaurus-biel',{ + project: 'zat23cvkm1', + headerTitle: 'Biel.ai chatbot', + version: 'latest' + } + ], 'docusaurus-plugin-image-zoom', [ '@docusaurus/plugin-content-docs', From c0fe244720b1456c1f343774122e8321f7f52245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Mon, 1 Sep 2025 13:54:59 +0200 Subject: [PATCH 3/4] feat: Biel-AI-based search --- docusaurus.config.js | 3 ++- src/theme/SearchBar.tsx | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/theme/SearchBar.tsx diff --git a/docusaurus.config.js b/docusaurus.config.js index 9afe62cae2..1a0ee9912b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -135,7 +135,8 @@ module.exports = { 'docusaurus-biel',{ project: 'zat23cvkm1', headerTitle: 'Biel.ai chatbot', - version: 'latest' + version: 'latest', + enable: false, } ], 'docusaurus-plugin-image-zoom', diff --git a/src/theme/SearchBar.tsx b/src/theme/SearchBar.tsx new file mode 100644 index 0000000000..309909a7bd --- /dev/null +++ b/src/theme/SearchBar.tsx @@ -0,0 +1,9 @@ +import React from 'react'; + +export default function SearchBar() { + // Replace with your + const projectId = 'zat23cvkm1'; + const headerTitle = 'Documentation chatbot'; + // @ts-ignore: Not a React component + return Search; +} From 2eb716ab03c9825edee564f4fd08af6c3c28649b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Mon, 1 Sep 2025 14:04:34 +0200 Subject: [PATCH 4/4] chore: run linter --- docusaurus.config.js | 4 ++-- src/theme/SearchBar.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 1a0ee9912b..844cc5ac35 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -132,12 +132,12 @@ module.exports = { ]), plugins: [ [ - 'docusaurus-biel',{ + 'docusaurus-biel', { project: 'zat23cvkm1', headerTitle: 'Biel.ai chatbot', version: 'latest', enable: false, - } + }, ], 'docusaurus-plugin-image-zoom', [ diff --git a/src/theme/SearchBar.tsx b/src/theme/SearchBar.tsx index 309909a7bd..364ac82531 100644 --- a/src/theme/SearchBar.tsx +++ b/src/theme/SearchBar.tsx @@ -4,6 +4,6 @@ export default function SearchBar() { // Replace with your const projectId = 'zat23cvkm1'; const headerTitle = 'Documentation chatbot'; - // @ts-ignore: Not a React component + // @ts-expect-error: Not a React component return Search; }