Skip to content

Commit

Permalink
fixed autodoc
Browse files Browse the repository at this point in the history
  • Loading branch information
renerocksai committed Mar 23, 2024
1 parent 14fbe58 commit a74dfb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ pub fn build(b: *std.Build) !void {

// -- Docs
const docs_obj = b.addObject(.{
.name = "zap",
.name = "zap", // name doesn't seem to matter
.root_source_file = .{ .path = "src/zap.zig" },
.target = target,
.optimize = .Debug,
});
const install_docs = b.addInstallDirectory(.{
.install_dir = .prefix,
.install_subdir = "docs",
.install_subdir = "zap", // will also be the main namespace in the docs
.source_dir = docs_obj.getEmittedDocs(),
});
b.step("docs", "Build docs").dependOn(&install_docs.step);
Expand Down
Binary file modified docs/sources.tar
Binary file not shown.

0 comments on commit a74dfb8

Please sign in to comment.