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.
pubconstCompileOptions = struct {
cwd: std.Io.Dir,
diagnostics: *Diagnostics,
source_mappings: ?*SourceMappings = null,
/// List of paths (absolute or relative to `cwd`) for every file that the resources within the .rc file depend on.dependencies: ?*Dependencies = null,
default_code_page: SupportedCodePage = .windows1252,
/// If true, the first #pragma code_page directive only sets the input code page, but not the output code page./// This check must be done before comments are removed from the file.disjoint_code_page: bool = false,
ignore_include_env_var: bool = false,
extra_include_paths: []const []constu8 = &.{},
/// This is just an API convenience to allow separately passing 'system' (i.e. those/// that would normally be gotten from the INCLUDE env var) include paths. This is mostly/// intended for use when setting `ignore_include_env_var = true`. When `ignore_include_env_var`/// is false, `system_include_paths` will be searched before the paths in the INCLUDE env var.system_include_paths: []const []constu8 = &.{},
default_language_id: ?u16 = null,
// TODO: Implement verbose outputverbose: bool = false,
null_terminate_string_table_strings: bool = false,
/// Note: This is a u15 to ensure that the maximum number of UTF-16 code units/// plus a null-terminator can always fit into a u16.max_string_literal_codepoints: u15 = lex.default_max_string_literal_codepoints,
silent_duplicate_control_ids: bool = false,
warn_instead_of_error_on_invalid_code_page: bool = false,
include_env_value: ?[]constu8 = null,
}