Skip to content

Commit

Permalink
docs: generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
arrufat committed Aug 2, 2024
1 parent 5c3c31e commit eea785d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ pub fn build(b: *std.Build) void {
// Export module.
_ = b.addModule("zignal", .{ .root_source_file = b.path("src/zignal.zig") });

_ = buildModule(b, "zignal", target, optimize);
// Build zignal.
const zignal = buildModule(b, "zignal", target, optimize);

// Build docs.
const docs = b.addInstallDirectory(.{
.source_dir = zignal.getEmittedDocs(),
.install_dir = .prefix,
.install_subdir = "docs",
});
b.getInstallStep().dependOn(&docs.step);

const lib_check = b.addStaticLibrary(.{
.name = "zignal",
Expand Down

0 comments on commit eea785d

Please sign in to comment.