Skip to content

shramee/hanji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hanji

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

Installation

  1. Clone the repo.

  2. 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 or hanji.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.

About

Hanji generates docs for your Cairo library

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages