diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -35,6 +35,14 @@ pub fn build(b: *std.Build) void { | |||
| 35 | example_step.dependOn(&install_example.step); | 35 | example_step.dependOn(&install_example.step); |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | const docs_step = b.step("docs", "Generate docs."); | ||
| 39 | const install_docs = b.addInstallDirectory(.{ | ||
| 40 | .source_dir = tests.getEmittedDocs(), | ||
| 41 | .install_dir = .prefix, | ||
| 42 | .install_subdir = "docs", | ||
| 43 | }); | ||
| 44 | docs_step.dependOn(&install_docs.step); | ||
| 45 | |||
| 38 | const readme_step = b.step("readme", "Remake README."); | 46 | const readme_step = b.step("readme", "Remake README."); |
| 39 | const readme = readMeStep(b); | 47 | const readme = readMeStep(b); |
| 40 | readme.dependOn(example_step); | 48 | readme.dependOn(example_step); |