Artifact a41428f83ace36c2dd76b02635e47f14b118c4c417863d785c0de53e543119b9:
- File
cli/json.go
— part of check-in
[41dfd5c149]
at
2026-10-23 21:12:44
on branch main
— docs: landing page from the approved design, docs in its typography
The home page renders its hero figure, conformance table, version and footer from the generated data and site params. Docs pages keep Hextra with Fraunces, Inter and JetBrains Mono and rust as the accent in both themes. Add the get-started pages (install, CLI quickstart, embed in Go, first sync), the conformance reference rendered from data, and point the nav, README and old links at the new layout. (user: [email protected], size: 410) [annotate] [blame] [check-ins using] [more...]
package cli import ( "encoding/json" "os" ) // writeJSON prints v to stdout as one line of JSON. The shapes it prints are // the machine interface of snapshot, log and diff, documented in // docs/site/content/docs/guides/cli-embedding.md; a field is never renamed or // removed, only added. func writeJSON(v any) error { enc := json.NewEncoder(os.Stdout) enc.SetEscapeHTML(false) return enc.Encode(v) }