Zig 0.17.0-dev (Split by item)

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.

render

Renders a document directly to a writer using the default renderer.

Document.render
pub fn render(doc: Document, writer: anytype) @TypeOf(writer).Error!void

File

lib/docs/wasm/markdown/Document.zig:163

Code

pub fn render(doc: Document, writer: anytype) @TypeOf(writer).Error!void {
    const renderer: Renderer(@TypeOf(writer), void) = .{ .context = {} };
    try renderer.render(doc, writer);
}