#Offline Documentation without running a webserver

1 messages · Page 1 of 1 (latest)

frank marsh
#

It used to be that downloading ZIG came with a bunch of .html files that and I could just open in a web browser. Am I missing something? Is there an easy way to get that back? Can I do a one time generation of the html docs? I don't want to have to keep a webserver process running while I'm coding just to read the documentation.

warm maple
#

which documentation, the stdlib or the language reference

frank marsh
#

The stdlib. I believe the language reference is still in a plain .html file.

lethal copper
#

that is not possible atm no

#

running the server yourself isnt necessary

warm maple
#

well you could open the html file that the zig std has, but you'll have cross-site errors iirc

frank marsh
#

Yeah, I realize it's available online. I know this is going to sound anal, but I much prefer to work offline. Or at the very least I don't want to have to ping a server for something that's already on my computer. If ziglang.org is experience outages I have to rely on my local copy.

real lichen
#

If you run zig std and it loads up in your web browser, once it loads you can kill the process. The entire docs is stored in a wasm blob, so after initial load there are no more web requests made to the local server.

lethal copper
#

u can keep the tab open and it wont make any network requests after the initial load