Loppo supports two git-style subcommands.
- loppo server
- loppo count
- loppo chapter
loppo server
builds the document site at first, and thereafter launch a web server on 8080 port for dist
sub-directory.
$ loppo server
After running the comand, you could visit http://127.0.0.1:8080 in your browser.
This command is helpful for preview when you develop your documents.
loppo count
will output statistic information of your documents.
$ loppo count
[Files] 56
[Lines] 8885
[Words] 51555
[Chars] 362931
Attention, before using this command, chapters.yml
must already be existed. Otherwise you will get an error.
loppo count
has two options.
# output every markdown file's statistic information
$ loppo count --detail
# output a specified markdown file's statistic information
# the file path should be same as the corresponding item in chapters.yml
$ loppo count -f some.md
loppo chapter
will re-create chapters.yml
and add new Markdown files into it.
Attention, the old chapters.yml
will be deleted after running the command.
$ loppo chapter
This command will delete your chapters.yml if existed.
Are you sure to continue? (Y/N)
If you want to skip the confirmation, use --force
option.
$ loppo chapter --force