Back to dashboardLocal documentation preview fix — 2026-12-03

Local documentation preview fix — 2026-12-03

Source base: 7a8435f. The reported /docs/index.html URL returned 404. Inspection showed python -m http.server 8000 --directory docs/site running from the parent directory, so its relative document root did not exist. The generated handbook itself is under the repository's docs/site/.

Added a Python-standard-library preview helper and native wrapper. Its default root comes from the helper's project, independent of shell cwd. The reported URL redirects to /docs/site/index.html; generated handbook assets and /docs/skill-dashboard/ are served from the same origin. The loopback server does not build/write files, list directories, serve the whole repository or follow symlink/traversal requests. New exports include the standalone helper and preview instructions.

Validation: four focused HTTP tests and ten clean-export regression tests passed. Handbook freshness, documentation links and diff checks passed. The broken known documentation server was replaced; the current helper was launched from the same parent directory that previously caused the issue. Actual curl checks returned HTTP 200 after following the reported URL's redirect, and 200 for handbook CSS and the dashboard. The preview is running on localhost:8000. This is a local development preview, not hosted deployment or a full web-server/security audit.

Start/restart: python3 .claude/framework/serve_docs.py --port 8000. Open http://localhost:8000/docs/index.html. An occupied port is reported instead of terminating an unrelated listener. Existing browser/template qualification retains its prior scope; no new native/model behavior is claimed.