diff --git a/.github/workflows/landingkit-check.yml b/.github/workflows/landingkit-check.yml new file mode 100644 index 0000000..3744cf4 --- /dev/null +++ b/.github/workflows/landingkit-check.yml @@ -0,0 +1,35 @@ +name: landingkit-check + +# The landing kit's own rules (a hand-written hero row, a playground link that is +# not btn-try, a fact said twice beside the mantra strip, a fork ribbon with no +# Digital Commons band), read from the BUILT site. + +on: + pull_request: + branches: [main] + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +jobs: + check: + name: the page follows the kit + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-go@v7 + with: + go-version-file: go.mod + cache: false + - uses: peaceiris/actions-hugo@v3 + with: + hugo-version: "0.169.0" + extended: true + - run: hugo --minify --destination ./public + - name: Check + env: + GOWORK: "off" + run: go run github.com/go-fleettools/landingkit/cmd/landingkit check public diff --git a/go.mod b/go.mod index b889c03..799bb1d 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/go-plot/go-plot.github.io go 1.27.4 -require github.com/go-fleettools/landingkit v0.22.0 +require github.com/go-fleettools/landingkit v0.29.0 diff --git a/go.sum b/go.sum index 161fde5..5a9c481 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/go-fleettools/landingkit v0.22.0 h1:e5mGBhudZsulY7Yol+Qntw0j8rZOwLVTlszkbMeKAU0= -github.com/go-fleettools/landingkit v0.22.0/go.mod h1:jSXTO7FVKNXCK1aJjLq7H7x8d8wxDoXe3ncXWGcAKRE= +github.com/go-fleettools/landingkit v0.29.0 h1:DLjwM6jHnfymwN3j3gyuJW3v+dR16YlM05zMPV0QWCY= +github.com/go-fleettools/landingkit v0.29.0/go.mod h1:jSXTO7FVKNXCK1aJjLq7H7x8d8wxDoXe3ncXWGcAKRE= diff --git a/hugo.toml b/hugo.toml index 90297d3..870bb87 100644 --- a/hugo.toml +++ b/hugo.toml @@ -79,3 +79,13 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404'] chipBgDark = "rgba(90,174,230,.14)" chipBorderDark = "rgba(90,174,230,.32)" chipFgDark = "#a4d2f1" + +# The hero's buttons, rendered by landingkit's cta.html in the kit's order. +[[params.cta]] + kind = "docs" + href = "https://go-plot.github.io/docs/" + label = "Read the documentation →" + +# The architectures the tests RUN on, read from the library's CI. +[params.mantra] + goarch = ["amd64", "arm64", "riscv64", "loong64", "ppc64le", "s390x"] diff --git a/layouts/index.html b/layouts/index.html index 34c9836..4e38f5d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -19,10 +19,9 @@

matplotlib's figures, in pure Go.
Tested equal where they can be equal.

-

go-plot is the plotting library of the Go scientific stack built on go-ndarray. Its object model and defaults are matplotlib's — figure size, fonts, colour cycle, margins, tick placement and tick labels — so a figure looks the way a matplotlib user expects. It writes SVG and PNG, sets labels with a real TeX math typesetter, and needs no Python and no cgo: one static binary, js/wasm included.

- +

go-plot is the plotting library of the Go scientific stack built on go-ndarray. Its object model and defaults are matplotlib's — figure size, fonts, colour cycle, margins, tick placement and tick labels — so a figure looks the way a matplotlib user expects. It writes SVG and PNG, sets labels with a real TeX math typesetter, and needs no Python and {{ if not (partial "mantra-on.html" $) }}no cgo{{ end }}: one static binary, js/wasm included.

+ {{/* [[params.cta]] in hugo.toml: the kit renders the row */}} + {{ partial "cta.html" . }}
408 axes of ticks, bit for bit{{ len .Site.Params.checks }} kinds of check against matplotlib100% test coverage
{{/* go-plot/plot v0.1.0, tools/compare/readme/main.go, verbatim but for @@ -85,9 +84,9 @@

The plotting library notebooks reach for first.

🧮

Data from go-ndarray

Every data argument takes []float64, other numeric slices, or a *ndarray.Array of any of its thirteen dtypes.

🖼️

SVG, PNG, and notebooks

SaveSVG writes vector paths, SavePNG anti-aliased pixels, and Display hands a notebook kernel both. The SVG inlines under a strict Content-Security-Policy: no script, no style attribute, no external reference, text as outlines.

🥧

Pie and donut charts

Pie is ax.pie: labels, AutoPct percentages, explode, start angle, direction, a legend. Donut draws a ring. Labels from data can skip TeX (PlainText), and thin wedges' labels can be spread apart (SpreadLabels).

-
📦

Pure Go, CGO=0

No Python, no C. It builds for the six 64-bit Linux targets, 386, arm, js/wasm and wasip1/wasm.

+ {{ if not (partial "mantra-on.html" $) }}
📦

Pure Go, CGO=0

No Python, no C. It builds for the six 64-bit Linux targets, 386, arm, js/wasm and wasip1/wasm.

{{ end }}
✅

100% test coverage

Gated in CI on three operating systems, with six architectures.

-
⚖️

BSD-3-Clause

Every repository of the organization.

+ {{ if not (partial "mantra-on.html" $) }}
⚖️

BSD-3-Clause

Every repository of the organization.

{{ end }}