The Hangar Floor docs site
Flight Manual builds the docs site of Hangar Floor: the pages that tools/build-site.tcl of Hangar Floor lists, the page of the tools, and the demo of the status page. The files are in sites/hangar-floor/:
| File | What it has |
|---|---|
site.fm |
The site file: the pages and the groups of the menu, from the list pages of build-site.tcl, the assets, html keep, and the plugin. |
style/page.html, style/head.html |
The page template of the Hangar Floor site. The style sheet is tools/site.css of Hangar Floor. |
style/fm.css |
Gives the menu of Flight Manual the look of the old menu: each group shows its links, and the name of a group looks like the old <h2>. |
hf.tcl |
The plugin: the page of the tools from the header of each tool, and a link to the folder of the tools goes to that page. |
Build it
build/flight-manual build -site sites/hangar-floor/site.fm -root HANGAR_FLOOR OUT
HANGAR_FLOOR is a checkout of Hangar Floor. The site needs no build of Hangar Floor.
The compare
The result on 2026-12-02, with Hangar Floor at b728f97, on Linux x86_64. The old site comes from ztcl --allow file,channels --tclsh tools/build-site.tcl OLD. tools/compare-sites.tcl OLD NEW -url https://beetlebug.org/hangar-floor/ gives:
| Check | Result |
|---|---|
| Pages | 22 in each site, 22 in both |
| Heading differences | 44, on 5 pages: the anchors (see below) |
| Links to the same file in another form | 46: index.html is ./, and a full URL of the site is a relative link |
| The skip link | 21: one on each page of Flight Manual |
| Link differences not explained | 2: the one link to a changed anchor |
| Dead links | 0 |
The page docs/guide-update.md of Hangar Floor links to data-shapes.md#tick-json. The anchor of the heading tick.json is tickjson on GitHub and in Flight Manual, so the link is dead on GitHub too, and Flight Manual stops with an error. The compare uses a copy of the checkout with this one link changed to #tickjson.
The compare of the pictures: 10 pages (the home page, install, a first team, the gate, the tools, the data format, the status page, the changes, how it works, and limits), each in the light, the dark, and the phone view of tests/browser.mjs, in Chromium. compare -metric AE -fuzz 2% of ImageMagick counts the pixels that differ:
| Pages | Pixels that differ |
|---|---|
| 9 pages, light and dark | 0 |
| 5 pages, phone | 13 to 140: the length of the scroll bar |
| The home page | The frame of the live demo of the status page, which shows the time |
What differs
- The anchor of a heading follows the rule of GitHub.
tools/build-site.tclwrites a-for each character that is not a letter or a digit:## v0.3.0has the anchorv0-3-0in the old site andv030in Flight Manual. A link from another site to an old anchor goes to the top of the page. - Each page has a skip link to the main part, and a
sitemap.xml. - The demo has the file
demo/README.md, because the asset is the whole folder. The old build removes it. - The old site has the style sheet in each page. Flight Manual links to
assets/site.css.
Next: The ztk docs site.