1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 23:24:09 +00:00

fixed autodoc

This commit is contained in:
Rene Schallner 2024-03-23 23:49:52 +01:00
parent 14fbe5849d
commit a74dfb868d
2 changed files with 2 additions and 2 deletions

View file

@ -33,14 +33,14 @@ pub fn build(b: *std.Build) !void {
// -- Docs // -- Docs
const docs_obj = b.addObject(.{ const docs_obj = b.addObject(.{
.name = "zap", .name = "zap", // name doesn't seem to matter
.root_source_file = .{ .path = "src/zap.zig" }, .root_source_file = .{ .path = "src/zap.zig" },
.target = target, .target = target,
.optimize = .Debug, .optimize = .Debug,
}); });
const install_docs = b.addInstallDirectory(.{ const install_docs = b.addInstallDirectory(.{
.install_dir = .prefix, .install_dir = .prefix,
.install_subdir = "docs", .install_subdir = "zap", // will also be the main namespace in the docs
.source_dir = docs_obj.getEmittedDocs(), .source_dir = docs_obj.getEmittedDocs(),
}); });
b.step("docs", "Build docs").dependOn(&install_docs.step); b.step("docs", "Build docs").dependOn(&install_docs.step);

Binary file not shown.