[Tooling] "Open in Playground" links from doc snippets — url-encoded short, raw-URL fetch long — with tag/commit version pinning #382
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
john/McRogueFace#382
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Goal
Every doc snippet gets an "Open in Playground" action that loads its source into the WASM REPL playground. Snippets are copy-pasteable with no
sys.exit(), so they run in the REPL as-is — ideal payloads.Requirements
Two payload transports, chosen by size
#code=…); the playground shell decodes on load and populates/runs the REPL. Fragment stays client-side (never hits the server) and comfortably carries a few KB.Version-pinned source references (applies to the raw-URL fetch AND existing doc source links)
0.2.8).RELEASE_REF(the tag being cut) and the working commit —build_library.pyalready pins source links per ref; this generalizes that ref choice to the playground raw-fetch and the "Open in Playground" link generation.Playground shell work
reset_python_environment()so a loaded snippet starts from a clean scene.Sketch of the pieces
shell.html/src/scripts_playground/,EmscriptenStubs.cppinterop) URL/fragment reader + raw-URL fetch path.build_library.pylink generation: per-snippet "Open in Playground" URL, ref-pinned (tag vs commit) to match the doc build.Related
make wasmfull-game web build wears the playground code-panel shell (shell.html) instead of shell_game.html #384make deploy-playground— copy build-playground/ into the site checkout #386