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.
pubconstExtractOptions = struct {
/// Number of directory levels to skip when extracting files.strip_components: u32 = 0,
/// How to handle the "mode" property of files from within the tar file.mode_mode: ModeMode = .executable_bit_only,
/// Prevents creation of empty directories.exclude_empty_directories: bool = false,
/// Collects error messages during unpackingdiagnostics: ?*Diagnostics = null,
pubconstModeMode = enum {
/// The mode from the tar file is completely ignored. Files are created/// with the default mode when creating files.ignore,
/// The mode from the tar file is inspected for the owner executable bit/// only. This bit is copied to the group and other executable bits./// Other bits of the mode are left as the default when creating files.executable_bit_only,
};
}