Skip to content
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

please provide man page; use POD documentation #195

Open
onlyjob opened this issue Aug 22, 2016 · 12 comments
Open

please provide man page; use POD documentation #195

onlyjob opened this issue Aug 22, 2016 · 12 comments

Comments

@onlyjob
Copy link

onlyjob commented Aug 22, 2016

Please introduce man page and POD documentation.

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

Thanks.

@stevemao
Copy link
Member

I like this. PR welcome :)

@scottchiefbaker
Copy link
Contributor

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.

@alok
Copy link

alok commented Nov 3, 2017

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

@scottchiefbaker
Copy link
Contributor

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

@petdance
Copy link

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

@scottchiefbaker
Copy link
Contributor

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

@petdance
Copy link

petdance commented Apr 10, 2019 via email

@scottchiefbaker
Copy link
Contributor

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

@petdance
Copy link

$ 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.

@scottchiefbaker
Copy link
Contributor

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

@petdance
Copy link

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

@matthewpersico
Copy link

Pod::Usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants