🤝
lemmy-help
Everyone needs help, so lemmy-help you
What?
lemmy-help
is a emmylua parser as well as a CLI which takes that parsed tree and converts it into vim help docs.
Installation
- Using
cargo
cargo install lemmy-help --features=cli
- Arch Linux
# Using yay
yay -S lemmy-help
# Using paru
paru -S lemmy-help
- Using releases
Check out the release page for prebuild binaries available for different operating systems.
Emmylua
To properly generate docs you should follow emmylua spec. The parser is capable of parsing most (not all) of the emmylua syntax. You can read the following doc which can give you the idea on how to properly write emmylua comments.
Usage
Using the CLI is simple just give it the path to the lua files; it will parse them and prints the help doc to stdout
NOTE: The order of parsing + rendering is same as in which they are defined
lemmy-help \
"/path/to/first/file" \
"/path/to/second/file" \
"/path/to/third/file" > doc.txt