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.
pubconstSubsystem = enum(u16) {
/// An unknown subsystemUNKNOWN = 0,
/// Device drivers and native Windows processesNATIVE = 1,
/// The Windows graphical user interface (GUI) subsystemWINDOWS_GUI = 2,
/// The Windows character subsystemWINDOWS_CUI = 3,
/// The OS/2 character subsystemOS2_CUI = 5,
/// The Posix character subsystemPOSIX_CUI = 7,
/// Native Win9x driverNATIVE_WINDOWS = 8,
/// Windows CEWINDOWS_CE_GUI = 9,
/// An Extensible Firmware Interface (EFI) applicationEFI_APPLICATION = 10,
/// An EFI driver with boot servicesEFI_BOOT_SERVICE_DRIVER = 11,
/// An EFI driver with run-time servicesEFI_RUNTIME_DRIVER = 12,
/// An EFI ROM imageEFI_ROM = 13,
/// XBOXXBOX = 14,
/// Windows boot applicationWINDOWS_BOOT_APPLICATION = 16,
_,
}