#zig build-lib -femit-docs without included stdlib sources?

1 messages · Page 1 of 1 (latest)

hardy girder
#

Hi, we're currently experimenting with automatically generating docs for sokol-zig and publishing them on GH Pages (e.g. see: https://floooh.github.io/sokol-zig-docs/).

Problem is now: the majority of the generated data is a .tar file which has a complete copy of the Zig stdlib sources in it, and that tar file is about 13 MBytes. I'd like to run the docs-generation automatically on commits, but that means each commit adds 13 MBytes to the Github Pages repo...

Long story short, anybody knows if there's a way to generate documentation without the stdlib sources? 🙂

stiff pine
#

nope, afaik there's currently no way to work around it
I usually just edit the .tar archive manually and remove the std sources. I guess you could automate this process by running tar using just your own sources and overwriting the -femit-docs .tar archive

hardy girder
#

yep that sounds like a good idea, thanks!