Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
    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)
Esempio n. 4
0
    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)
Esempio n. 5
0
 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)
Esempio n. 6
0
 def write_doc(self, docname, doctree):
     mathjax.counter = mathjax.ExpressionNumbers()
     StandaloneHTMLBuilder.write_doc(self, docname, doctree)