Lil CLI helper tool to generate mdx for the Figura Wiki. Sorry some stuff is messy! Feel free to contribute :D
-
Install Rust.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Clone the repo
git clone https://github.com/joeyleesi/thingy.git
-
Navigate into the projects directory and build
cd thingy cargo build --release
-
All set! You can find the binary at
build/release/thingy
Usage: thingy --input <FILE> <COMMAND>
Commands:
generate Generate documentation for the given pages
pages List the possible pages to generate
types List the possible types used in the documentation (useful for creating link map)
help Print this message or the help of the given subcommand(s)
Options:
-i, --input <FILE> Path to the exported_docs.json file
-h, --help Print help
-V, --version Print version
-
List all the possible pages that can be generated
./thingy -i path/to/your/exported_docs.json pages
-
Generate a page
./thingy -i path/to/your/exported_docs.json generate -p Action
-
Generate a page and save to a file
./thingy -i path/to/your/exported_docs.json generate -p Action > Action.md