My document conversion process for my website so far can be outlined as follows:
1. Convert AO3 HTML to my own custom HTML formatting manually. Requirement: must be proficient in HTML. Knowing some CSS is necessary too, but a stylesheet like
simple.css can help a lot.
2. Convert the custom-formatted HTML to a LibreOffice odt file.
3. Add page breaks as appropriate in front matter, delete HTML Table Of Contents and add autogenerated LibreOffice Table of Contents, add Title Pages (front and index pages), and add page numbers.
4. Convert to PDF. In LibreOffice, select File -> Export As -> Export as PDF -> General. Then check the Universal Accessibility (PDF/UA) checkbox. This will help to point out some types of accessibility issues.
5. Convert to epub. In LibreOffice, select File -> Export as EPUB. Alternately, open the odt file in Calibre, choose Convert Books->Convert individually and then fill out the
epub conversion options described here.
NOTE: While LibreOffice can also produce HTML pages from odt files, the HTML produced is not very amenable to manual editing, and I suspect tends to not be very accessible. This is why I manually edit my HTML instead.