#How to view generated autodoc?

1 messages · Page 1 of 1 (latest)

bleak stratus
#

I wanted to see the API for a library I am making using autodoc, but I can't seem to get it working.
I started by running zig test -femit-docs libdisk.zig then went into the generated docs directory and tried to view the documentation using firefox index.html but it doesn't load so I believe I have to run the server. I tried doing wasmtime --dir=. main.wasm but am getting the following error

Error: failed to run main module `main.wasm`

Caused by:
    0: failed to instantiate "main.wasm"
    1: unknown import: `js::log` has not been defined
undone rampart
#

firefox (like all modern browsers) dont allow the script files to just fetch files willy nilly, they have go through an intermediate web server
which is kind of unfortunate but it is what it is