From 1f0749100b22c17272b4d294e1db3034097b57ea Mon Sep 17 00:00:00 2001 From: Rosa Date: Tue, 12 May 2026 13:49:45 -0400 Subject: start work on template api --- build.zig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 7f8dec1..c4a149f 100644 --- a/build.zig +++ b/build.zig @@ -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; } -- cgit v1.3.1