Merge pull request #25 from JacobHin2/patch-1

Generate documentation from doc comments.
This commit is contained in:
prime31 2022-01-16 20:55:54 -08:00 committed by GitHub
commit d3aa1efe38

View File

@ -23,6 +23,13 @@ pub fn build(b: *Builder) void {
exe.setOutputDir(std.fs.path.join(b.allocator, &[_][]const u8{ b.cache_root, "bin" }) catch unreachable);
exe.addPackagePath("ecs", "src/ecs.zig");
exe.linkSystemLibrary("c");
const docs = exe;
docs.emit_docs = .emit;
const doc = b.step("docs", "Generate documentation");
doc.dependOn(&docs.step);
const run_cmd = exe.run();
const exe_step = b.step(name, b.fmt("run {s}.zig", .{name}));