sitegen

command
v0.3.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 keys built into this program, the primary or the standby, 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL