Skip to content

Commit 44dfd65

Browse files
tannevaledclaude
andauthored
landing: landingkit v0.29.0 and the kit's recipe (#12)
Batch C of the landing sweep (landingmigrate upgrade): the pin, the hero row from [[params.cta]] + cta.html, the tagline's repeat of the strip hidden, the architectures line where the library's CI runs tests on them, and a workflow that runs `landingkit check public`. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent a9bd178 commit 44dfd65

5 files changed

Lines changed: 56 additions & 9 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: landingkit-check
2+
3+
# The landing kit's own rules (a hand-written hero row, a playground link that is
4+
# not btn-try, a fact said twice beside the mantra strip, a fork ribbon with no
5+
# Digital Commons band), read from the BUILT site.
6+
7+
on:
8+
pull_request:
9+
branches: [main]
10+
push:
11+
branches: [main]
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
check:
19+
name: the page follows the kit
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v7
23+
- uses: actions/setup-go@v7
24+
with:
25+
go-version-file: go.mod
26+
cache: false
27+
- uses: peaceiris/actions-hugo@v3
28+
with:
29+
hugo-version: "0.169.0"
30+
extended: true
31+
- run: hugo --minify --destination ./public
32+
- name: Check
33+
env:
34+
GOWORK: "off"
35+
run: go run github.com/go-fleettools/landingkit/cmd/landingkit check public

‎go.mod‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/go-ruby-parser/go-ruby-parser.github.io
22

3-
go 1.27.3
3+
go 1.27.4
44

5-
require github.com/go-fleettools/landingkit v0.7.1
5+
require github.com/go-fleettools/landingkit v0.29.0

‎go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/go-fleettools/landingkit v0.7.1 h1:Fw8Chr7QZ5+Y5KjEyPDlfMjficF4rH/f2dDMu1l5QT4=
2-
github.com/go-fleettools/landingkit v0.7.1/go.mod h1:gBpbziqFcmcjtNknPjy5+AAzGZ5L+pPr9mIJZHpDlZc=
1+
github.com/go-fleettools/landingkit v0.29.0 h1:DLjwM6jHnfymwN3j3gyuJW3v+dR16YlM05zMPV0QWCY=
2+
github.com/go-fleettools/landingkit v0.29.0/go.mod h1:jSXTO7FVKNXCK1aJjLq7H7x8d8wxDoXe3ncXWGcAKRE=

‎hugo.toml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,17 @@ disableKinds = ["taxonomy", "term", "RSS", "sitemap", "404"]
3636
chipFgDark = "#ec8888"
3737
statsEnd = "#f7cbcb"
3838
bandText = "#f9dcdc"
39+
40+
# The hero's buttons, rendered by landingkit's cta.html in the kit's order.
41+
[[params.cta]]
42+
kind = "docs"
43+
href = "/docs/"
44+
label = "Documentation"
45+
[[params.cta]]
46+
kind = "github"
47+
href = "https://github.com/go-ruby-parser/parser"
48+
label = "GitHub"
49+
50+
# The architectures the tests RUN on, read from the library's CI.
51+
[params.mantra]
52+
goarch = ["amd64", "arm64", "riscv64", "loong64", "ppc64le", "s390x"]

‎layouts/index.html‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@
4040
<div class="hero"><div class="wrap">
4141
<div>
4242
<h1 class="head">go-ruby-parser</h1>
43-
<p class="sub">A Ruby front-end in pure Go — lexer, parser, AST. No cgo, no Prism.</p>
44-
<div class="cta">
45-
<a class="btn btn-primary" href="/docs/">{{ partial "icons/book.html" . }}Documentation</a>
46-
<a class="btn btn-ghost" href="https://github.com/go-ruby-parser/parser">{{ partial "icons/github.html" . }}GitHub</a>
47-
</div>
43+
<p class="sub">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.</p>
44+
{{/* [[params.cta]] in hugo.toml: the kit renders the row */}}
45+
{{ partial "cta.html" . }}
4846
<div class="trust">{{ if not (partial "mantra-on.html" $) }}<span class="pill">pure Go · zero cgo</span>{{ end }}<span class="pill">stateful lexer</span><span class="pill">recursive-descent + Pratt</span><span class="pill">typed AST</span><span class="pill">v0.4.0 · 2026-09-26</span><span class="pill">Ruby 4.0 subset</span><span class="pill">pattern matching</span><span class="pill">heredocs</span><span class="pill">MRI 4.0.5 differential-tested</span><span class="pill">100% coverage</span><span class="pill">6 arches · WebAssembly</span></div>
4947
<div class="legacy"><div class="badges">
5048
<a href="/docs/"><img alt="Documentation (MkDocs Material + mike)" src="https://img.shields.io/badge/docs-mkdocs--material-9B1C2E"></a>

0 commit comments

Comments
 (0)