Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/landingkit-check.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
14 changes: 14 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
8 changes: 3 additions & 5 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@
<div class="hero"><div class="wrap">
<div>
<h1 class="head">go-ruby-parser</h1>
<p class="sub">A Ruby front-end in pure Go — lexer, parser, AST. No cgo, no Prism.</p>
<div class="cta">
<a class="btn btn-primary" href="/docs/">{{ partial "icons/book.html" . }}Documentation</a>
<a class="btn btn-ghost" href="https://github.com/go-ruby-parser/parser">{{ partial "icons/github.html" . }}GitHub</a>
</div>
<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>
{{/* [[params.cta]] in hugo.toml: the kit renders the row */}}
{{ partial "cta.html" . }}
<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>
<div class="legacy"><div class="badges">
<a href="/docs/"><img alt="Documentation (MkDocs Material + mike)" src="https://img.shields.io/badge/docs-mkdocs--material-9B1C2E"></a>
Expand Down
Loading