docs: fix doc build step
This commit is contained in:
parent
117545ca4b
commit
910fac9cc2
1 changed files with 8 additions and 2 deletions
10
build.zig
10
build.zig
|
@ -72,9 +72,15 @@ pub fn build(b: *std.Build) void {
|
||||||
b.default_step.dependOn(lints_step);
|
b.default_step.dependOn(lints_step);
|
||||||
|
|
||||||
// Docs
|
// 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(.{
|
const build_docs = b.addInstallDirectory(.{
|
||||||
.source_dir = vaxis_docs.getEmittedDocs(),
|
.source_dir = docs.getEmittedDocs(),
|
||||||
.install_dir = .prefix,
|
.install_dir = .prefix,
|
||||||
.install_subdir = "docs",
|
.install_subdir = "docs",
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue