From 0b814bd94b193d341cea4833d6e3570171c436c2 Mon Sep 17 00:00:00 2001 From: Tim McMackin Date: Thu, 31 Jul 2025 11:07:00 -0400 Subject: [PATCH] Move Biel AI button to navbar --- docusaurus.config.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 93427c54..4f889144 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -104,7 +104,8 @@ module.exports = async function createConfigAsync() { 'docusaurus-biel',{ project: BIEL_PROJECT, headerTitle: 'Etherlink/Tezos documentation chatbot (beta)', - buttonPosition: 'center-right', + // buttonPosition: 'custom', + enable: false, // Hide here to allow us to put the button in a custom position version: 'latest', suggestedQuestions: [ 'What development tools does Etherlink support?', @@ -138,6 +139,17 @@ module.exports = async function createConfigAsync() { type: 'search', position: 'left' }, + { + type: 'html', + position: 'right', + value: ` + Ask AI + `, + }, { href: 'https://github.com/etherlinkcom/docs', position: 'right', @@ -211,6 +223,10 @@ module.exports = async function createConfigAsync() { 'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM', crossorigin: 'anonymous', }, + 'https://cdn.jsdelivr.net/npm/biel-search@latest/dist/biel-search/biel-search.css', + ], + scripts: [ + 'https://cdn.jsdelivr.net/npm/biel-search@latest/dist/biel-search/biel-search.esm.js', ], } };