Download this file
| 1 | // Command docs-colophon writes Docs' Colophons from what Docs ships |
| 2 | // (internal/shipped): the server's packages to internal/docs/colophon.json, |
| 3 | // which the server builds its Help → Colophon from with estilo's catalog, |
| 4 | // and the Apple apps' Colophon, already built, to DocsKit's |
| 5 | // Resources/Colophon.json. Run it from the repository root after any |
| 6 | // dependency, bundle, font or catalog change: |
| 7 | // |
| 8 | // go run ./cmd/docs-colophon |
| 9 | // |
| 10 | // The tests in internal/shipped fail until it has been run. |
| 11 | package main |
| 12 | |
| 13 | import ( |
| 14 | "fmt" |
| 15 | "os" |
| 16 | |
| 17 | "github.com/carlosframework/docs/internal/shipped" |
| 18 | ) |
| 19 | |
| 20 | func main() { |
| 21 | if err := shipped.Write("."); err != nil { |
| 22 | fmt.Fprintln(os.Stderr, err) |
| 23 | os.Exit(1) |
| 24 | } |
| 25 | } |
| 26 | |