I have a bunch of intertwingled HTML web pages that I want to convert to EPUB format.
For instance the index page is at
While the chapters linked from the index pages are in
Also some images and formatting files are in
Is there a tool to download and convert recursively the documentation, passing those specific constraints, into epub format?
I can download the pages with httrack like so:
httrack http://example.com/documentation/index/index.html +http://example.com/documentation/index/* +http://example.com/documentation/chapters/* +http://example.com/css/* +http://example.com/img/*
… and convert the HTML pages to XHTML using tidy-html5
tidy -asxhtml -numeric < index.html > index.xhml
but I still haven’t found a tool to convert the entire tree into EPUB at once.
Also, tried Calibre once but the UI is unfriendly, so I really didn’t try to get a grasp of that tool. If I have to learn the Calibre UI, I rather prefer to write a bash script to do the job.