This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.
usage
reduce.usage
constusage =
\\zig reduce [options] ./checker root_source_file.zig [-- [argv]]\\\\root_source_file.zig is relative to --main-mod-path.\\\\checker:\\ An executable that communicates interestingness by returning these exit codes:\\ exit(0): interesting\\ exit(1): unknown (infinite loop or other mishap)\\ exit(other): not interesting\\\\options:\\ --seed [integer] Override the random seed. Defaults to 0\\ --skip-smoke-test Skip interestingness check smoke test\\ --mod [name]:[deps]:[src] Make a module available for dependency under the given name\\ deps: [dep],[dep],...\\ dep: [[import=]name]\\ --deps [dep],[dep],... Set dependency names for the root package\\ dep: [[import=]name]\\ --main-mod-path Set the directory of the root module\\\\argv:\\ Forwarded directly to the interestingness script.\\
constusage =
\\zig reduce [options] ./checker root_source_file.zig [-- [argv]]\\\\root_source_file.zig is relative to --main-mod-path.\\\\checker:\\ An executable that communicates interestingness by returning these exit codes:\\ exit(0): interesting\\ exit(1): unknown (infinite loop or other mishap)\\ exit(other): not interesting\\\\options:\\ --seed [integer] Override the random seed. Defaults to 0\\ --skip-smoke-test Skip interestingness check smoke test\\ --mod [name]:[deps]:[src] Make a module available for dependency under the given name\\ deps: [dep],[dep],...\\ dep: [[import=]name]\\ --deps [dep],[dep],... Set dependency names for the root package\\ dep: [[import=]name]\\ --main-mod-path Set the directory of the root module\\\\argv:\\ Forwarded directly to the interestingness script.\\