Skip to content

About

The go-notebook landing page (Hugo)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

go-notebook.github.io

The go-notebook landing page, https://go-notebook.github.io/, built with Hugo and the fleet's landing kit (a Hugo module pinned in go.mod).

  • /playground/: notebooks in the browser, Go and Ruby cells, run in WebAssembly with no server. The deploy workflow builds it with go-notebook/playground's cmd/build, at the version playground/go.mod pins, from the notebooks in playground/notebooks/ (it runs each one first and fails if a cell fails). The red "Try it in your browser" button in the hero leads there.

  • The hero is the kit's carousel: the README's notebook (layouts/partials/hero-terminal.html), a notebook with a Ruby cell and what it printed (hero-terminal-ruby.html), and the playground.

  • The Ruby card is a real run. It shows example/waits.md and example/output.txt, read from the files. To refresh the output after a bump of example/go.mod:

    cd example
    go tool notebook run waits.md > /tmp/out.raw
    go run ./stable < /tmp/out.raw > output.txt

    stable removes the timings and "kept" markers, the only parts that change from run to run; the notebook prints rounded numbers, so the output does not depend on the architecture. The ci workflow runs it again and fails if the output differs.

hugo server previews the page (Go is needed to resolve the kit).

About

The go-notebook landing page (Hugo)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages