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
7 changes: 7 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v7

# Hugo resolves the landingkit module (hugo.toml [module]) with the go
# command, at the version go.mod pins.
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: false

- name: Set up Hugo
uses: peaceiris/actions-hugo@v3
with:
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/go-pdfkit/go-pdfkit.github.io

go 1.27.1

require github.com/go-fleettools/landingkit v0.2.0
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/go-fleettools/landingkit v0.2.0 h1:p/LXzr65oSSr42Fvdk2PyWpyWxaCtUoRelNt2WSI4FI=
github.com/go-fleettools/landingkit v0.2.0/go.mod h1:NUBMh7cVFUfD/hX6Xv5ef2O/r4F6rPtPGGVd3T+9qc0=
52 changes: 26 additions & 26 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ disableKinds = ["taxonomy", "term", "RSS", "sitemap", "404"]
[markup.goldmark.renderer]
unsafe = true

# The design -- layouts/partials/styles.html, theme-toggle.html,
# fork-ribbon.html and icons/{github,book}.html -- comes from the shared Hugo
# module github.com/go-fleettools/landingkit, not from copies here: the copies
# drifted. Its version is pinned in go.mod (Renovate bumps it), and kit.go
# keeps `go mod tidy` from deleting that requirement. A file of the same name
# under layouts/partials/ would silently override the module's.
[module]
[[module.imports]]
path = "github.com/go-fleettools/landingkit"

# The architectures the whole test suite RUNS on -- not the ones it compiles
# for. amd64 and arm64 come from the ubuntu, windows and macOS runners; the
# other six from the arch job, five under qemu and 386 natively. Listed here
Expand All @@ -17,34 +27,24 @@ disableKinds = ["taxonomy", "term", "RSS", "sitemap", "404"]
[params]
arches = ["amd64", "arm64", "riscv64", "loong64", "ppc64le", "s390x", "386", "arm"]

# The shared stylesheet (layouts/partials/styles.html) is byte-identical to the
# one go-authn and go-fileshare carry; everything that differs between the orgs
# using it is here. The DARKER stop of the logo is the light-mode accent (it has
# to carry text on white), the BRIGHTER stop is the dark-mode one, and `deep` is
# a further step down for the gradient's far end. Both stops are read off
# static/img/logo.svg rather than chosen: #EF4444 -> #991B1B.
[params.brand]
base = "#991B1B" # logo's darker stop — light-mode accent and gradient start
deep = "#7F1D1D" # a step darker again — gradient end
bright = "#EF4444" # logo's brighter stop — dark-mode accent
shadow = "rgba(153,27,27,.7)" # = base, for the primary button's drop shadow
# Chip tints: the BRIGHT stop mixed into white at 12 % and 30 %, the same
# derivation go-pkgx's amber uses — reproducing its committed #fef3e2 and
# #fce2b6 from #F59E0B is how that rule was confirmed rather than assumed.
chipBg = "#fde9e9"
chipBorder = "#fac7c7"
chipFg = "#7F1D1D"
chipBgDark = "rgba(239,68,68,.14)"
# Generated by go-fleettools/landingkit from static/img/logo.svg: the colours are
# READ from the logo's gradient, never chosen. Do not add other keys:
# neutrals (backgrounds, surfaces, greys) belong to the shared sheet.
# Contrast: base on white 8.31:1, bright on the dark background 5.13:1.
base = "#991b1b"
deep = "#5d1010"
bright = "#ef4444"
shadow = "rgba(153,27,27,.7)"
glow = "rgba(153,27,27,.6)"
wash = "rgba(153,27,27,.10)"
washDeep = "rgba(93,16,16,.06)"
chipBg = "#fde9e9"
chipBorder = "#fac7c7"
chipFg = "#5d1010"
chipBgDark = "rgba(239,68,68,.14)"
chipBorderDark = "rgba(239,68,68,.32)"
chipFgDark = "#fca5a5"
# The three that used to be written into the rules: the nav glyph's drop
# shadow and the two hero washes. = base, base and deep.
glow = "rgba(153,27,27,.6)"
wash = "rgba(153,27,27,.10)"
washDeep = "rgba(127,29,29,.06)"
# Contrast, measured rather than eyeballed (WCAG 2.1, body-text bar is 4.5):
# #991B1B on #ffffff 8.31:1 AAA #EF4444 on #0b0e14 5.13:1 AA
# #7F1D1D on #fde9e9 8.59:1 AAA #fca5a5 on #0b0e14 10.18:1 AAA
chipFgDark = "#f69898"

[[params.repos]]
name = "reader"
Expand Down
9 changes: 9 additions & 0 deletions kit.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//go:build tools

// This file never builds. A Hugo site has no Go code, so `go mod tidy` --
// which Renovate runs after every bump -- would find nothing that uses
// github.com/go-fleettools/landingkit and delete its requirement from go.mod.
// Importing it here keeps it. See the landingkit README.
package site

import _ "github.com/go-fleettools/landingkit"
11 changes: 2 additions & 9 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,8 @@
<a class="brand" href="/"><img class="glyph" src="/img/logo.svg" width="32" height="32" alt="go-pdfkit logo"> go-pdfkit</a>
<nav><a href="#corpus">Corpus</a><a href="#use">Use it</a><a href="#repos">Repositories</a><a href="#arches">Where it runs</a></nav>
{{ partial "theme-toggle.html" . }}
{{/* GitHub's own mark, from Octicons (MIT) rather than drawn here: a
hand-traced logo is a wrong logo, and this fleet does not hand-draw
icons. aria-hidden because the word beside it already says what the
link is, and currentColor so it follows the button in both themes.
.btn is inline-flex with a gap, so it needs no rule of its own. */}}
<a class="btn btn-ghost" href="https://github.com/go-pdfkit">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"/></svg>
GitHub</a>
</div></header>
{{ partial "fork-ribbon.html" "https://github.com/go-pdfkit/pdfkit" }}

<div class="hero"><div class="wrap">
<div>
Expand Down Expand Up @@ -139,7 +132,7 @@ <h2>A subset, an encoding, and text you can still copy.</h2>
<div class="band">
<h2>100 % statement coverage, including the branches that report a bad file.</h2>
<p>And it <b>runs</b> on {{ len .Site.Params.arches }} architectures, not merely compiles for them. Pure Go, cgo disabled, BSD-3-Clause.</p>
<a class="btn btn-ghost" href="https://github.com/go-pdfkit">{{ partial "icons/mark-github.html" . }}Read the source on GitHub →</a>
<a class="btn btn-ghost" href="https://github.com/go-pdfkit">{{ partial "icons/github.html" . }}Read the source on GitHub →</a>
</div>
</div></section>

Expand Down
5 changes: 0 additions & 5 deletions layouts/partials/icons/book.html

This file was deleted.

5 changes: 0 additions & 5 deletions layouts/partials/icons/mark-github.html

This file was deleted.

Loading
Loading