Starlight, diataxis-shaped: a tutorial pair, six how-to guides, a generated tool reference plus a configuration reference, and four explanation pages covering architecture, sandbox isolation, see-and-drive, and the failure handling philosophy. The tool reference is generated from the running MCP server's own schemas, so its 33 tools, parameters and defaults cannot drift from the code; the generator asserts its grouping still covers exactly the live tool set. Infrastructure follows the warehacking cookie-cutter (multi-stage Dockerfile, Caddy serving dist with real 404 status, compose profiles for prod and dev, Makefile with a deploy target pointed at docker-2). Two deviations worth noting: remark-gfm is added to the MDX pipeline because Astro enables GFM for .md but not .mdx, so tables silently rendered as run-together paragraphs; and the card icon palette is pinned to the accent because Starlight's staggered grid rotates through colours including purple. Package URLs now point at the Gitea repo and this site.
19 lines
441 B
Caddyfile
19 lines
441 B
Caddyfile
:80 {
|
|
root * /srv/docs
|
|
encode zstd gzip
|
|
try_files {path} {path}/
|
|
file_server
|
|
|
|
# Serve the 404 page with a REAL 404 status. The older
|
|
# `try_files ... /404.html` form returned HTTP 200 for every missing
|
|
# path, which silently broke uptime checks, smoke tests, and Search
|
|
# Console (they all saw a "live" page).
|
|
handle_errors {
|
|
@404 expression {err.status_code} == 404
|
|
handle @404 {
|
|
rewrite * /404.html
|
|
file_server
|
|
}
|
|
}
|
|
}
|