diff-so-fancy icon indicating copy to clipboard operation
diff-so-fancy copied to clipboard

please provide man page; use POD documentation

Open onlyjob opened this issue 8 years ago • 12 comments

Please introduce man page and POD documentation.

Man page can be conveniently generated from POD markup using Pod::Usage core module.

Thanks.

onlyjob avatar Aug 22 '16 00:08 onlyjob

I like this. PR welcome :)

stevemao avatar Aug 22 '16 01:08 stevemao

I think this is a great idea. We'd definitely welcome either PRs, or feedback on exactly what should be covered in the manpage. I've never used POD or created a manpage.

scottchiefbaker avatar Feb 23 '17 16:02 scottchiefbaker

You could use Pandoc to convert the README into a manpage, or at least write a manpage in markdown rather than groff.

alok avatar Nov 03 '17 20:11 alok

I don't have expertise in this area, so I'm willing to accept PRs for this.

scottchiefbaker avatar Jan 17 '19 22:01 scottchiefbaker

I do all the docs for ack in POD and convert them to manpages. I'd be glad to help. https://github.com/beyondgrep/ack3

petdance avatar Apr 10 '19 21:04 petdance

@petdance fantastic. If you're up to writing some POD documentation we'll gladly review it and get it in to the repo.

scottchiefbaker avatar Apr 10 '19 21:04 scottchiefbaker

I don’t know enough about the tool to write docs. I can help with the POD to manual and HTML conversion.

On Apr 10, 2019, at 4:19 PM, Scott Baker [email protected] wrote:

@petdance fantastic. If you're up to writing some POD documentation we'll gladly review it and get it in to the repo.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

petdance avatar Apr 10 '19 22:04 petdance

@petdance I've never written POD before. Where is a good starting point?

scottchiefbaker avatar Apr 23 '20 15:04 scottchiefbaker

$ perldoc perlpod to see the man page for POD. It has all the details.

POD is like Markdown, just older. You do things like =head1 for level headings, B<foo> to make things bold, and so on. For an example, see https://github.com/beyondgrep/ack3/blob/dev/lib/App/Ack.pm

Paragraph-level directives start with = and are in the leftmost column. Inline markup is always 'x' where x is a capital letter.

petdance avatar Apr 23 '20 19:04 petdance

Is the whole point of POD just to output man pages?

scottchiefbaker avatar Apr 24 '20 04:04 scottchiefbaker

No, it's also for internal documentation, but I think in this case you're just looking for man pages.

Another benefit of using POD, since you're using Perl anyway, is that there is such a rich set of tools in place to process POD. So you can create help on the fly with Pod::Usage, or you can create man pages with pod2man, or you can create HTML with pod2html, like here: https://beyondgrep.com/documentation/ack-v3.3.1-man.html

petdance avatar Apr 24 '20 14:04 petdance

Pod::Usage

matthewpersico avatar Apr 26 '20 00:04 matthewpersico