Skip to content

About

Flight Manual: a documentation site from a folder of Markdown. Fast builds, search with no server, link and accessibility checks, light and dark themes. A ztcl project.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Flight Manual

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/.

What it makes

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, and llms-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 (-strict makes 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.

Use

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 version

A 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.

Install

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.

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

Project

Flight Manual is under the MIT license (LICENSE).

About

Flight Manual: a documentation site from a folder of Markdown. Fast builds, search with no server, link and accessibility checks, light and dark themes. A ztcl project.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages