-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write man page #48
Comments
The example given by @fmarier was this repo they hand-wrote for the The format it's written-in is called "Nroff" The GNU tool for parsing nroff files is "Groff" |
I poked around on a Debian system and found the man page for
I couldn't get it to be rendered using
woah, groffer has some awesome output modes!
Here's the 'text' mode
Anyway, so this is pretty dope. But what's the best way to actually write a man page? There's (It also looks like Kramdown can convert markdown to roff) This is probably not what I want, but I was able to convert my existing .rst documentation to the man page format. Here's the source
And here's it rendered with
|
Sorry, I should have mentioned this too in my original note. There's a very easy way to render your man page (assuming it's called
|
Thanks :) I'm currently just trying to figure out the best-practice of:
|
I spent some time looking at other projects to see how they build and where they store their man pages
|
I think the best short-term solution is to manually write our own man page in a
A couple things I'm not currently going to do, but things we should consider long-term:
Note: the file "extension"
|
Here's some examples of some |
See also https://en.wikipedia.org/wiki/Comparison_of_documentation_generators I guess the most common method of auto-generating manpages from the sample of other FOSS projects above was to use Doxygen |
I created a new branch named |
Unfortunately, if I use `pandoc` to convert this new manpage.rst file to groff-format for `man`, it doesn't render correctly in `man` because it's missing the Title Heading (.TH). See Also: * #48 * https://tex.stackexchange.com/questions/668065/missing-th-section-when-converting-rst-file-to-groff-format-in-pandoc-restr * https://stackoverflow.com/questions/74749734/missing-th-section-when-converting-rst-file-to-groff-format-in-pandoc-restr
This is some pretty in-depth research! It would almost be worth putting into a blog post so that it doesn't disappear into the issue tracker :) |
I managed to fix the issue where
|
From the
|
To add all the variable to populate the manpage template via So I hacked-up a simple script to wrap this command: |
I've merged the
I've confirmed this to be working on Debian 11. Here's an example execution
|
@fmarier can you please confirm if this man page meet's Debian's needs?
|
@maltfield That looks good to me. I filed #50 for a few nits, but even without it would be good. |
Just to add to your list of manpage resources, here's a very good guide I had forgotten about: https://liw.fi/manpages/ |
This ticket will track the effort to write a manpage for the BusKill app that will be displayed when running
man buskill
on *nix systems.This is a prerequisite to getting BusKill added to the official Debian repos in #31
The text was updated successfully, but these errors were encountered: