title_body: How to build an epub starting from a bunch of HTML files? I have a number of short HTML files (actually they are XHTML) with small problems and answers, which I post on my blog every Sunday, and I'd like to merge some of them in an ebook.
  I already did it once, just by stripping the headers and footers and merging them together; then I create the epub skeleton with Calibre and tweaked it with Sigil. But since there are a lot of internal links, it is a time-consuming process.
  
  Is there a simpler way?
upvoted_answer: I assume you don't write the HTML directly, but use something like MarkDown or reST. But even if you do, you should look at Pandoc.
  
  The program can read HTML and generate EPUB 2 or EPUB 3 (among others).