8 Commits
Author SHA1 Message Date
Alex 2b77d1994e feat(docs): use the docs agent key by default
The widget now ships with the docs agent's embed token, so the site works
without any environment configuration. NEXT_PUBLIC_DOCSGPT_API_KEY still
overrides it for staging.

The key is public either way. NEXT_PUBLIC_* is inlined at build time, so
it lands in the client bundle whichever way it is supplied, and every
documented DocsGPT embed carries its key in the page. Abuse is bounded by
the agent's daily request and token limits, enforced by check_usage on
the answer and stream routes.
2026-09-12 16:17:02 +01:00
Alex 3711426c83 feat(docs): mount the DocsGPT chat widget
Adds a floating "Ask the docs" bubble to every docs page. docsgpt-react
was already a dependency but nothing imported it, so no widget rendered.

The widget reads window and navigator on mount, so it is lazy-loaded
with ssr: false from a client wrapper. Its light/dark theme follows the
site toggle via next-themes, promoted here from a transitive dependency
to a declared one.

The key comes from NEXT_PUBLIC_DOCSGPT_API_KEY and the host from
NEXT_PUBLIC_DOCSGPT_API_HOST. With no key set the wrapper renders
nothing rather than falling through to the demo key the package defaults
to.

Bumping docsgpt-react to ^0.7.0 also drops a duplicate React. The old
^0.6.3 pin depended on React 18 and npm installed a nested 18.3.1 beside
the app's 19.2.8, which would have thrown an invalid hook call on first
render.
2026-09-12 12:15:08 +01:00
Pavel 5c19d972d2 Docs revamp 2026-06-26 11:56:20 +04:00
Alex 17a736a927 docs: migrate to Nextra 4 and Next.js App Router 2026-02-18 17:13:24 +00:00
Pavel 26f819098d agents and tools doc update 2025-05-20 20:32:38 +04:00
Pavel b44b9d8016 models+guide-upd+extentions 2025-02-12 14:38:21 +03:00
Alex bf486082c9 fix: centering 2025-02-11 17:27:45 +00:00
Alex 41290b463c feat: cards 2025-02-11 17:17:12 +00:00