Skip to content

hon-sh/zdocs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zdocs

zig 0.14.x

zdocs is like zig std, but for all zig modules.

zdocs.mp4

usage

show docs of std

zdocs -Mstd

show docs of specific module

zdocs -Mmarkdown=src/wasm/markdown.zig

usage zdocs -h

Usage: zdocs [options]

Options:
  -h, --help                Print this help and exit.
  -Mstd                     std Module.
  -M<mod_name>=<src_path>   Module name and module root source path.
  --host <host>             Host to listen on. Default is 127.0.0.1.
  -p <port>, --port <port>  Port to listen on. Default is 0, meaning an ephemeral port
                            chosen by the system.
  --[no-]open-browser       Force enabling or disabling opening a browser tab to the
                            served website. By default, enabled unless a port is specified.

install

# 1. get source code (clone or download)

# 2. install
zig build install -Doptimize=ReleaseSafe -p <your-install-prefix>

<your-install-prefix> is the directory where you want to install the zdocs binary to, e.g.,
-p /usr/local will install to /usr/local/bin/zdocs or
-p ~/.local will install to ~/.local/bin/zdocs.

dev

zig build run -- -Mstd

Note:

  • zig build run -- -Mstd use hash(#) route
  • www use url path route
  • also check www dist mode

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages