Documentation
¶
Overview ¶
Command sitegen writes the public site: the landing page, and beside it the privacy policy, the terms and the licences.
The site is generated rather than written by hand so that what it claims about Flockdeck comes from the repository it is built in: the agents it names and the install line sit next to the code that makes them true. The help itself stays in the application, behind F1, where it is rendered with the real key bindings substituted into it.
The markup and the stylesheet live beside this file as real .html and .css rather than as string constants in Go. They are long enough, and enough of what they do is visual, that editing them wants an editor that knows what they are; the few things that come from the repository are template actions. Every page draws its head, header and footer from layout.html.tmpl, so the fonts, the stylesheet and the footer's links are written once.
The privacy policy and the terms are Markdown, rendered here, because they are prose that is edited as prose, a word at a time, by somebody reading it as a whole. The licences page is built from the notices files themselves, so that it says what the releases carry and cannot say anything else.
The output is plain files with no build step, because the site is served as a container image built from a repository of its own:
go run ./cmd/sitegen -out ../flockdeck-site -release v1.2.3 -checksums checksums.txt
-release is the release the install scripts install by default, and -checksums that release's checksums.txt, from https://dl.flockdeck.ai/v1.2.3/checksums.txt, with its checksums.txt.sig beside it: the signature is checked against the release key built into this program before anything in the file is trusted. The SHA-256 of each archive is written into the scripts, which check the archive they download against it; see bake.