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.
pubconstFALLOC = struct {
/// Default is extend sizepubconstFL_KEEP_SIZE = 0x01;
/// De-allocates rangepubconstFL_PUNCH_HOLE = 0x02;
/// Reserved codepointpubconstFL_NO_HIDE_STALE = 0x04;
/// Removes a range of a file without leaving a hole in the filepubconstFL_COLLAPSE_RANGE = 0x08;
/// Converts a range of file to zeros preferably without issuing data IOpubconstFL_ZERO_RANGE = 0x10;
/// Inserts space within the file size without overwriting any existing datapubconstFL_INSERT_RANGE = 0x20;
/// Unshares shared blocks within the file size without overwriting any existing datapubconstFL_UNSHARE_RANGE = 0x40;
}