colophon: Fable's review — labels never shrink, English marked, a default note, macros as tools
Claude Fable 5.1 on #27 (b674411):
- P1: at 320px flex squeezed a dt that overflow-wrap lets break anywhere
("Version" beside ProseMirror's nine versions, four lines). dt is
flex: none; dd takes the rest. Docs' browser check measures it.
- capitalised reads the first letter, not the first byte ("Łukasz …").
- lang="en" on the entries and the licence sections, never the
caller's labels (WCAG 3.1.2).
- Uses["*"]: one note for every app without its own, so transitive
dependencies are written once; only an app's own note can be stale.
- CollectCargo marks proc-macros, build dependencies and anything
reached only through them as tools: they run in the compiler and are
not linked into what ships.
- Catalog: authors are the licence's copyright holders where it names
them (arc-swap, dashmap, getrandom, parking_lot, memchr, scopeguard,
arrayvec, downcast-rs, libm, spin); Lucide's notes say what is true
(the chrome's interface icons, not the app icons); getrandom's say the
core's backend refuses every request; "license" in two names; plainer
onest, sparkle, memchr and esbuild; prosemirror-history dropped (no
app uses it); Rastrillo Native gains its Go server half, which Docs
links; Python, Docker, bubblewrap, XcodeGen and Swift as tools.
Yjs keeps RWTH Aachen: its LICENSE names the Chair of Computer
Science 5 beside Kevin Jahns.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 files changed,
+369
−71
colophon/colophon.css+17 −2colophon/colophon.go+19 −6colophon/colophon_test.go+96 −0colophon/inventory.go+39 −4colophon/inventory_test.go+40 −0colophon/projects.json+153 −56colophon/templates/colophon.html+5 −3
CI failed — run details
diff --git a/colophon/colophon.css b/colophon/colophon.css| index c9eea82..d6a3138 100644 |
| --- a/colophon/colophon.css |
| +++ b/colophon/colophon.css |
| @@ -33,8 +33,11 @@ |
| font-size: var(--rst-fs-sm); |
| } |
| [estilo-colophon-entry] dl > div { display: flex; gap: var(--rst-sp-2); align-items: baseline; min-inline-size: 0; } |
| -[estilo-colophon-entry] dt { color: var(--rst-text-muted); } |
| -[estilo-colophon-entry] dd { margin: 0; min-inline-size: 0; } |
| +/* The label never shrinks: under overflow-wrap: anywhere a flex item may |
| + be squeezed to one character, and "Version" beside nine versions wrapped |
| + to four lines at 320px. The value takes the rest and wraps instead. */ |
| +[estilo-colophon-entry] dt { color: var(--rst-text-muted); flex: none; } |
| +[estilo-colophon-entry] dd { margin: 0; min-inline-size: 0; flex: 1 1 auto; } |
| [estilo-colophon-links] { display: flex; flex-wrap: wrap; gap: var(--rst-sp-4); font-size: var(--rst-fs-sm); } |
| [estilo-colophon-licence] pre { |
| @@ -46,3 +49,15 @@ |
| background: var(--rst-surface-2); |
| border-radius: var(--rst-radius-sm); |
| } |
| + |
| +/* A table in a colophon page (an app's own, such as Docs' font pairs): |
| + rules between rows, labels at the start, the measure's width at most. */ |
| +[estilo-colophon] table { border-collapse: collapse; margin-block: var(--rst-sp-3); min-inline-size: 0; } |
| +[estilo-colophon] th, [estilo-colophon] td { |
| + text-align: start; |
| + vertical-align: top; |
| + padding: var(--rst-sp-2) var(--rst-sp-4) var(--rst-sp-2) 0; |
| + border-block-end: 1px solid var(--rst-line); |
| +} |
| +[estilo-colophon] thead th { color: var(--rst-text-muted); font-weight: inherit; font-size: var(--rst-fs-sm); } |
| +[estilo-colophon] tbody th { font-weight: 600; } |
diff --git a/colophon/colophon.go b/colophon/colophon.go| index ea3257a..5b1278b 100644 |
| --- a/colophon/colophon.go |
| +++ b/colophon/colophon.go |
| @@ -27,6 +27,8 @@ import ( |
| "regexp" |
| "sort" |
| "strings" |
| + "unicode" |
| + "unicode/utf8" |
| "amadan.net/oficina/estilo.git/credits" |
| ) |
| @@ -98,7 +100,9 @@ type Project struct { |
| Kind Kind `json:"kind"` |
| // Blurb says what the project is, in one or two sentences. |
| Blurb string `json:"blurb"` |
| - // Author is who holds the copyright, as its licence names them. |
| + // Author is who holds the copyright, as its licence file names them, |
| + // not a package manifest's list of maintainers. Where the licence names |
| + // no one (many MIT and Apache texts), it is the project's own authors. |
| Author string `json:"author"` |
| Licence Licence `json:"licence"` |
| Home string `json:"home"` |
| @@ -106,7 +110,10 @@ type Project struct { |
| // Packages are every package of the project an app might ship. |
| Packages []Ref `json:"packages"` |
| // Uses is what each app uses it for, keyed by the app's colophon key |
| - // ("docs", "docs-native"), one sentence each. |
| + // ("docs", "docs-native"), one or two sentences each. "*" is the note |
| + // for every app without its own ("Yrs uses it."), so a transitive |
| + // dependency is written once, not once per app. Only an app's own |
| + // note can be stale. |
| Uses map[string]string `json:"uses"` |
| } |
| @@ -161,9 +168,11 @@ func sentence(s string) bool { |
| return s != "" && sentenceEnd.MatchString(s) && strings.HasSuffix(strings.TrimRight(s, `"”’)`), ".") |
| } |
| +// capitalised reads the first letter, not the first byte: "Łukasz" is |
| +// capitalised, and Validate runs at init. |
| func capitalised(s string) bool { |
| - s = strings.TrimSpace(s) |
| - return s != "" && strings.ToUpper(s[:1]) == s[:1] |
| + r, _ := utf8.DecodeRuneInString(strings.TrimSpace(s)) |
| + return r != utf8.RuneError && !unicode.IsLower(r) |
| } |
| func httpsURL(s string) bool { |
| @@ -390,12 +399,16 @@ func build(projects []Project, app string, shipped []Package) (Colophon, error) |
| sections := map[string][]Entry{} |
| for i, p := range projects { |
| packages, ships := byProject[i] |
| - use := p.Uses[app] |
| + own := p.Uses[app] |
| + use := own |
| + if use == "" { |
| + use = p.Uses["*"] |
| + } |
| switch { |
| case ships && use == "": |
| problems = append(problems, p.ID+" has no usage note for "+app) |
| continue |
| - case !ships && use != "": |
| + case !ships && own != "": |
| problems = append(problems, p.ID+" has a usage note for "+app+" but "+app+" does not ship it") |
| continue |
| case !ships: |
diff --git a/colophon/colophon_test.go b/colophon/colophon_test.go| index 3434136..4f2153f 100644 |
| --- a/colophon/colophon_test.go |
| +++ b/colophon/colophon_test.go |
| @@ -371,3 +371,99 @@ func TestAToolNeedsNoLicenceTextAndSaysWhereItIs(t *testing.T) { |
| t.Error("a tool's licence page says it was published without one") |
| } |
| } |
| + |
| +// A blurb may open with any capital, not only an ASCII one: Validate runs |
| +// at init, so a byte-wise check would stop every consumer starting. |
| +func TestValidateReadsTheFirstLetterNotTheFirstByte(t *testing.T) { |
| + p := testCatalog()[3] |
| + for blurb, ok := range map[string]bool{ |
| + "Łukasz Dziedzic drew it, after his Lato.": true, |
| + "Égalité is a serif.": true, |
| + "łukasz drew it.": false, |
| + } { |
| + p.Blurb = blurb |
| + if err := Validate([]Project{p}); (err == nil) != ok { |
| + t.Errorf("%q: accepted=%v, want %v (%v)", blurb, err == nil, ok, err) |
| + } |
| + } |
| +} |
| + |
| +// One note for every app (Uses["*"]) saves writing "Yrs uses it." once per |
| +// app; an app's own note wins, and a default is never stale. |
| +func TestADefaultUsageNoteServesEveryAppWithoutItsOwn(t *testing.T) { |
| + cat := testCatalog() |
| + cat[0].Uses = map[string]string{"*": "Holds every document.", "docs-native": "Holds the app's documents."} |
| + cat[1].Uses = map[string]string{"*": "Draws the editor."} |
| + cat[5].Uses = map[string]string{"docs": "Tests the core."} |
| + c, err := build(cat, "docs", shippedSet()) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + if y, _ := c.Entry("yjs"); y.Usage != "Holds every document." { |
| + t.Errorf("docs reads %q, want the default", y.Usage) |
| + } |
| + native, err := build(cat, "docs-native", []Package{shippedSet()[0]}) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + if y, _ := native.Entry("yjs"); y.Usage != "Holds the app's documents." { |
| + t.Errorf("docs-native reads %q, want its own note", y.Usage) |
| + } |
| + // prosemirror's default names no app, so not shipping it is not stale. |
| + if _, err := build(cat, "docs-native", []Package{shippedSet()[0]}); err != nil { |
| + t.Errorf("an unshipped project's default note was called stale: %v", err) |
| + } |
| +} |
| + |
| +// The catalog's words appear on US-English pages (Docs' catalog is en-US), |
| +// so they are written in US English. |
| +func TestCatalogIsInUSEnglish(t *testing.T) { |
| + british := regexp.MustCompile(`(?i)\b(licen[cs]e[ds]? published|licence\w*|\w+isation|\w+ised|\w+ises|normalis\w*|synchronis\w*|maths|colour\w*|centre)\b`) |
| + for _, p := range Catalog() { |
| + texts := []string{p.Blurb, p.Licence.Name} |
| + for _, u := range p.Uses { |
| + texts = append(texts, u) |
| + } |
| + for _, s := range texts { |
| + for _, w := range british.FindAllString(s, -1) { |
| + if strings.EqualFold(w, "license published") || strings.HasPrefix(strings.ToLower(w), "license") { |
| + continue |
| + } |
| + t.Errorf("%s: %q is British English", p.ID, w) |
| + } |
| + } |
| + } |
| +} |
| + |
| +// The entries, blurbs, authors and licence texts are English on a page in |
| +// the request's locale; they say so (WCAG 3.1.2). The caller's labels do not. |
| +func TestTheCatalogsEnglishIsMarkedAsEnglish(t *testing.T) { |
| + c, err := build(testCatalog(), "docs", shippedSet()) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + html := page(t, c, English) |
| + if strings.Count(html, `<ul role="list" estilo-colophon-entries lang="en">`) != len(c.Sections) { |
| + t.Error("an entries list is not marked lang=\"en\"") |
| + } |
| + if strings.Contains(html, `<article estilo-colophon lang=`) { |
| + t.Error("the whole page is marked English; the caller's labels are in its locale") |
| + } |
| + pm, _ := c.Entry("prosemirror") |
| + var out bytes.Buffer |
| + if err := parse(t).ExecuteTemplate(&out, "estilo/colophon-licence", LicencePage{Title: "t", Back: "/b", Labels: English, Entry: pm}); err != nil { |
| + t.Fatal(err) |
| + } |
| + if strings.Count(out.String(), `<section estilo-colophon-licence lang="en">`) != len(pm.Packages) { |
| + t.Error("a licence section is not marked lang=\"en\"") |
| + } |
| +} |
| + |
| +// At 320px a label beside a long value must not be squeezed: flex shrinks |
| +// a dt that overflow-wrap lets break anywhere ("Ver/si/on"). Docs' |
| +// browser check measures it; this holds the rule in the stylesheet. |
| +func TestADefinitionLabelNeverShrinks(t *testing.T) { |
| + if !regexp.MustCompile(`\[estilo-colophon-entry\] dt \{[^}]*flex: none`).MatchString(string(CSS())) { |
| + t.Error("colophon.css lets a dt shrink") |
| + } |
| +} |
diff --git a/colophon/inventory.go b/colophon/inventory.go| index affbe51..7a74fdd 100644 |
| --- a/colophon/inventory.go |
| +++ b/colophon/inventory.go |
| @@ -77,6 +77,9 @@ type cargoMetadata struct { |
| Packages []struct { |
| ID, Name, Version string |
| ManifestPath string `json:"manifest_path"` |
| + Targets []struct { |
| + Kind []string |
| + } |
| } |
| Resolve *struct { |
| Root string |
| @@ -152,11 +155,13 @@ func CollectCargoTools(metadata io.Reader) ([]Package, error) { |
| return out, nil |
| } |
| -// CollectCargo is the crates one build links, from `cargo metadata --locked |
| +// CollectCargo is the crates one build uses, from `cargo metadata --locked |
| // --format-version 1 --filter-platform <target>` run on its manifest: |
| -// everything the root reaches through normal and build dependencies (a |
| -// build dependency's output is compiled in), never through a |
| -// dev-dependency, and not the root itself. |
| +// everything the root reaches through normal and build dependencies, never |
| +// through a dev-dependency, and not the root itself. A crate the build only |
| +// runs while compiling (a proc-macro, a build dependency, or anything |
| +// reached only through one) is not linked into what ships, so it is marked |
| +// Tool; one also reached through ordinary dependencies ships. |
| func CollectCargo(metadata io.Reader) ([]Package, error) { |
| m, err := readCargoMetadata(metadata) |
| if err != nil { |
| @@ -188,6 +193,35 @@ func CollectCargo(metadata io.Reader) ([]Package, error) { |
| } |
| } |
| } |
| + // linked: reached from the root through normal dependencies only, |
| + // without passing through a proc-macro (which runs in the compiler and |
| + // is not linked, nor is anything only it uses). |
| + macro := map[string]bool{} |
| + for _, p := range m.Packages { |
| + for _, t := range p.Targets { |
| + for _, k := range t.Kind { |
| + macro[p.ID] = macro[p.ID] || k == "proc-macro" |
| + } |
| + } |
| + } |
| + linked := map[string]bool{} |
| + pending = []string{m.Resolve.Root} |
| + for len(pending) > 0 { |
| + id := pending[len(pending)-1] |
| + pending = pending[:len(pending)-1] |
| + if linked[id] || macro[id] { |
| + continue |
| + } |
| + linked[id] = true |
| + for _, d := range m.Resolve.Nodes[nodes[id]].Deps { |
| + for _, k := range d.DepKinds { |
| + if k.Kind == nil { |
| + pending = append(pending, d.Pkg) |
| + break |
| + } |
| + } |
| + } |
| + } |
| var out []Package |
| for id := range seen { |
| if id == m.Resolve.Root { |
| @@ -197,6 +231,7 @@ func CollectCargo(metadata io.Reader) ([]Package, error) { |
| if err != nil { |
| return nil, err |
| } |
| + p.Tool = !linked[id] |
| out = append(out, p) |
| } |
| sort.Slice(out, func(i, j int) bool { |
diff --git a/colophon/inventory_test.go b/colophon/inventory_test.go| index 8b2eda4..4c5acb9 100644 |
| --- a/colophon/inventory_test.go |
| +++ b/colophon/inventory_test.go |
| @@ -152,3 +152,43 @@ func TestCollectCargoToolsIsTheDirectDevDependencies(t *testing.T) { |
| t.Fatalf("tools = %+v", got) |
| } |
| } |
| + |
| +// Proc-macros and build dependencies run while the crate is compiled and |
| +// are not linked into what ships, nor is anything reached only through |
| +// them; CollectCargo marks them tools. A crate linked as well as used by a |
| +// macro ships. |
| +func TestCollectCargoMarksMacroAndBuildOnlyCratesAsTools(t *testing.T) { |
| + root := t.TempDir() |
| + crates := []string{"yrs", "serde", "serde_derive", "syn", "unicode-ident", "autocfg", "itoa"} |
| + var pkgs []string |
| + for _, c := range crates { |
| + write(t, filepath.Join(root, c, "LICENSE"), c+" licence") |
| + kind := `"lib"` |
| + if c == "serde_derive" { |
| + kind = `"proc-macro"` |
| + } |
| + pkgs = append(pkgs, `{"id":"`+c+`","name":"`+c+`","version":"1.0.0","manifest_path":"`+filepath.Join(root, c, "Cargo.toml")+`","targets":[{"kind":[`+kind+`]}]}`) |
| + } |
| + pkgs = append(pkgs, `{"id":"app","name":"app","version":"0.1.0","manifest_path":"`+filepath.Join(root, "app", "Cargo.toml")+`","targets":[{"kind":["cdylib"]}]}`) |
| + meta := `{"packages":[` + strings.Join(pkgs, ",") + `],"resolve":{"root":"app","nodes":[ |
| + {"id":"app","deps":[{"pkg":"yrs","dep_kinds":[{"kind":null}]},{"pkg":"autocfg","dep_kinds":[{"kind":"build"}]}]}, |
| + {"id":"yrs","deps":[{"pkg":"serde","dep_kinds":[{"kind":null}]},{"pkg":"unicode-ident","dep_kinds":[{"kind":null}]}]}, |
| + {"id":"serde","deps":[{"pkg":"serde_derive","dep_kinds":[{"kind":null}]},{"pkg":"itoa","dep_kinds":[{"kind":null}]}]}, |
| + {"id":"serde_derive","deps":[{"pkg":"syn","dep_kinds":[{"kind":null}]},{"pkg":"unicode-ident","dep_kinds":[{"kind":null}]}]}, |
| + {"id":"syn","deps":[{"pkg":"unicode-ident","dep_kinds":[{"kind":null}]}]}, |
| + {"id":"unicode-ident","deps":[]},{"id":"autocfg","deps":[]},{"id":"itoa","deps":[]}]}}` |
| + got, err := CollectCargo(strings.NewReader(meta)) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + tool := map[string]bool{} |
| + for _, p := range got { |
| + tool[p.Name] = p.Tool |
| + } |
| + want := map[string]bool{"yrs": false, "serde": false, "itoa": false, "unicode-ident": false, "serde_derive": true, "syn": true, "autocfg": true} |
| + for name, w := range want { |
| + if v, ok := tool[name]; !ok || v != w { |
| + t.Errorf("%s: tool=%v (present %v), want %v", name, v, ok, w) |
| + } |
| + } |
| +} |
diff --git a/colophon/projects.json b/colophon/projects.json| index a6b71c2..e4996d0 100644 |
| --- a/colophon/projects.json |
| +++ b/colophon/projects.json |
| @@ -29,7 +29,7 @@ |
| "name": "arc-swap", |
| "kind": "library", |
| "blurb": "A shared pointer that can be swapped atomically, for data read often and changed rarely.", |
| - "author": "Michal Vaner", |
| + "author": "The arc-swap developers", |
| "licence": { |
| "spdx": "MIT OR Apache-2.0", |
| "name": "MIT License or Apache License 2.0" |
| @@ -52,7 +52,7 @@ |
| "name": "arrayvec", |
| "kind": "library", |
| "blurb": "A vector with a fixed capacity, stored inline.", |
| - "author": "bluss", |
| + "author": "Ulrik Sverdrup (bluss)", |
| "licence": { |
| "spdx": "MIT OR Apache-2.0", |
| "name": "MIT License or Apache License 2.0" |
| @@ -111,8 +111,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "Yrs uses it while it is built.", |
| - "docs-native": "Yrs uses it while it is built." |
| + "*": "Yrs uses it while it is built." |
| } |
| }, |
| { |
| @@ -181,6 +180,28 @@ |
| "docs": "fontTools compresses the browser's font files with it." |
| } |
| }, |
| + { |
| + "id": "bubblewrap", |
| + "name": "bubblewrap", |
| + "kind": "tool", |
| + "blurb": "Runs a program in a sandbox of its own, without root.", |
| + "author": "The bubblewrap contributors", |
| + "licence": { |
| + "spdx": "LGPL-2.0-or-later", |
| + "name": "GNU Lesser General Public License 2.0 or later" |
| + }, |
| + "home": "https://github.com/containers/bubblewrap", |
| + "source": "https://github.com/containers/bubblewrap", |
| + "packages": [ |
| + { |
| + "ecosystem": "toolchain", |
| + "name": "bwrap" |
| + } |
| + ], |
| + "uses": { |
| + "docs": "On Linux the core's WebAssembly is built inside it instead of Docker, for the same identical bytes." |
| + } |
| + }, |
| { |
| "id": "caladea", |
| "name": "Caladea", |
| @@ -340,8 +361,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "DashMap uses it.", |
| - "docs-native": "DashMap uses it." |
| + "*": "DashMap uses it." |
| } |
| }, |
| { |
| @@ -349,7 +369,7 @@ |
| "name": "DashMap", |
| "kind": "library", |
| "blurb": "A concurrent hash map for Rust.", |
| - "author": "Joel Wejdenstål", |
| + "author": "Acrimon", |
| "licence": { |
| "spdx": "MIT", |
| "name": "MIT License" |
| @@ -367,12 +387,34 @@ |
| "docs-native": "The apps' Yrs uses it." |
| } |
| }, |
| + { |
| + "id": "docker", |
| + "name": "Docker", |
| + "kind": "tool", |
| + "blurb": "Runs software in containers, from images pinned by digest.", |
| + "author": "Docker, Inc.", |
| + "licence": { |
| + "spdx": "Apache-2.0", |
| + "name": "Apache License 2.0" |
| + }, |
| + "home": "https://www.docker.com/", |
| + "source": "https://github.com/moby/moby", |
| + "packages": [ |
| + { |
| + "ecosystem": "toolchain", |
| + "name": "docker" |
| + } |
| + ], |
| + "uses": { |
| + "docs": "The core's WebAssembly is built in a pinned Rust image, so every machine builds the same bytes." |
| + } |
| + }, |
| { |
| "id": "downcast-rs", |
| "name": "downcast-rs", |
| "kind": "library", |
| "blurb": "Lets a trait object be turned back into the concrete type it holds.", |
| - "author": "Ashish Myles and Runji Wang", |
| + "author": "Ashish Myles and contributors", |
| "licence": { |
| "spdx": "MIT OR Apache-2.0", |
| "name": "MIT License or Apache License 2.0" |
| @@ -416,7 +458,7 @@ |
| "id": "esbuild", |
| "name": "esbuild", |
| "kind": "tool", |
| - "blurb": "A very fast JavaScript bundler and minifier, by Evan Wallace.", |
| + "blurb": "A JavaScript bundler and minifier, written in Go by Evan Wallace.", |
| "author": "Evan Wallace", |
| "licence": { |
| "spdx": "MIT", |
| @@ -453,8 +495,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "async-lock uses it.", |
| - "docs-native": "async-lock uses it." |
| + "*": "async-lock uses it." |
| } |
| }, |
| { |
| @@ -476,8 +517,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "async-lock uses it.", |
| - "docs-native": "async-lock uses it." |
| + "*": "async-lock uses it." |
| } |
| }, |
| { |
| @@ -530,7 +570,7 @@ |
| "name": "getrandom", |
| "kind": "library", |
| "blurb": "Reads random bytes from whatever the platform provides.", |
| - "author": "The Rand Project Developers", |
| + "author": "The rust-random Project Developers and The Rust Project Developers", |
| "licence": { |
| "spdx": "MIT OR Apache-2.0", |
| "name": "MIT License or Apache License 2.0" |
| @@ -544,8 +584,8 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "The core asks the server for randomness through it.", |
| - "docs-native": "The apps' core asks the app for randomness through it." |
| + "docs": "fastrand would ask the system for randomness through it; the core's own backend refuses every request, because the server hands it identifiers and client ids explicitly.", |
| + "docs-native": "fastrand would ask the system for randomness through it; the core's own backend refuses every request, because the app hands it identifiers and client ids explicitly." |
| } |
| }, |
| { |
| @@ -815,8 +855,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "serde_json uses it.", |
| - "docs-native": "serde_json uses it." |
| + "*": "serde_json uses it." |
| } |
| }, |
| { |
| @@ -850,7 +889,7 @@ |
| "author": "Keymail", |
| "licence": { |
| "spdx": "NOASSERTION", |
| - "name": "No licence published" |
| + "name": "No license published" |
| }, |
| "home": "https://keymail.dev/", |
| "source": "https://github.com/keymaildev/signin", |
| @@ -960,7 +999,7 @@ |
| "name": "libm", |
| "kind": "library", |
| "blurb": "The C math library in pure Rust.", |
| - "author": "Alex Crichton, Amanieu d'Antras, Jorge Aparicio and Trevor Gross", |
| + "author": "Jorge Aparicio; Sun Microsystems, Bruce D. Evans, Steven G. Kargl, David Schultz, Rich Felker and others, Stephen L. Moshier and Arm Limited", |
| "licence": { |
| "spdx": "MIT", |
| "name": "MIT License" |
| @@ -1019,16 +1058,16 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "Oficina's app icons are drawn from it.", |
| - "docs-native": "Oficina's app icons are drawn from it." |
| + "docs": "The chrome's interface icons are Lucide's. The app icons are Oficina's own drawings.", |
| + "docs-native": "The apps carry Lucide's license; their icons are Oficina's own drawings and the system's symbols." |
| } |
| }, |
| { |
| "id": "memchr", |
| "name": "memchr", |
| "kind": "library", |
| - "blurb": "Finds bytes in a string as fast as the processor allows.", |
| - "author": "Andrew Gallant and bluss", |
| + "blurb": "Finds bytes in a string, using the processor's vector instructions where it can.", |
| + "author": "Andrew Gallant", |
| "licence": { |
| "spdx": "Unlicense OR MIT", |
| "name": "The Unlicense or MIT License" |
| @@ -1042,8 +1081,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "serde_json uses it.", |
| - "docs-native": "serde_json uses it." |
| + "*": "serde_json uses it." |
| } |
| }, |
| { |
| @@ -1286,15 +1324,14 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "DashMap and aHash use it.", |
| - "docs-native": "DashMap and aHash use it." |
| + "*": "DashMap and aHash use it." |
| } |
| }, |
| { |
| "id": "onest", |
| "name": "Onest", |
| "kind": "typeface", |
| - "blurb": "A sans serif by Dmitri Voloshin of TypeType, with the warmth of handwriting in its curves.", |
| + "blurb": "A sans serif by Dmitri Voloshin of TypeType, released through Google Fonts.", |
| "author": "The Onest Project Authors", |
| "licence": { |
| "spdx": "OFL-1.1", |
| @@ -1339,7 +1376,7 @@ |
| "name": "parking_lot", |
| "kind": "library", |
| "blurb": "Smaller, faster locks for Rust, and the parts to build more of them.", |
| - "author": "Amanieu d'Antras", |
| + "author": "The Rust Project Developers", |
| "licence": { |
| "spdx": "MIT OR Apache-2.0", |
| "name": "MIT License or Apache License 2.0" |
| @@ -1357,8 +1394,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "DashMap uses it.", |
| - "docs-native": "DashMap uses it." |
| + "*": "DashMap uses it." |
| } |
| }, |
| { |
| @@ -1402,8 +1438,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "async-lock uses it.", |
| - "docs-native": "async-lock uses it." |
| + "*": "async-lock uses it." |
| } |
| }, |
| { |
| @@ -1567,16 +1602,35 @@ |
| { |
| "ecosystem": "npm", |
| "name": "prosemirror-view" |
| - }, |
| - { |
| - "ecosystem": "npm", |
| - "name": "prosemirror-history" |
| } |
| ], |
| "uses": { |
| "docs": "The editor you type in is ProseMirror." |
| } |
| }, |
| + { |
| + "id": "python", |
| + "name": "Python", |
| + "kind": "tool", |
| + "blurb": "The Python programming language and its standard library.", |
| + "author": "Python Software Foundation", |
| + "licence": { |
| + "spdx": "PSF-2.0", |
| + "name": "Python Software Foundation License 2.0" |
| + }, |
| + "home": "https://www.python.org/", |
| + "source": "https://github.com/python/cpython", |
| + "packages": [ |
| + { |
| + "ecosystem": "toolchain", |
| + "name": "python" |
| + } |
| + ], |
| + "uses": { |
| + "docs": "The font vendoring, the shaping goldens and the native checks are Python scripts.", |
| + "docs-native": "The Mac bundling and the font check are Python scripts." |
| + } |
| + }, |
| { |
| "id": "quote", |
| "name": "quote", |
| @@ -1634,7 +1688,7 @@ |
| "id": "rastrillo-native", |
| "name": "Rastrillo Native", |
| "kind": "library", |
| - "blurb": "The native half of the Rastrillo framework: sign-in, accounts and shared parts for Oficina's Mac and iPhone apps.", |
| + "blurb": "The native half of the Rastrillo framework: sign-in, accounts and shared parts for Oficina's Mac and iPhone apps, and the server side they sign in through.", |
| "author": "The Rastrillo authors", |
| "licence": { |
| "spdx": "MPL-2.0", |
| @@ -1646,9 +1700,14 @@ |
| { |
| "ecosystem": "swift", |
| "name": "native" |
| + }, |
| + { |
| + "ecosystem": "go", |
| + "name": "amadan.net/rastrillo/native/server" |
| } |
| ], |
| "uses": { |
| + "docs": "The server signs the Mac and iPhone apps in through its server half, which gives each app its own token.", |
| "docs-native": "The apps sign in, keep their accounts and check for updates with it." |
| } |
| }, |
| @@ -1694,8 +1753,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "arc-swap uses it while it is built.", |
| - "docs-native": "arc-swap uses it while it is built." |
| + "*": "arc-swap uses it while it is built." |
| } |
| }, |
| { |
| @@ -1703,7 +1761,7 @@ |
| "name": "scopeguard", |
| "kind": "library", |
| "blurb": "Runs clean-up code when a scope ends, however it ends.", |
| - "author": "bluss", |
| + "author": "Ulrik Sverdrup (bluss) and the scopeguard developers", |
| "licence": { |
| "spdx": "MIT OR Apache-2.0", |
| "name": "MIT License or Apache License 2.0" |
| @@ -1717,8 +1775,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "parking_lot uses it.", |
| - "docs-native": "parking_lot uses it." |
| + "*": "parking_lot uses it." |
| } |
| }, |
| { |
| @@ -1871,7 +1928,7 @@ |
| "id": "sparkle", |
| "name": "Sparkle", |
| "kind": "library", |
| - "blurb": "The update framework most Mac apps outside the App Store use: it checks a signed feed and installs new versions in place.", |
| + "blurb": "A framework that updates Mac apps distributed outside the App Store: it checks a signed feed and installs new versions in place.", |
| "author": "Andy Matuschak, Kornel Lesiński, Mayur Pawashe and others", |
| "licence": { |
| "spdx": "MIT", |
| @@ -1894,7 +1951,7 @@ |
| "name": "spin", |
| "kind": "library", |
| "blurb": "Locks that wait by spinning, for code without an operating system's help.", |
| - "author": "Mathijs van de Nes, John Ericson and Joshua Barretto", |
| + "author": "Mathijs van de Nes", |
| "licence": { |
| "spdx": "MIT", |
| "name": "MIT License" |
| @@ -1933,6 +1990,28 @@ |
| "docs-native": "wasmi uses it." |
| } |
| }, |
| + { |
| + "id": "swift-lang", |
| + "name": "Swift", |
| + "kind": "tool", |
| + "blurb": "Apple's open-source programming language and compiler.", |
| + "author": "Apple Inc. and the Swift project authors", |
| + "licence": { |
| + "spdx": "Apache-2.0 WITH Swift-exception", |
| + "name": "Apache License 2.0 with Runtime Library Exception" |
| + }, |
| + "home": "https://www.swift.org/", |
| + "source": "https://github.com/swiftlang/swift", |
| + "packages": [ |
| + { |
| + "ecosystem": "toolchain", |
| + "name": "swift" |
| + } |
| + ], |
| + "uses": { |
| + "docs-native": "The apps are written in Swift and built with its package manager." |
| + } |
| + }, |
| { |
| "id": "syn", |
| "name": "syn", |
| @@ -1979,8 +2058,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "Yrs's errors are written with it.", |
| - "docs-native": "Yrs's errors are written with it." |
| + "*": "Yrs's errors are written with it." |
| } |
| }, |
| { |
| @@ -1991,7 +2069,7 @@ |
| "author": "The uharfbuzz contributors; HarfBuzz by Behdad Esfahbod and others", |
| "licence": { |
| "spdx": "Apache-2.0 AND MIT-Modern-Variant", |
| - "name": "Apache License 2.0, with HarfBuzz under its own MIT-style licence" |
| + "name": "Apache License 2.0, with HarfBuzz under its own MIT-style license" |
| }, |
| "home": "https://harfbuzz.github.io/", |
| "source": "https://github.com/harfbuzz/uharfbuzz", |
| @@ -2047,8 +2125,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "aHash uses it while it is built.", |
| - "docs-native": "aHash uses it while it is built." |
| + "*": "aHash uses it while it is built." |
| } |
| }, |
| { |
| @@ -2236,6 +2313,28 @@ |
| "docs": "Docs normalizes titles with it, so a search finds an accented word however it was typed." |
| } |
| }, |
| + { |
| + "id": "xcodegen", |
| + "name": "XcodeGen", |
| + "kind": "tool", |
| + "blurb": "Generates Xcode projects from a YAML description.", |
| + "author": "Yonas Kolb", |
| + "licence": { |
| + "spdx": "MIT", |
| + "name": "MIT License" |
| + }, |
| + "home": "https://github.com/yonaskolb/XcodeGen", |
| + "source": "https://github.com/yonaskolb/XcodeGen", |
| + "packages": [ |
| + { |
| + "ecosystem": "toolchain", |
| + "name": "xcodegen" |
| + } |
| + ], |
| + "uses": { |
| + "docs-native": "The iPhone app's Xcode project is generated from ios/project.yml with it." |
| + } |
| + }, |
| { |
| "id": "y-prosemirror", |
| "name": "y-prosemirror", |
| @@ -2285,7 +2384,7 @@ |
| "name": "Yjs", |
| "kind": "library", |
| "blurb": "A CRDT by Kevin Jahns: shared data that several people can change at once and that always merges to the same result, with no server deciding the order.", |
| - "author": "Kevin Jahns and RWTH Aachen University", |
| + "author": "Kevin Jahns, and the Chair of Computer Science 5 (Databases and Information Systems), RWTH Aachen University", |
| "licence": { |
| "spdx": "MIT", |
| "name": "MIT License" |
| @@ -2344,8 +2443,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "aHash uses it.", |
| - "docs-native": "aHash uses it." |
| + "*": "aHash uses it." |
| } |
| }, |
| { |
| @@ -2390,8 +2488,7 @@ |
| } |
| ], |
| "uses": { |
| - "docs": "serde_json uses it.", |
| - "docs-native": "serde_json uses it." |
| + "*": "serde_json uses it." |
| } |
| } |
| ] |
diff --git a/colophon/templates/colophon.html b/colophon/templates/colophon.html| index 080d857..8c008c2 100644 |
| --- a/colophon/templates/colophon.html |
| +++ b/colophon/templates/colophon.html |
| @@ -1,7 +1,9 @@ |
| {{/* estilo/colophon — an app's Colophon (colophon.Page). No script: the |
| contents are in-page links and each licence is its own page. Every |
| word not in the catalog is the caller's (Labels), in its locale; the |
| - catalog's own words are English, like the licences they sit beside. |
| + catalog's own words are English, like the licences they sit beside, |
| + and are marked lang="en" (WCAG 3.1.2): the entries and the licence |
| + texts, never the caller's labels around them. |
| Names are in <bdi> so a right-to-left page keeps them whole. */}} |
| {{define "estilo/colophon"}} |
| <article estilo-colophon> |
| @@ -15,7 +17,7 @@ |
| {{range .Colophon.Sections}} |
| <section aria-labelledby="colophon-{{.ID}}"> |
| <h2 id="colophon-{{.ID}}">{{index $.Labels.Sections .ID}}</h2> |
| - <ul role="list" estilo-colophon-entries> |
| + <ul role="list" estilo-colophon-entries lang="en"> |
| {{range .Entries}} |
| <li id="colophon-{{.ID}}" estilo-colophon-entry> |
| <h3><bdi>{{.Name}}</bdi></h3> |
| @@ -43,7 +45,7 @@ |
| <h1>{{.Title}}</h1> |
| <p><a href="{{.Back}}">{{.Labels.Back}}</a></p> |
| {{range .Entry.Packages}} |
| - <section estilo-colophon-licence> |
| + <section estilo-colophon-licence lang="en"> |
| <h2><bdi>{{.Name}}</bdi>{{with .Version}} {{.}}{{end}}</h2> |
| {{range .Notices}}<h3><bdi>{{.Name}}</bdi></h3> |
| <pre> |