# Is it possible to render docs of both std and my dependencies and view them in a combined page?

**URL:** <https://ziggit.dev/t/is-it-possible-to-render-docs-of-both-std-and-my-dependencies-and-view-them-in-a-combined-page/17226>\
**Category:** Help\
**Tags:** zig-docs\
**Created:** [August 14, 2026, 12:28pm UTC](https://ziggit.dev/t/is-it-possible-to-render-docs-of-both-std-and-my-dependencies-and-view-them-in-a-combined-page/17226 "2026-08-14T12:28:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gyozo](https://ziggit.dev/letter_avatar_proxy/v4/letter/g/97f17d/32.png) [@gyozo](https://ziggit.dev/u/gyozo)\
**Post date:** [August 14, 2026, 12:28pm UTC](https://ziggit.dev/t/is-it-possible-to-render-docs-of-both-std-and-my-dependencies-and-view-them-in-a-combined-page/17226/1 "2026-08-14T12:28:59Z")

</div>

Right now I have three different zig docs open in my browser. Would be nice if there was a way to combine them into just one, with a unified search bar.

---

<div class="post-metadata">

**Author:** ![00JCIV00](https://ziggit.dev/user_avatar/ziggit.dev/00jciv00/32/1069_2.png) [@00JCIV00](https://ziggit.dev/u/00JCIV00)\
**Post date:** [August 14, 2026, 12:44pm UTC](https://ziggit.dev/t/is-it-possible-to-render-docs-of-both-std-and-my-dependencies-and-view-them-in-a-combined-page/17226/2 "2026-08-14T12:44:40Z")

</div>

I can’t say for sure regarding all dependencies, but I know std docs are built-in with your project’s auto docs. Tested with my library’s docs [here](https://00jciv00.github.io/cova/), I can search through std or my project in the search bar.

---

<div class="post-metadata">

**Author:** ![andrewrk](https://ziggit.dev/user_avatar/ziggit.dev/andrewrk/32/7011_2.png) [@andrewrk](https://ziggit.dev/u/andrewrk)\
**Post date:** [August 15, 2026, 2:22am UTC](https://ziggit.dev/t/is-it-possible-to-render-docs-of-both-std-and-my-dependencies-and-view-them-in-a-combined-page/17226/3 "2026-08-15T02:22:16Z")

</div>

I was just thinking it would be sweet if there was a command to automatically do this locally for one’s entire dependency tree. Like `zig std` but for all packages you depend on. Maybe even the web UI could let you select from a menu of all the compilations and pick one to look at the combined docs for.

---

<div class="post-metadata">

**Author:** ![alan](https://ziggit.dev/letter_avatar_proxy/v4/letter/a/a87d85/32.png) [@alan](https://ziggit.dev/u/alan)\
**Post date:** [August 15, 2026, 12:51pm UTC](https://ziggit.dev/t/is-it-possible-to-render-docs-of-both-std-and-my-dependencies-and-view-them-in-a-combined-page/17226/4 "2026-08-15T12:51:38Z")

</div>

It’s possible to get a documentation page with std, your dependencies (even the C ones), and your project all searchable by adding a step in `build.zig` to build the docs and then serving the resulting page with a local web server. Just trying to browse the file system directly from the browser doesn’t work for me with Firefox since the browser refuses to run the necessary Javascript.

1. Add to `build.zig` something like this:

```zig
const exe_docs = b.addInstallDirectory(.{
    .source_dir = exe.getEmittedDocs(),
    .install_dir = .prefix,
    .install_subdir = "docs/<project-name>-exe",
});

const doc_step = b.step("docs", "Generate documentation");
doc_step.dependOn(&exe_docs.step);

```

1. Run `zig build docs`
2. Serve the documentation page with a web server

```sh
cd ./zig-out/docs/<project-name>-exe/
python3 -m http.server # Use whatever HTTP server you want

```

I agree it would be great to have this functionality built in. It’s so helpful to be able to search documentation for exactly the code you are using. It all works offline too!

---

<div class="post-metadata">

**Author:** ![gyozo](https://ziggit.dev/letter_avatar_proxy/v4/letter/g/97f17d/32.png) [@gyozo](https://ziggit.dev/u/gyozo)\
**Post date:** [August 15, 2026, 2:15pm UTC](https://ziggit.dev/t/is-it-possible-to-render-docs-of-both-std-and-my-dependencies-and-view-them-in-a-combined-page/17226/5 "2026-08-15T14:15:58Z")

</div>

Modifying `zig std` to serve docs for multiple folders turned out to be pretty straightforward.  
[https://codeberg.org/ziglang/zig/pulls/36516](https://codeberg.org/ziglang/zig/pulls/36516)  
This small patch is enough to search symbols in dependencies – that’s enough for my use case now.  
I have no expectation for this to be merged or looked at by anyone, this is my first zig code that actually does something.
