The source of docs.statscraft.org: the documentation of the newest Statscraft release.
The pages are not written here. build.sh assembles them from one release:
- Copied from the main repository at the release tag:
docs/*.md(the guides),README.mdup to its list of documents (the start page) andCHANGELOG.md. - Generated from the release's Linux binary: one page per command from
statscraft helpandstatscraft help COMMAND, and the command line help fromstatscraft --helpand--helpof every subcommand. - Added on every page: a line naming the release the pages describe.
This repository holds only the build script, the theme (theme/statscraft.css, the fonts and the icon in assets/) and the workflows.
You need gh (signed in), curl and the mdBook binary. mdBook is a build tool under the Mozilla Public License 2.0; it is downloaded for the build and not part of the site's source.
MDBOOK=/path/to/mdbook ./build.sh # the newest release
MDBOOK=/path/to/mdbook ./build.sh v0.1.1 # a given release
The site is written to build/html. The build fails when a command's help cannot be read or when a page holds a vendor name.
The Docs workflow builds the site and publishes it to GitHub Pages. It runs every day and rebuilds only when the newest release differs from the one in the live site's version.txt. Run it by hand (Actions, Docs, Run workflow, or gh workflow run pages.yml) to rebuild in any case.
The fonts in assets/fonts are Schibsted Grotesk and JetBrains Mono under the SIL Open Font License; the license texts are next to them. The documentation text is from the main repository, MIT.