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 0611cb8..39f40a5 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/go-ruby-parser/go-ruby-parser.github.io -go 1.27.3 +go 1.27.4 -require github.com/go-fleettools/landingkit v0.7.1 +require github.com/go-fleettools/landingkit v0.29.0 diff --git a/go.sum b/go.sum index c31b985..5a9c481 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/go-fleettools/landingkit v0.7.1 h1:Fw8Chr7QZ5+Y5KjEyPDlfMjficF4rH/f2dDMu1l5QT4= -github.com/go-fleettools/landingkit v0.7.1/go.mod h1:gBpbziqFcmcjtNknPjy5+AAzGZ5L+pPr9mIJZHpDlZc= +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 1c46619..e9512e2 100644 --- a/hugo.toml +++ b/hugo.toml @@ -36,3 +36,17 @@ disableKinds = ["taxonomy", "term", "RSS", "sitemap", "404"] chipFgDark = "#ec8888" statsEnd = "#f7cbcb" bandText = "#f9dcdc" + +# The hero's buttons, rendered by landingkit's cta.html in the kit's order. +[[params.cta]] + kind = "docs" + href = "/docs/" + label = "Documentation" +[[params.cta]] + kind = "github" + href = "https://github.com/go-ruby-parser/parser" + label = "GitHub" + +# 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 21904a9..dc775b4 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -40,11 +40,9 @@
A Ruby front-end in pure Go — lexer, parser, AST. No cgo, no Prism.
- +A Ruby front-end in {{ if partial "mantra-on.html" . }}Go{{ else }}pure Go{{ end }} — lexer, parser, AST. {{ if not (partial "mantra-on.html" $) }}No cgo{{ end }}, no Prism.
+ {{/* [[params.cta]] in hugo.toml: the kit renders the row */}} + {{ partial "cta.html" . }}