Welcome to Hanji, Hanji builds docs for your Cairo code
Usage: hanji [OPTIONS] <PATH> [OUT_DIR]
Arguments:
<PATH> Path to the cairo file or directory to parse
[OUT_DIR] Path to output the docs in, default hanji-out
Options:
-i, --index Print the index, can be pasted in readme.md
-x, --index-path-prefix <INDEX_PATH_PREFIX> Index links path prefix, defaults to out_dir path
-h, --help Print help
-V, --version Print version
-
Clone the repo.
-
Go to the terminal and run the following commands.
-
Build binary
cargo build --release
-
Add $PATH to binary, replace
.bash_profile
with.zshrc
if you are using zsh.echo "export PATH=\$PATH:$(pwd)/target/release" >> ~/.bash_profile
-
Close the terminal and open it again to load updated
PATH
. -
Verify you can run
hanji -h
orhanji.exe -h
(for windows)hanji -h
-
You should see a welcome message, if not please look up how to add PATH
for your terminal/OS.