Skip to content

Commit

Permalink
autodoc
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Sep 10, 2023
1 parent 77b95aa commit a7b0b81
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ pub fn build(b: *std.Build) !void {

const editor_run_step = b.step("run", "Run the editor");
editor_run_step.dependOn(&editor.run.step);

const install_docs = b.addInstallDirectory(.{
.source_dir = editor.compile.getEmittedDocs(),
.install_dir = .prefix, // default build output prefix, ./zig-out
.install_subdir = "docs",
});
const docs_step = b.step("docs", "Generate API docs");
docs_step.dependOn(&install_docs.step);
}
}

Expand Down

0 comments on commit a7b0b81

Please sign in to comment.