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.
pubconstAT = struct {
/// Special value used to indicate openat should use the current working directorypubconstFDCWD = -100;
/// Do not follow symbolic linkspubconstSYMLINK_NOFOLLOW = 0x100;
/// Remove directory instead of unlinking filepubconstREMOVEDIR = 0x200;
/// Follow symbolic links.pubconstSYMLINK_FOLLOW = 0x400;
/// Suppress terminal automount traversalpubconstNO_AUTOMOUNT = 0x800;
/// Allow empty relative pathnamepubconstEMPTY_PATH = 0x1000;
/// Type of synchronisation required from statx()pubconstSTATX_SYNC_TYPE = 0x6000;
/// - Do whatever stat() doespubconstSTATX_SYNC_AS_STAT = 0x0000;
/// - Force the attributes to be sync'd with the serverpubconstSTATX_FORCE_SYNC = 0x2000;
/// - Don't sync attributes with the serverpubconstSTATX_DONT_SYNC = 0x4000;
/// Apply to the entire subtreepubconstRECURSIVE = 0x8000;
pubconstHANDLE_FID = REMOVEDIR;
}