termbook
is a command-line tool to build mdbook
's while executing
bash
codeblocks and collecting their output to become part of the mdbook
.
This allows to write testable documentation for command-line interfaces.
It came to life for the documentation needs of share-secrets-safely
termbook
and termbook-cli
- minimal viable productTermbook will be tested on a high-level comprised mostly of journey tests. The CLI will support
build
ing an mdbook
mdbook build
, but with a preprocessor to execute bash scripts
and collect their output.termbook interactive
and asciinema
Pretty-print (chapters of) an mdbook
to the terminal, similar to mdcat
,
with customizable settings for the speed of printing, and how bash
scripts should be
'typed'. The goal is to make recording demonstrations as pretty and informative as the
mdbook itself, and make recording that using asciinema easy.
That should make recordings reproducible.
version
in all Cargo.toml
files and git commit
cargo publish
for the library and the CLIgit tag -s <version>
git push --tags origin master