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.
pubconstSIG = struct {
/// hanguppubconstHUP = 1;
/// interruptpubconstINT = 2;
/// quitpubconstQUIT = 3;
/// illegal instruction (not reset when caught)pubconstILL = 4;
/// used by abortpubconstABRT = 5;
/// floating point exceptionpubconstFPE = 6;
/// kill (cannot be caught or ignored)pubconstKILL = 7;
/// segmentation violationpubconstSEGV = 8;
/// write on a pipe with no one to read itpubconstPIPE = 9;
/// alarm clockpubconstALRM = 10;
/// software termination signal from killpubconstTERM = 11;
/// user defined signal 1pubconstUSR1 = 12;
/// user defined signal 2pubconstUSR2 = 13;
/// bus errorpubconstBUS = 14;
// The following symbols must be defined, but the signals needn't be supported/// child process terminated or stoppedpubconstCHLD = 15;
/// continue if stoppedpubconstCONT = 16;
/// stoppubconstSTOP = 17;
/// interactive stoppubconstTSTP = 18;
/// read from ctl tty by member of backgroundpubconstTTIN = 19;
/// write to ctl tty by member of backgroundpubconstTTOU = 20;
}