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.
pubconstBaseType = enum(u8) {
/// No type information or unknown base type. Microsoft tools use this settingNULL = 0,
/// No valid type; used with void pointers and functionsVOID = 1,
/// A character (signed byte)CHAR = 2,
/// A 2-byte signed integerSHORT = 3,
/// A natural integer type (normally 4 bytes in Windows)INT = 4,
/// A 4-byte signed integerLONG = 5,
/// A 4-byte floating-point numberFLOAT = 6,
/// An 8-byte floating-point numberDOUBLE = 7,
/// A structureSTRUCT = 8,
/// A unionUNION = 9,
/// An enumerated typeENUM = 10,
/// A member of enumeration (a specified value)MOE = 11,
/// A byte; unsigned 1-byte integerBYTE = 12,
/// A word; unsigned 2-byte integerWORD = 13,
/// An unsigned integer of natural size (normally, 4 bytes)UINT = 14,
/// An unsigned 4-byte integerDWORD = 15,
_,
}