From d5de544a617ea8e17270d918165c113094791a01 Mon Sep 17 00:00:00 2001 From: GigaHierz Date: Tue, 25 Aug 2026 15:29:30 +0100 Subject: [PATCH 1/5] test: verify custom JS injection for the docs assistant (#2250) Trivial marker script to confirm Mintlify's content-directory JS injection works on the current plan before building the real widget loader. Co-Authored-By: Claude Fable 5 --- assistant.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 assistant.js diff --git a/assistant.js b/assistant.js new file mode 100644 index 000000000..bb40e94bf --- /dev/null +++ b/assistant.js @@ -0,0 +1,5 @@ +// Injection test for the docs AI assistant (celo-org/docs#2250). +// Mintlify loads every .js file in the content directory on all pages; +// this marker verifies that works on the current plan before the real +// widget loader replaces it. +console.log('[celo-docs-assistant] custom JS injection OK'); From 57e8c83a0c9eb40262ecbce154f8eefa3d9d7716 Mon Sep 17 00:00:00 2001 From: GigaHierz Date: Wed, 26 Aug 2026 09:19:46 +0100 Subject: [PATCH 2/5] feat(assistant): load the docs AI assistant widget on every page Replaces the injection-test marker with the real loader. The widget is served from the assistant deployment and answers from the docs MCP endpoint with links back to the pages it used. Co-Authored-By: Claude Opus 5 (1M context) --- assistant.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/assistant.js b/assistant.js index bb40e94bf..0e3222478 100644 --- a/assistant.js +++ b/assistant.js @@ -1,5 +1,14 @@ -// Injection test for the docs AI assistant (celo-org/docs#2250). -// Mintlify loads every .js file in the content directory on all pages; -// this marker verifies that works on the current plan before the real -// widget loader replaces it. -console.log('[celo-docs-assistant] custom JS injection OK'); +// Loads the docs AI assistant widget on every page (celo-org/docs#2250). +// +// Mintlify includes every .js file in the content directory on all pages, but +// does not support a raw