Implement generation of contents and epub