This is *really* sloppy, but I wanted to see if it was an OK idea.

I want to be able to take the Mojolicious documentation on the go, on my
Kindle, as a single page Book.  I tried Perlybook, but the Docs were out of
order.

So I forked M::P::PODRenderer to M::P::PODBook
<https://github.com/s1037989/Mojolicious-Plugin-PODBook>.  Now it starts
with /perldoc and, based on the CSS selectors I pass as the configuration,
it extracts the "Table of Contents" and grabs each "Chapter" of the
Mojolicious Book in order as listed and puts it all onto a single HTML
page.  It's a 517 page book, BTW.

Of importance is that all the links to the book itself work.  Any link not
to the book I didn't pay attention to so I think those links work, too.
But the point was to have the book on my Kindle and be able to jump through
the references.

My modifications are sloppy and probably the way I handle configuration is
sloppy, but it gave me what I wanted.  I didn't get it to work for any POD
not Mojolicious, but I didn't try hard.  It'd be a worthwhile exercise to
make it work for any POD so that a book could be generated.

Anyway, I got the book generated that I wanted and that's all that really
matters.  Is this something worthwhile beyond this one time usage?

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to