def generate_html(rest_files): print('Generating html...') shutil.copyfile('include-top', 'include-top.inc') shutil.copyfile('include-bottom', 'include-bottom.inc') for rest_file in rest_files: print(' ' + rest_file) args = [ '--link-stylesheet', '--stylesheet-path=html/izpack.css', '--cloak-email-addresses', '%s.txt' % rest_file, 'html/%s.html' % rest_file ] publish(writer_name='html', argv=args)
def generate_xml(): print('Generating XML...') shutil.copyfile('include-empty', 'include-top.inc') shutil.copyfile('include-empty', 'include-bottom.inc') for rest_file in rest_files: print(' ' + rest_file) args = [ #'--indents', '--no-doctype', '%s.txt' % rest_file, 'xml/%s.xml'% rest_file ] publish(writer_name='xml', argv=args)
def generate_xml(): print('Generating XML...') shutil.copyfile('include-empty', 'include-top.inc') shutil.copyfile('include-empty', 'include-bottom.inc') for rest_file in rest_files: print(' ' + rest_file) args = [ #'--indents', '--no-doctype', '%s.txt' % rest_file, 'xml/%s.xml' % rest_file ] publish(writer_name='xml', argv=args)
def generate_latex(): print('Generating LaTeX for PDF output...') publish(writer_name='newlatex2e', argv=['pdf-version.txt', 'pdf/manual.tex'])
def generate_html(rest_files): print('Generating html...') for rest_file in rest_files: print(' ' + rest_file) publish(writer_name='html', argv=['%s.txt' % rest_file, 'html/%s.html' % rest_file])
def generate_latex(): print('Generating LaTeX for PDF output...') shutil.copyfile('include-empty', 'include-top.inc') shutil.copyfile('include-empty', 'include-bottom.inc') publish(writer_name='newlatex2e', argv=['pdf-version.txt', 'pdf/manual.tex'])
#!/usr/bin/env python # Author: David Goodger # Contact: [email protected] # Revision: $Revision: 1174 $ # Date: $Date: 2003-02-13 16:12:51 +0000 (Thu, 13 Feb 2003) $ # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing pseudo-XML. """ import locale try: locale.setlocale(locale.LC_ALL, '') except: pass from docutils.core import publish, default_description import OOdirectives description = ('Generates pseudo-XML from standalone reStructuredText ' 'sources (for testing purposes). ' + default_description) publish(description=description)
#!/usr/bin/env python # Author: David Goodger # Contact: [email protected] # Revision: $Revision$ # Date: $Date$ # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing pseudo-XML. """ import locale try: locale.setlocale(locale.LC_ALL, '') except: pass from docutils.core import publish, default_description import OOdirectives description = ('Generates pseudo-XML from standalone reStructuredText ' 'sources (for testing purposes). ' + default_description) publish(description=description)