Flight Manual makes a docs site from one folder of Markdown files. It is a program of ztcl, and it reads Markdown with ztcl::markdown. The docs: https://beetlebug.org/flight-manual/, built by Flight Manual from docs/.
Version 0.1.0 makes a static site:
- a page for each Markdown file, with a menu in groups, a table of contents, and the links to the previous and the next page;
- the highlight of code in Tcl, the shell, Zig, and JSON, the admonitions of GitHub, and tables;
- a light and a dark theme with no script, and a search that needs no server;
sitemap.xml,llms.txt, andllms-full.txt;- an error for each dead link and each missing anchor, and a warning for each picture with no alternative text, each heading that skips a level, and each pair of colors below the contrast of WCAG 2.2 AA (
-strictmakes them errors).
A site has one style: the built-in style modern or beetlebug, or a folder of its own with its templates and style sheets. A site can add plugins: Tcl files that run in a sandbox and change the pages. Flight Manual builds the docs site of ztcl with a plugin (docs/explanation/ztcl-site.md).
The design has more for later versions: a check of the built pages in a browser, more built-in styles, and a tagged PDF book of the site. The design is docs/dev/markdown.md of ztcl.
A small site has a site file, site.fm, and a folder docs/ of Markdown files:
format 1
title Basic
url https://example.com/basic/
flight-manual build _site # a page for each .md file of docs/, in _site/
flight-manual build -strict _site
flight-manual versionA first site has the steps. Examples has six complete sites: a site with groups of pages, a README site, a command reference, an API reference from a data file, a plugin, and a style of its own.
Download the program for Linux on x86_64 from the releases: one file with the Tcl runtime in it. Install has the steps and the build from source.
Flight Manual needs a ztcl with the module ztcl::markdown on the PATH. No release of ztcl has the module yet, so build ztcl from its main branch at the commit of .github/actions/setup-ztcl/action.yml.
ztcl test # the tests of tests/
ztcl build # build/flight-manual: one file with the runtime
./build/flight-manual version
tests/examples.sh # build each site of examples/ and compare it with tests/expected/
build/flight-manual build -strict _site # the docs site of this repository- CHANGELOG.md: the changes of each version.
- CONTRIBUTING.md: how a change starts.
- SECURITY.md: how to report a security problem.
- PROCESS.md: the work model.
- AGENTS.md: the rules for an AI agent of the project.
- WRITING.md: the rules of the text.
Flight Manual is under the MIT license (LICENSE).