コード例 #1
0
ファイル: pavement.py プロジェクト: airhuman/learning_python3
def html(options):
    "Generate HTML files."
    set_templates(options.html.templates)
    if paverutils is None:
        raise RuntimeError('Could not find sphinxcontrib.paverutils, will not be able to build HTML output.')
    paverutils.html(options)
    return
コード例 #2
0
ファイル: pavement.py プロジェクト: xbee/pymotw
def html(options):
    "Generate HTML files."
    set_templates(options.html.templates)
    if paverutils is None:
        raise RuntimeError('Could not find sphinxcontrib.paverutils, will not be able to build HTML output.')
    paverutils.html(options)
    return
コード例 #3
0
ファイル: pavement.py プロジェクト: wvangeit/inspyred
def html(options):
    if paverutils is None:
        raise RuntimeError(
            'Could not find sphinxcontrib.paverutils, will not be able to build HTML output.'
        )
    paverutils.html(options)
    return
コード例 #4
0
ファイル: pavement.py プロジェクト: abddul/eyed3
def docs(options):
    '''Sphinx documenation'''
    if not paverutils:
        raise RuntimeError("Sphinxcontib.paverutils needed to make docs")
    sh("sphinx-apidoc -o ./docs/api ./src/eyed3/")
    paverutils.html(options)
    print("Docs: file://%s/%s/%s/html/index.html" %
          (os.getcwd(), options.docroot, options.builddir))
コード例 #5
0
ファイル: pavement.py プロジェクト: jonmetz/piHomeServer
def docs(options):
    '''Sphinx documenation'''
    if not paverutils:
        raise RuntimeError("Sphinxcontib.paverutils needed to make docs")
    sh("sphinx-apidoc -o ./docs/api ./src/eyed3/")
    paverutils.html(options)
    print("Docs: file://%s/%s/%s/html/index.html" %
          (os.getcwd(), options.docroot, options.builddir))
コード例 #6
0
ファイル: pavement.py プロジェクト: wangminsheng/pymotw3
def html(options):
    "Generate HTML files."
    # Override target translation configuration -locale- (see source/conf.py)
    language_code, encoding = locale.getdefaultlocale()
    if language_code and language_code != "C":
        options.config_args = {"language": language_code}
    paverutils.html(options)
    css(options)
    return
コード例 #7
0
ファイル: pavement.py プロジェクト: janstarke/eyed3
def docs(options):
    '''Sphinx documenation'''
    if not paverutils:
        raise RuntimeError("Sphinxcontib.paverutils needed to make docs")
    sh("sphinx-apidoc --force -o ./docs/api ./src/eyed3/")
    try:
        paverutils.html(options)
    except SystemExit as ex:
        if ex.code != 0:
            raise
    print("Docs: file://%s/%s/%s/html/index.html" %
          (os.getcwd(), options.docroot, options.builddir))
コード例 #8
0
ファイル: pavement.py プロジェクト: phantomas1234/inspyred
def html(options):
    if paverutils is None:
        raise RuntimeError('Could not find sphinxcontrib.paverutils, will not be able to build HTML output.')
    paverutils.html(options)
    return
コード例 #9
0
def html(options):
    "Generate HTML files."
    paverutils.html(options)
    css(options)
    return
コード例 #10
0
ファイル: pavement.py プロジェクト: xuxiaodong/PyMOTW-3-ZH
def html(options):
    "Generate HTML files."
    paverutils.html(options)
    css(options)
    return