summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 22:49:11 -0300
committerGabriel Schneider <[email protected]>2026-11-06 23:38:31 -0300
commitdbff3a5bb1d47e5a348ce7e91073df43b29b3e44 (patch)
tree02bd08fb2747a893c532651ce39d0ba6d7c67a61 /build.zig
parentd03b727cddfcec41b464ddf6178f17d0e831e529 (diff)
downloadpardes-dbff3a5bb1d47e5a348ce7e91073df43b29b3e44.tar.gz
pardes-dbff3a5bb1d47e5a348ce7e91073df43b29b3e44.zip
kinds #51, builtins-json lists the shipped addons' words, read off the Zig kinds' `Word` lines (image.zig and pdf.zig, handed to the generator and read by the staleness test), each `"addon"` first so the docs test's search for a builtin never meets one and an addon word the docs name is checked against the sources (renaming PdfFit fails it); the glossary says whose addon a word is, and the changelog
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 384ea039..60020e85 100644
--- a/build.zig
+++ b/build.zig
@@ -903,6 +903,7 @@ pub fn build(b: *std.Build) void {
}) });
const run_gen = b.addRunArtifact(gen);
const json = run_gen.addOutputFileArg("builtins.json");
+ for ([_][]const u8{ "image/image.zig", "pdf/pdf.zig" }) |f| run_gen.addFileArg(b.path(b.fmt("addons/{s}", .{f})));
const update = b.addUpdateSourceFiles();
update.addCopyFileToSource(json, b.fmt("docs/typ/builtins-{s}.json", .{@tagName(platform)}));
builtins_json_step.dependOn(&update.step);