Skip to content

jdc-pub/acdx

Repository files navigation

⚡️ acdx

A command runner built in acdc and AsciiDoc.

CI CD

Installation

You can install acdx using cargo.

cargo install --git https://github.com/jdc-pub/acdx

Vision

Files next to source code, e.g. README files, are commonly used to document shell commands that are relevant to contributors and users. More often than not, these files quickly become out of date. Command runners, e.g. just, help to solve this problem by providing indirection. No matter how the build command in your justfile changes, the documented just build command in your project’s README will always work. This project takes an alternative approach: literate programming.

Rather than providing indirection, acdx provides a way to run blocks of shell code that are defined in AsciiDoc files. Your rendered documentation file can look like it would without any external command running. In plain text, AsciiDoc annotations (roles) can be used to specify metadata that’s relevant to command runners: the command’s name, any dependencies it has, whether it accepts commandline arguments, etc. Your documentation will never be out of date because your documentation is now executable.

Example

Tip
Use the acdx CLI to run the build and test instructions below!

Build

We use the cargo CLI.

cargo build

Tests

All tests can be run using cargo-nextest.

cargo nextest run

Crates

Crate Description

acdx

Main library crate.

About

A command runner for AsciiDoc documents.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages