From 910fac9cc2161e0ae5fbbb6ba663f7f7e08af360 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 29 Mar 2024 09:20:42 -0500 Subject: [PATCH] docs: fix doc build step --- build.zig | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 43acaf6..88544f9 100644 --- a/build.zig +++ b/build.zig @@ -72,9 +72,15 @@ pub fn build(b: *std.Build) void { b.default_step.dependOn(lints_step); // Docs - const vaxis_docs = tests; + const docs = b.addStaticLibrary(.{ + .name = "vaxis", + .root_source_file = .{ .path = "src/main.zig" }, + .target = target, + .optimize = optimize, + }); + docs.root_module.addImport("vaxis", vaxis_mod); const build_docs = b.addInstallDirectory(.{ - .source_dir = vaxis_docs.getEmittedDocs(), + .source_dir = docs.getEmittedDocs(), .install_dir = .prefix, .install_subdir = "docs", });