diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-05-12 13:49:45 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-05-12 13:49:45 -0400 |
| commit | 1f0749100b22c17272b4d294e1db3034097b57ea (patch) | |
| tree | 9f007328080aec23a685d6c9062a9192fac769cf /build.zig | |
| parent | 6143a710c142cf6704527ae32a7c90c02e83fe4a (diff) | |
start work on template api
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -4,7 +4,7 @@ pub fn build(b: *std.Build) void { const generate_html = b.addExecutable(.{ .name = "generate_html", .root_module = b.createModule(.{ - .root_source_file = b.path("util/website.zig"), + .root_source_file = b.path("util/generate_html.zig"), .target = b.graph.host, }), }); @@ -18,6 +18,11 @@ pub fn build(b: *std.Build) void { bundle_html.step.dependOn(b.getInstallStep()); run_bundle_html.dependOn(&bundle_html.step); + const serve = b.addSystemCommand(&[_][]const u8{ "lighttpd", "-Df", "util/lighttpd.conf" }); + const run_server = b.step("serve", "Run a local test server"); + serve.step.dependOn(b.getInstallStep()); + run_server.dependOn(&serve.step); + const publish_to_prod = b.step("publish", "Publish the website to production"); _ = publish_to_prod; } |
