Beispiel #1
0
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
Beispiel #2
0
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
Beispiel #3
0
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
Beispiel #4
0
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))
Beispiel #5
0
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))
Beispiel #6
0
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
Beispiel #7
0
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))
Beispiel #8
0
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
Beispiel #9
0
def html(options):
    "Generate HTML files."
    paverutils.html(options)
    css(options)
    return
Beispiel #10
0
def html(options):
    "Generate HTML files."
    paverutils.html(options)
    css(options)
    return