From d23f09397ba151b3b8544a1c27858ad503dee4d0 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 15 Nov 2026 16:03:21 +0100 Subject: [PATCH] Align the landing with landingkit v0.36.0, as go-tex's is landingkit audit reported DRIFT: a hero call-to-action row written by hand (no data-kit-cta). - landingkit v0.20.0 -> v0.36.0. - The hero buttons come from [[params.cta]] and the kit's cta.html (docs, then the red btn-try with its icon) instead of a hand-written row. - [params.mantra] goarch lists "Tested on": amd64, arm64, riscv64, loong64, ppc64le, s390x, the architectures notebook's and playground's ci.yml RUN the tests on (native or qemu); cross-compile-only targets are not listed. - The Digital Commons ribbon and the pill order come from the kit (fork-ribbon.html emits the band; CGO_ENABLED=0 leads, then the licence). - v0.21.0+ needs go 1.27.4: go.mod, playground/go.mod and example/go.mod are bumped together (every workflow reads its Go from a go.mod). - links.yml runs `landingkit check public` after the link check. Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/links.yml | 4 ++++ example/go.mod | 2 +- go.mod | 4 ++-- go.sum | 4 ++-- hugo.toml | 18 ++++++++++++++++++ layouts/index.html | 7 +++---- playground/go.mod | 2 +- 7 files changed, 31 insertions(+), 10 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index a94dec2..b79e8df 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -34,3 +34,7 @@ jobs: env: GOWORK: "off" run: go run github.com/go-fleettools/landingkit/cmd/landingkit links public + - name: Say the mantra once, and the row from the kit + env: + GOWORK: "off" + run: go run github.com/go-fleettools/landingkit/cmd/landingkit check public diff --git a/example/go.mod b/example/go.mod index 9aef660..361747d 100644 --- a/example/go.mod +++ b/example/go.mod @@ -1,6 +1,6 @@ module github.com/go-notebook/go-notebook.github.io/example -go 1.27.3 +go 1.27.4 tool github.com/go-notebook/notebook/cmd/notebook diff --git a/go.mod b/go.mod index 93b9ba3..1bee543 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/go-notebook/go-notebook.github.io -go 1.27.3 +go 1.27.4 -require github.com/go-fleettools/landingkit v0.20.0 +require github.com/go-fleettools/landingkit v0.36.0 diff --git a/go.sum b/go.sum index 8c8b6ee..ea7b30c 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/go-fleettools/landingkit v0.20.0 h1:gX+9LvgfxD1LW6igdQD05DegqIIkvDO5QSotCAPgj3Q= -github.com/go-fleettools/landingkit v0.20.0/go.mod h1:gBpbziqFcmcjtNknPjy5+AAzGZ5L+pPr9mIJZHpDlZc= +github.com/go-fleettools/landingkit v0.36.0 h1:DGYv415snXyLY+usOuBKLgLrOiDF6lEtzvnVvsJULNg= +github.com/go-fleettools/landingkit v0.36.0/go.mod h1:jSXTO7FVKNXCK1aJjLq7H7x8d8wxDoXe3ncXWGcAKRE= diff --git a/hugo.toml b/hugo.toml index 31d21d1..15fe631 100644 --- a/hugo.toml +++ b/hugo.toml @@ -18,6 +18,24 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404'] [params] description = "go-notebook: Go notebooks with native speed, kept values and a reproducible order. A notebook is a Markdown file whose go blocks (and ruby blocks, on a pure-Go Ruby) are cells; the kernel compiles it, orders the cells by what they use, and runs only what changed." +# The strip under the top bar: the kit's two chips (CGO_ENABLED=0, then the +# licence) and, under them, "Tested on": only the architectures CI RUNS the +# tests on. notebook and playground ci.yml: amd64 (ubuntu, windows), arm64 +# (macos, ubuntu-arm) and riscv64, loong64, ppc64le, s390x under qemu. Targets +# that are only cross-compiled (386, arm, mips...) are not listed. +[params.mantra] + goarch = ["amd64", "arm64", "riscv64", "loong64", "ppc64le", "s390x"] + +# The hero's buttons, rendered by landingkit's cta.html in the kit's order. +[[params.cta]] + kind = "docs" + href = "https://go-notebook.github.io/docs/" + label = "Read the documentation →" +[[params.cta]] + kind = "try" + href = "/playground/" + label = "Try it in your browser" + # The hero's carousel (the landing kit's hero-carousel.html). The first card # is layouts/partials/hero-terminal.html, the second hero-terminal-ruby.html: # example/waits.md and what running it printed, checked by the ci workflow. diff --git a/layouts/index.html b/layouts/index.html index 8a9371e..b8b746a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -21,10 +21,9 @@

Go notebooks, compiled and reactive.
Native speed, kept values, a reproducible order.

A notebook is a Markdown file whose ```go blocks are cells. The kernel compiles it into a real Go program, orders the cells by what they use — worked out from the code itself, as marimo does for Python, not from the order you ran them in — and runs only what changed. A cell whose code and inputs did not change keeps its result, and its values are handed over instead of being computed again, across rebuilds and across runs.

- + {{/* [[params.cta]] in hugo.toml: the kit renders the row (docs, then the + red btn-try with its icon). */}} + {{ partial "cta.html" . }}
{{ len .Site.Params.rules }} cell rules, checked from the syntax.md diffs are diffs of text100% test coverage
{{/* The hero's cards, [params.hero] in hugo.toml: the README's notebook diff --git a/playground/go.mod b/playground/go.mod index 28d1317..f69d8d4 100644 --- a/playground/go.mod +++ b/playground/go.mod @@ -1,6 +1,6 @@ module github.com/go-notebook/go-notebook.github.io/playground -go 1.27.3 +go 1.27.4 require github.com/go-notebook/playground v0.16.0