示例#1
0
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)
示例#2
0
文件: build.py 项目: AlfiyaZi/izpack
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)
示例#3
0
文件: build.py 项目: thauser/izpack-5
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)
示例#4
0
文件: build.py 项目: AlfiyaZi/izpack
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)
示例#5
0
def generate_latex():
	print('Generating LaTeX for PDF output...')
	publish(writer_name='newlatex2e', argv=['pdf-version.txt', 'pdf/manual.tex'])
示例#6
0
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])
示例#7
0
文件: build.py 项目: AlfiyaZi/izpack
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'])
示例#8
0
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'])
示例#9
0
#!/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)
示例#10
0
#!/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)