Created
March 4, 2025 09:02
-
-
Save peterhellberg/72e740a5a14d51a519f9840c2741b879 to your computer and use it in GitHub Desktop.
Zig build step for emitting docs by calling `zig build docs`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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