rliterate
is a implementation in Rust of zyedidia's literate
programming tool. It aims to be mostly backwards compatible with literate
, prioritising the most useful features, while adding some extensions.
That means that not all .lit
files that worked in literate
will be guaranteed to work in rliterate
, but any incompatibilities will be reported with a recommended fix, and any differences in behaviour should be obvious.
For an existing source of not-quite-exact information, please refer to the documentation for zyedidia/literate
.
This project produces multiple binaries.
This is the main binary, and is intended to be used in the same way as the original literate
tool. Read the command-line help for more information.
This is a cargo subcommand for literate Rust projects. For single projects, it will try to find the lit
folder in the project root, and process .lit
files in that folder, recursing into any subfolders - the resulting code files are placed into the src
folder. Currently, this also places the documentation files in the src
folder, but that should be configurable and avoidable soon.
For a workspace, the command acts recursively.
- File-level commands can only be defined once. In practise, this should affect nobody.
- CSS commands are deprecated, and their behaviour is somewhat different. If you want to add custom CSS stylings to your output, it's recommended you use a specialised tool for making webpages out of the raw markdown or HTML files.
- The line number CLI argument has been replacement with a
@line_numbers
command. This functions similarly to the@comment_type
command, but with%l
in place of%s
.