From 02bc4d89c9efbf2a601a5d0e8974e57d3efa75f8 Mon Sep 17 00:00:00 2001 From: Ethan Holz Date: Sun, 17 Dec 2023 01:32:16 -0700 Subject: [PATCH] docs: added docs build step --- build.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.zig b/build.zig index 6895750..80753b0 100644 --- a/build.zig +++ b/build.zig @@ -99,4 +99,14 @@ pub fn build(b: *std.Build) void { // running the unit tests. const test_step = b.step("test", "Run unit tests"); test_step.dependOn(&run_unit_tests.step); + + const install_docs = b.addInstallDirectory(.{ + .source_dir = lib.getEmittedDocs(), + .install_dir = .prefix, + .install_subdir = "doc", + }); + + const docs_step = b.step("docs", "Generate docs"); + docs_step.dependOn(&install_docs.step); + docs_step.dependOn(&lib.step); } -- 2.51.2