Generating 'doc/rg.1' #2054
-
On Windows I use the man-page program from Eli Zaretskii. I works fine. My question is how to generate a So I ended up using pandoc in my custom GNU Makefile. This works:
and the build-date at the bottom. No asciidoc or a2x mess. Just my € 0.02. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It does not. You're only generating the man page from the template.
It's not a mess. I started generating the man page with
Does this FAQ item answer your question? Note also that the output of
This comment pretty much sums it up: Lines 76 to 79 in ba535fb Basically, the help text for the CLI flags is auto-generated from the flag definitions in the source code. That permits the documentation for every flag to have a single point of truth. There is no easy way to build the man page other than with the build script, which is automatically executed during |
Beta Was this translation helpful? Give feedback.
It does not. You're only generating the man page from the template.
It's not a mess. I started generating the man page with
pandoc
, but ran into problems where I couldn't reliably buildpandoc
. Moreover,pandoc
was not producing ideal output. ASCII Doctor provides a much better man page.cargo build
Does this FAQ item answer your question?
Note also that the output of
rg --help
is nearly identical to what's in the man page.This comment pretty m…