'Write one document file.
This method is overwritten in order to fix fragment identifiers
and to add visible external links.'

def write_doc(self, docname, doctree):

    self.fix_ids(doctree)
    self.add_visible_links(doctree, self.config.epub_show_urls)
    StandaloneHTMLBuilder.write_doc(self, docname, doctree)
