diff --git a/README.md b/README.md index b7adee1..ea0852d 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,20 @@ Convert manpages to HTML documents. ## Usage +Just a short version of this: + +```sh +zcat /data/data/com.termux/files/usr/share/man/man1/cmake.1.gz | groff -mandoc -Thtml > cmake-man.html +``` + +To find out man page paths use `whereis` command: + +```sh +$ whereis cmake + +cmake: /data/data/com.termux/files/usr/bin/cmake /data/data/com.termux/files/usr/share/man/man1/cmake.1.gz +``` + `man2html` takes the name of a manpage as an argument, so you don't need to specify the manpage by its path. ```