コード例 #1
0
ファイル: directives.py プロジェクト: quytelda/focs
    def render(self, nodes, document):

        new_document = document.copy()

        new_document.children = nodes

        writer = TextWriter(TextBuilder(self.app))
        output = writer.write(new_document, FakeDestination())

        return output.strip()
コード例 #2
0
ファイル: markdown_builder.py プロジェクト: Abstrys/rst2db
 def __init__(self, app):
     TextBuilder.__init__(self, app)
     self.out_suffix = '.md'
コード例 #3
0
ファイル: builder.py プロジェクト: nishio/rst2inao
 def finish(self):
     self.copy_image_files()
     return TextBuilder.finish(self)
コード例 #4
0
ファイル: builder.py プロジェクト: nishio/rst2inao
 def write_doc(self, docname, doctree):
     self.imgpath = relative_uri(self.get_target_uri(docname), '_images')
     self.post_process_images(doctree)
     self.current_docname = docname
     return TextBuilder.write_doc(self, docname, doctree)
コード例 #5
0
 def finish(self):
     self.copy_image_files()
     return TextBuilder.finish(self)
コード例 #6
0
 def write_doc(self, docname, doctree):
     self.imgpath = relative_uri(self.get_target_uri(docname), '_images')
     self.post_process_images(doctree)
     self.current_docname = docname
     return TextBuilder.write_doc(self, docname, doctree)