Documentation
¶
Overview ¶
Command build writes a deployable playground: a directory holding the page, the WebAssembly core built from source, Go's wasm_exec.js and the example notebooks.
go run github.com/go-notebook/playground/cmd/build -o public/playground \
--org go-statistics --home https://go-statistics.github.io/ \
--accent '#9e520f' --accent-dark '#f2b36b' notebooks/*.md
It runs from a Go module that requires github.com/go-notebook/playground, so that the version it builds is the one go.mod pins. Before writing anything it runs every notebook, natively, with the same engine the page runs in WebAssembly, and fails if a cell fails: a site never publishes an example that does not run.
Click to show internal directories.
Click to hide internal directories.