Repository navigation
chore(web): regenerate course data from current chapters - #621
lihanyu1715446406-afk wants to merge 1 commit into
Conversation
|
Re-verified on the current branch (upstream
Three workflows are still waiting on maintainer action:
Could a maintainer approve the workflow runs and re-enable the Vercel project when convenient? Happy to adjust anything if CI surfaces an issue. |
|
Closing this, since the change is now superseded. I rebased onto the current Nothing left to merge, so I'll close it rather than push an empty commit. Thanks for the review! |
Fixes #620
Regenerated the committed web data at
main(7226f55) by running the repository's own extractor, with no hand edits:cd web npm ci npm run extractWhat changed
web/src/data/generated/versions.json— all 17 chaptersourcesnapshots now matchsNN_*/code.py, together with theirloc/functions/classesmetadata and the per-chapter diffs.web/src/data/generated/docs.json— content updated for s04/s05/s06 (zh) and s07/s08/s16 (en/zh/ja), picking up README edits that had not been regenerated.The drift came from recent lesson changes (the OS-aware
ENVIRONMENT_PROMPTfrom #587, REPL quit handling, the s08 compaction work in #603) landing incode.py/ README without re-running the extractor.Why it matters
main'sTestworkflow is currently red:tests/test_web_scenarios.py::test_generated_s16_metadata_extends_s15_without_registry_false_positivesfails because generated sources lag the chapters. With this change that test passes.Verification
npm run extracton7226f55produces only these two files.python -m pytest tests/test_web_scenarios.py -q— the generated-data test passes. On my Windows machine the two lesson-loading tests still fail for the unrelated missinganthropic/fcntlmodules; they pass on CI's Ubuntu runner.AI assistance: Claude Code was used to inspect the repository, compare the generated output against every chapter, and prepare this PR; the extractor itself was run locally.