Commit Graph
1 Commits
Author SHA1 Message Date
Andi Milhomme 304d27f9c7 feat(server): serve bundled API docs at /docs (#3347)
* build: stage API docs into resources

* feat(server): serve API docs at /docs

* test: cover /docs endpoint, fix empty-file truncation bug

* feat(server): serve bundled API docs at /docs

* feat(server): serve the API reference as an index plus one page per URL

Replaces the concatenated response with a JSON index at /v1/docs and one
page per URL at /v1/docs/api/lemonade, so pages can be added later without
breaking clients. Widens the bundle to all of docs/api.

* feat(mcp): expose the bundled API reference as a lemonade_docs tool

Lists the reference pages the server ships, or returns one as markdown when
`page` is given. Reuses the HTTP endpoint's lookup so the path confinement
is shared rather than written twice.

* feat(server): optionally bundle the rendered documentation site at /docs/

Adds BUILD_DOCS_SITE, off by default, which builds the existing Zensical
site into resources/docs-site and serves it at /docs/. Off by default
because zensical installs with pip; the Debian build uses only the archive.

* ci(windows): bundle the documentation site in the installer builds

Installs zensical and configures with BUILD_DOCS_SITE=ON in both Windows
installer jobs, so the shipped MSIs carry the docs site while source builds
that cannot install from pip are unaffected.

* fix(docs): repair corrupted Windows doc paths

Replace backspace and carriage-return characters with literal backslashes.

* build: remove Zensical docs site build and packaging wiring

Remove BUILD_DOCS_SITE, BuildDocsSite.cmake, WiX docs-site fragments, and CI site bundling steps.

* fix(server): stop /docs from showing the UI

Return JSON 404 for /docs and point clients to /v1/docs instead, preventing falling back to the SPA UI.

* test: verify /docs returns 404 instead of UI

* fix(server): drop the leftover docs-site mount
2026-09-10 17:58:46 +00:00