コード例 #1
0
ファイル: htmlhelp.py プロジェクト: akhildp/newDoc
    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)
コード例 #2
0
ファイル: htmlhelp.py プロジェクト: Felix-neko/sphinx
    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)
コード例 #3
0
ファイル: epub.py プロジェクト: kafura0/OranKids
    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)
コード例 #4
0
ファイル: _epub_base.py プロジェクト: LFYG/sphinx
    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)
コード例 #5
0
ファイル: epub.py プロジェクト: simonwex/betafarm
 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)
コード例 #6
0
ファイル: hooktail.py プロジェクト: nnabeyang/hooktail_docs
 def write_doc(self, docname, doctree):
     mathjax.counter = mathjax.ExpressionNumbers()
     StandaloneHTMLBuilder.write_doc(self, docname, doctree)