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 b828567..cdb6fff 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/go-ruby-yaml/go-ruby-yaml.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.29.0 diff --git a/go.sum b/go.sum index bf5ae94..5a9c481 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,2 @@ -github.com/go-fleettools/landingkit v0.7.0 h1:PgzQseKnfm6m2TOSN+HfsoYJxDI74WyuLq7MVaUjGdM= -github.com/go-fleettools/landingkit v0.7.0/go.mod h1:gBpbziqFcmcjtNknPjy5+AAzGZ5L+pPr9mIJZHpDlZc= -github.com/go-fleettools/landingkit v0.7.1/go.mod h1:gBpbziqFcmcjtNknPjy5+AAzGZ5L+pPr9mIJZHpDlZc= -github.com/go-fleettools/landingkit v0.14.0/go.mod h1:gBpbziqFcmcjtNknPjy5+AAzGZ5L+pPr9mIJZHpDlZc= -github.com/go-fleettools/landingkit v0.18.0/go.mod h1:gBpbziqFcmcjtNknPjy5+AAzGZ5L+pPr9mIJZHpDlZc= -github.com/go-fleettools/landingkit v0.20.0/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 abdeea3..2aeb54e 100644 --- a/hugo.toml +++ b/hugo.toml @@ -59,3 +59,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-yaml/yaml" + 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 da75357..4cff2ab 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -41,11 +41,9 @@
Ruby's Psych YAML emitter & loader in pure Go — MRI-compatible, no cgo.
- +Ruby's Psych YAML emitter & loader in {{ if partial "mantra-on.html" . }}Go{{ else }}pure Go{{ end }} — MRI-compatible, {{ if not (partial "mantra-on.html" $) }}no cgo{{ end }}.
+ {{/* [[params.cta]] in hugo.toml: the kit renders the row */}} + {{ partial "cta.html" . }}