Skip to content

Instantly share code, notes, and snippets.

@peterhellberg
Created March 4, 2025 09:02
Show Gist options
  • Save peterhellberg/72e740a5a14d51a519f9840c2741b879 to your computer and use it in GitHub Desktop.
Save peterhellberg/72e740a5a14d51a519f9840c2741b879 to your computer and use it in GitHub Desktop.
Zig build step for emitting docs by calling `zig build docs`
const docs_step = b.step("docs", "Emit docs");
const docs_install = b.addInstallDirectory(.{
.install_dir = .prefix,
.install_subdir = "docs",
.source_dir = exe.getEmittedDocs(),
});
docs_step.dependOn(&docs_install.step);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment