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.
pubconstTCP = struct {
/// Turn off Nagle's algorithmpubconstNODELAY = 1;
/// Limit MSSpubconstMAXSEG = 2;
/// Never send partially complete segments.pubconstCORK = 3;
/// Start keeplives after this period, in secondspubconstKEEPIDLE = 4;
/// Interval between keepalivespubconstKEEPINTVL = 5;
/// Number of keepalives before deathpubconstKEEPCNT = 6;
/// Number of SYN retransmitspubconstSYNCNT = 7;
/// Life time of orphaned FIN-WAIT-2 statepubconstLINGER2 = 8;
/// Wake up listener only when data arrivepubconstDEFER_ACCEPT = 9;
/// Bound advertised windowpubconstWINDOW_CLAMP = 10;
/// Information about this connection.pubconstINFO = 11;
/// Block/reenable quick ackspubconstQUICKACK = 12;
/// Congestion control algorithmpubconstCONGESTION = 13;
/// TCP MD5 Signature (RFC2385)pubconstMD5SIG = 14;
/// Use linear timeouts for thin streamspubconstTHIN_LINEAR_TIMEOUTS = 16;
/// Fast retrans. after 1 dupackpubconstTHIN_DUPACK = 17;
/// How long for loss retry before timeoutpubconstUSER_TIMEOUT = 18;
/// TCP sock is under repair right nowpubconstREPAIR = 19;
pubconstREPAIR_QUEUE = 20;
pubconstQUEUE_SEQ = 21;
pubconstREPAIR_OPTIONS = 22;
/// Enable FastOpen on listenerspubconstFASTOPEN = 23;
pubconstTIMESTAMP = 24;
/// limit number of unsent bytes in write queuepubconstNOTSENT_LOWAT = 25;
/// Get Congestion Control (optional) infopubconstCC_INFO = 26;
/// Record SYN headers for new connectionspubconstSAVE_SYN = 27;
/// Get SYN headers recorded for connectionpubconstSAVED_SYN = 28;
/// Get/set window parameterspubconstREPAIR_WINDOW = 29;
/// Attempt FastOpen with connectpubconstFASTOPEN_CONNECT = 30;
/// Attach a ULP to a TCP connectionpubconstULP = 31;
/// TCP MD5 Signature with extensionspubconstMD5SIG_EXT = 32;
/// Set the key for Fast Open (cookie)pubconstFASTOPEN_KEY = 33;
/// Enable TFO without a TFO cookiepubconstFASTOPEN_NO_COOKIE = 34;
pubconstZEROCOPY_RECEIVE = 35;
/// Notify bytes available to read as a cmsg on readpubconstINQ = 36;
pubconstCM_INQ = INQ;
/// delay outgoing packets by XX usecpubconstTX_DELAY = 37;
pubconstREPAIR_ON = 1;
pubconstREPAIR_OFF = 0;
/// Turn off without window probespubconstREPAIR_OFF_NO_WP = -1;
}