git clone http://ratfactor.com/repos/zstd-browse2/zstd-browse2.git
This is a little Ruby program that creates a browseable HTML mini-site from the Zig standard library source.
The style was inspired by (as in, nearly identical to) docco.coffee (archive.org).
To make it browseable, @import()
calls get converted to hyperlinks.
The Ruby program generates a page for one Zig file at a time.
There’s a Bash script to make the whole site.
The first parameter of the script must be a path to a Zig Std Lib (ending in trailing slash /
):
./build.sh /home/dave/zig/lib/std/
The second parameter can be a wildcard match of files/directories to generate:
./build.sh /home/dave/zig/lib/std/ queue
atomic/queue.zig
priority_queue.zig
priority_dequeue.zig
Output will be generated in a new directory named output/
in the current
working directory.