Documentation generation?

I wish I could generate documentation like “docgen” from zig, but it doesn’t work or at least I can’t.

and I don’t have time for the moment and when we publish it becomes heavy.

good, it’s still possible to proofread and do with mustache-zig generate at least the functions and make a link

does anyone have a solution. Thank you

with the last dev.zig

zig build-obj -femit-docs ./forms.zig

Be careful, the build-obj is not aligned with build-file.
Imports into the master program must all be qualified.

on the other hand, all the sources must be in the same folder

ex:
zig build --build-file ./buildExemple.zig
source —> const kbd = @import(“cursed”).kbd;
build —>Prog.addPackagePath(“cursed”, “deps/curse/cursed.zig”);

zig build-obj -femit-docs ./Exemples.zig use cursed.zig
build-obj ----> source —> const kbd = @import(“deps/curse/cursed.zig”).kbd;

it’s a little bug
but the doc is pretty clean

I think that soon, we will have the possibility of making a documentation of the projects which we publish.

Thanks to the whole team.

Hello, with help I found how to generate documentation for a project.
It’s all in my Termcurs project
you will find in the src-zig buildExample how to do it

1 Like

If you want to generate documentation on GitHub for example with the dev version it doesn’t really work.
So I recompiled with the official version ex:0.10
there everything works fine everything is there