Generate documentation from doc comments.

master
Jacob Hinchliffe 3 years ago committed by GitHub
parent 9bf6b4af03
commit 1836e941fd

@ -24,6 +24,11 @@ pub fn build(b: *Builder) void {
exe.addPackagePath("ecs", "src/ecs.zig");
exe.linkSystemLibrary("c");
exe.emit_docs = .emit;
const doc = b.step("docs", "Generate documentation.");
doc.dependOn(&exe.step);
const run_cmd = exe.run();
const exe_step = b.step(name, b.fmt("run {s}.zig", .{name}));
exe_step.dependOn(&run_cmd.step);

Loading…
Cancel
Save