-
Notifications
You must be signed in to change notification settings - Fork 95
Description
I would like to build man pages from the markdown docs and I need some advice.
I know man pages are important for distro packaging, so I'm reaching out to you @jonathanspw and @lamby for advice. Should I include anyone else? I have a few ideas for building man pages for the entire Valkey documentation and I would like to know if these ideas make sense or if there are any other ways.
I'm willing to restructure the valkey-doc repo a bit to better fit the needs for man-pages and other formats, rather than just being a repo backing a website. (The website is one place where we publish docs, but I don't the website use case to make us pollute the doc repo with website-specific content, etc.)
-
One man page per command. Section
3valkey
. Is this a good idea? -
One man page for each of the markdown files under topics/ in this repo. Man page section 7, right?
Many of these pages have generic names like
transactions
, so I'm thinking that we could prefix them withvalkey-
(e.g.valkey-transactions
). Would that be a good idea? An alternative could be to use a section like7valkey
and no prefix on the page names. Any advice or preferences? -
One man page for each of the executables
valkey-server
,valkey-cli
,valkey-benchmark
,valkey-check-rdb
,valkey-check-aof
. (Section 1.)There are already some pages under topics/ that document the binaries
valkey-cli
,valkey-benchmark
under topics. I'd like to adapt these to a man page structure used for programs and I think it would be a good idea to move them to its own directory, like programs/ or so, so topics correspond to section 7 and programs to section 1. -
One man page for the configuration. Would it make sense to call it
valkey.conf
? (Section 5) -
What man page fields should I use and how would you populate them? If there are
I'm considering using pandoc
or some other tool that can convert markdown to man pages. (Any advice here?) In addition to that, I'll need to use some preprocessing of the markdown files (some python script, maybe some sed, etc.) and a dependency on valkey's code repo to fetch some metadata about commands. A Makefile with targets to build and install the man pages.
WDYT?