Man pages for Ruby programs?

Lately I found this:

http://boredzo.org/blog/archives/2016-08-15/colorized-man-pages-understood-and-customized

Nice colours for manpages.

But I was thinking… would it be possible to have or use manpages in a
gem too, optionally? I would not need this for all my projects, only for
~3 of my larger gems. All these gems already have very long tutorials
that I keep in .cgi; from this .cgi, I generate a .pdf file via
wkhtmltopdf, which is not pretty but at the least it has the content
that I think may be
useful and it has some styling/colours. So I was thinking that I could
also use manpages from these tutorials, but I have no real idea how or
if that would be possible at all.

Is there maybe some way to install manpages? (I’d retain them
optionally, so the user would have to install it specifically.)

Robert H. wrote in post #1184849:

Lately I found this:

http://boredzo.org/blog/archives/2016-08-15/colorized-man-pages-understood-and-customized

Nice colours for manpages.

But I was thinking… would it be possible to have or use manpages in a
gem too,

see :
https://github.com/sunaku/md2man

It use redcarpet:
https://github.com/vmg/redcarpet

Wich code a manPage generator :
https://github.com/vmg/redcarpet/blob/master/lib/redcarpet/render_man.rb

I am not sure that manpage is good format for tutorals :slight_smile:
perhaps a simple page with link to html/pdf doc should be ok.

This isn’t an answer, but this is a great question! I’m also interested
in any answer there may be.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs