def write_doc(self, docname, doctree): for node in doctree.traverse(nodes.reference): # add ``target=_blank`` attributes to external links if node.get('internal') is None and 'refuri' in node: node['target'] = '_blank' StandaloneHTMLBuilder.write_doc(self, docname, doctree)
def write_doc(self, docname, doctree): """Write one document file. This method is overwritten in order to fix fragment identifiers and to add visible external links. """ self.fix_ids(doctree) self.add_visible_links(doctree, self.config.epub_show_urls) StandaloneHTMLBuilder.write_doc(self, docname, doctree)
def write_doc(self, docname, doctree): # type: (unicode, nodes.Node) -> None """Write one document file. This method is overwritten in order to fix fragment identifiers and to add visible external links. """ self.fix_ids(doctree) self.add_visible_links(doctree, self.config.epub_show_urls) StandaloneHTMLBuilder.write_doc(self, docname, doctree)
def write_doc(self, docname, doctree): """Write one document file. This method is overwritten in order to fix fragment identifiers and to add visible external links. """ self.fix_ids(doctree) self.add_visible_links(doctree) return StandaloneHTMLBuilder.write_doc(self, docname, doctree)
def write_doc(self, docname, doctree): mathjax.counter = mathjax.ExpressionNumbers() StandaloneHTMLBuilder.write_doc(self, docname, doctree)