#Emitting all docs via build.zig

1 messages · Page 1 of 1 (latest)

uncut depot
#

I have a build.zig like this:

    const target = b.standardTargetOptions(.{});
    const mode = b.standardReleaseOptions();

    const exe = b.addExecutable("main", "src/main.zig");
    exe.emit_docs = .emit;
    exe.setTarget(target);

    exe.setBuildMode(mode);
    exe.install();

The emitted docs only contain docs for main.zig, but I would like it to recursively generate them for everything main.zig imports. Any way to do that?

fringe raft
#

i haven't played with autodoc much but try

#
comptime {
  _ = @import("...");
}
#

like you would do for a test or something

#

or std.testing.refAllDecls maybe

#

these are just a guess lol