# Generated std lib docs for offline use

**URL:** <https://ziggit.dev/t/generated-std-lib-docs-for-offline-use/3836>\
**Category:** Help\
**Tags:** autodoc\
**Created:** [April 5, 2024, 3:57pm UTC](https://ziggit.dev/t/generated-std-lib-docs-for-offline-use/3836 "2024-04-05T15:57:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![biosbob](https://ziggit.dev/user_avatar/ziggit.dev/biosbob/32/1987_2.png) [@biosbob](https://ziggit.dev/u/biosbob)\
**Post date:** [April 5, 2024, 3:57pm UTC](https://ziggit.dev/t/generated-std-lib-docs-for-offline-use/3836/1 "2024-04-05T15:57:45Z")

</div>

i’ve found a `libs/doc/index.html` file in a recent download, and tried to launch this file in my browser…

i see the main banner as well as a `Loading ...` message – but that’s all…

is there any form of the lib docs that i can use offline??? (i already know about `langref.html`)…

FWIW – i’m heading to [embedded world](https://www.embedded-world.de/en) in europe next week, and want to play in my zig sandbox when in the air&nbsp; ✈

---

<div class="post-metadata">

**Author:** ![FObersteiner](https://ziggit.dev/user_avatar/ziggit.dev/fobersteiner/32/1177_2.png) [@FObersteiner](https://ziggit.dev/u/FObersteiner)\
**Post date:** [April 5, 2024, 4:27pm UTC](https://ziggit.dev/t/generated-std-lib-docs-for-offline-use/3836/2 "2024-04-05T16:27:11Z")

</div>

Related: [A new Zig standard library documentation mini-site generator](https://ziggit.dev/t/a-new-zig-standard-library-documentation-mini-site-generator/2066)

Not sure if that fits your needs, but I think you can run it locally.

---

<div class="post-metadata">

**Author:** ![Siph](https://ziggit.dev/user_avatar/ziggit.dev/siph/32/1978_2.png) [@Siph](https://ziggit.dev/u/Siph)\
**Post date:** [April 5, 2024, 4:47pm UTC](https://ziggit.dev/t/generated-std-lib-docs-for-offline-use/3836/3 "2024-04-05T16:47:41Z")

</div>

Those docs need a web server to run, because they’re actually generated dynamically! Running `zig std` will spin up a local web server and open it in your web browser and you’ll be able to browse the same docs as on [Zig Documentation](https://ziglang.org/documentation/master/std/)

---

<div class="post-metadata">

**Author:** ![dimdin](https://ziggit.dev/user_avatar/ziggit.dev/dimdin/32/1457_2.png) [@dimdin](https://ziggit.dev/u/dimdin)\
**Post date:** [April 5, 2024, 7:25pm UTC](https://ziggit.dev/t/generated-std-lib-docs-for-offline-use/3836/4 "2024-04-05T19:25:37Z")

</div>

As @Siph said, to open a web browser for the local standard library docs:

```zig
zig std

```

This can take some time to load, because the documentation is generated from the source files.

For your generated docs:

```zig
open http://127.0.0.1:8000
python -m http.server -b 127.0.0.1 8000 -d zig-out/docs/

```

---

<div class="post-metadata">

**Author:** ![biosbob](https://ziggit.dev/user_avatar/ziggit.dev/biosbob/32/1987_2.png) [@biosbob](https://ziggit.dev/u/biosbob)\
**Post date:** [April 5, 2024, 11:52pm UTC](https://ziggit.dev/t/generated-std-lib-docs-for-offline-use/3836/5 "2024-04-05T23:52:16Z")

</div>

entering `zig std` (0.12.0.dev) returns `error: FileNotFound`

---

<div class="post-metadata">

**Author:** ![biosbob](https://ziggit.dev/user_avatar/ziggit.dev/biosbob/32/1987_2.png) [@biosbob](https://ziggit.dev/u/biosbob)\
**Post date:** [April 6, 2024, 12:16am UTC](https://ziggit.dev/t/generated-std-lib-docs-for-offline-use/3836/6 "2024-04-06T00:16:57Z")

</div>

definitely can run it locally… search is a challenge 😉

---

<div class="post-metadata">

**Author:** ![ianprime0509](https://ziggit.dev/user_avatar/ziggit.dev/ianprime0509/32/1226_2.png) [@ianprime0509](https://ziggit.dev/u/ianprime0509)\
**Post date:** [April 7, 2024, 1:52am UTC](https://ziggit.dev/t/generated-std-lib-docs-for-offline-use/3836/7 "2024-04-07T01:52:48Z")

</div>

As long as `zig std` prints the address it’s listening on, you should be able to view the docs by navigating to that address in a browser. It also tries to open your web browser automatically, which might result in printing `error: FileNotFound` if it can’t find the command to do so, but that won’t affect the core behavior of the server.
