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.
constjs = struct {
extern"time_report"fnupdateGeneric(
/// The index of the step.step_idx: u32,
// The HTML which will be used to populate the template slots.inner_html_ptr: [*]constu8,
inner_html_len: usize,
) void;
extern"time_report"fnupdateCompile(
/// The index of the step.step_idx: u32,
// The HTML which will be used to populate the template slots.inner_html_ptr: [*]constu8,
inner_html_len: usize,
// The HTML which will populate the <tbody> of the file table.file_table_html_ptr: [*]constu8,
file_table_html_len: usize,
// The HTML which will populate the <tbody> of the decl table.decl_table_html_ptr: [*]constu8,
decl_table_html_len: usize,
/// Whether the LLVM backend was used. If not, LLVM-specific statistics are hidden.use_llvm: bool,
) void;
extern"time_report"fnupdateRunTest(
/// The index of the step.step_idx: u32,
// The HTML which will populate the <tbody> of the test table.table_html_ptr: [*]constu8,
table_html_len: usize,
) void;
}