Library documentation generation

Hi folks,

I’m currently toying with my first zig library GitHub - yamafaktory/hyperzig: HyperZig - A Hypergraph Implementation in Zig and would like to add a build step to generate the documentation within the build.zig file (e.g. zig build docs).

I know that can already build it using zig build-lib -femit-docs src/hyperzig.zig and then browse the result via a local dev server (e.g. python -m http.server 8000).

N.B.: I’m using 0.13.0.

Hi! Here’s how you can generate docs in build.zig:

1 Like

Thanks a ton @tensorush ! Works like a charm :slight_smile:

1 Like