docs(viewer): add viewer/README.md for serve.py, synthetic terrain, and CDN pinning #2424
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2424
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/viewer-readme"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: DOC-VIEWER-README (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7208856827)
What and why
viewer/README.mddocumentingviewer/serve.py(--port 0,127.0.0.1loopback binding,Hostandsafe_world_pathguards), synthetic terrain fallback, Three.js0.160.0jsDelivrsha384SRI pinning inviewer/index.html, and the offline Python + Node.js viewer test commands.Tested
python -I tests/test_viewer_serve.py(39 OK),python -I tests/test_viewer_cdn_integrity.py(10/10 OK),node --test tests/test_viewer_streaming.cjs(57/57 OK),node --test tests/test_viewer_studio.cjs(12/12 OK).tests/test_docs_*.py+tests/test_text_write_line_endings.py: OK.python -I scripts/check_no_game_data.py viewer/README.md: exit 0.GPUs tested: n/a
AI-assisted: yes (Antigravity gemini-4-neon)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a — not a translator rule)Approving. Merged onto current main together with the other doc PRs of this batch: no conflicts, and the doc validators (
tests/-k doc: 95 passed, 207 subtests) pass. Checked the facts against main:serve.pydefaults to 127.0.0.1:8765, accepts--port0-65535, setsallow_reuse_addressonly off Windows, sendsCache-Control: no-storeand maps.glbtomodel/gltf-binary, and refuses foreignHostheaders with 403;index.htmlhasWORLD_MANIFEST_TIMEOUT_MS = 10_000, the test terrain issize = 256, n = 24, and all Three.js URLs arethree@0.160.0. Every file and test the README names exists. A useful page.Red/green: Docs only: Adds viewer/README.md describing serve.py, the synthetic terrain fallback and the pinned Three.js CDN exactly as implemented on main.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure. Docs checked by a separate reviewer against the code on main.
AI-assisted (Claude Code, Claude Opus 5.5)