No description
Find a file
2026-05-23 14:56:26 +02:00
sitemap v1.0.3: fixed incomplete sitemap sources 2026-04-22 15:43:31 +02:00
src v1.0.3: fixed incomplete sitemap sources 2026-04-22 15:43:31 +02:00
.gitignore v1.0.1: hardened application 2026-04-21 19:27:50 +02:00
bun.lock v1.0.1: hardened application 2026-04-21 19:27:50 +02:00
bunfig.toml Add Bun supply chain install policy 2026-05-23 14:48:03 +02:00
docker-compose.yml v1.0.2: hardened layout 2026-04-22 00:58:34 +02:00
Dockerfile Copy Bun install policy into Docker build 2026-05-23 14:56:26 +02:00
LICENSE first commit 2024-11-28 19:31:42 +01:00
package.json v1.0.3: fixed incomplete sitemap sources 2026-04-22 15:43:31 +02:00
README.md v1.0.3: fixed incomplete sitemap sources 2026-04-22 15:43:31 +02:00
tsconfig.json Modernized service 2025-12-06 19:00:23 +01:00

docs

docs is a Fastify service that exposes curated documentation indexes from the local sitemap/ directory.

What it serves

  • GET / for the route list
  • GET /status for health, route count, generation timestamp, and refresh mode
  • GET /api/:topic for the stored docs payload for that topic

The service boots from existing sitemap files, so runtime availability does not depend on live crawling succeeding in that moment.

Some sources are better handled as curated official route lists than as raw HTML crawling targets. That is intentional for docs sites that render most navigation client-side.

Runtime model

  • Local and Docker runs both serve the checked-in/generated sitemap/*.json files immediately.
  • Crawling is an explicit maintenance action, not a startup requirement.
  • Set HOST if you want to bind somewhere other than 127.0.0.1.
  • Set DOCS_REFRESH_ON_START=true only when you intentionally want boot-time regeneration.

Local run

npm install
npm start

Default local address: http://127.0.0.1:3000

Refresh stored docs

npm run refresh

That rebuilds the sitemap files from the configured project sources in src/projects.ts.

Docker run

docker compose up -d --build

Default Docker address: http://127.0.0.1:3002