Beispiel #1
0
def default_latex_documents(config):
    # type: (Config) -> List[Tuple[str, str, str, str, str]]
    """ Better default latex_documents settings. """
    return [(config.master_doc,
             make_filename_from_project(config.project) + '.tex',
             texescape.escape_abbr(texescape.escape(config.project)),
             texescape.escape_abbr(texescape.escape(config.author)), 'manual')]
Beispiel #2
0
def default_texinfo_documents(
        config: Config
) -> List[Tuple[str, str, str, str, str, str, str]]:  # NOQA
    """ Better default texinfo_documents settings. """
    filename = make_filename_from_project(config.project)
    return [(config.root_doc, filename, config.project, config.author,
             filename, 'One line description of project', 'Miscellaneous')]
Beispiel #3
0
def default_latex_documents(config):
    # type: (Config) -> List[Tuple[str, str, str, str, str]]
    """ Better default latex_documents settings. """
    return [(config.master_doc,
             make_filename_from_project(config.project) + '.tex',
             texescape.escape_abbr(texescape.escape(config.project)),
             texescape.escape_abbr(texescape.escape(config.author)),
             'manual')]
Beispiel #4
0
def default_latex_documents(config: Config) -> List[Tuple[str, str, str, str, str]]:
    """ Better default latex_documents settings. """
    project = texescape.escape(config.project, config.latex_engine)
    author = texescape.escape(config.author, config.latex_engine)
    return [(config.master_doc,
             make_filename_from_project(config.project) + '.tex',
             texescape.escape_abbr(project),
             texescape.escape_abbr(author),
             config.latex_theme)]
Beispiel #5
0
def default_man_pages(config):
    # type: (Config) -> List[Tuple[str, str, str, List[str], int]]
    """ Better default man_pages settings. """
    filename = make_filename_from_project(config.project)
    return [(config.master_doc, filename,
             '%s %s' % (config.project, config.release), [config.author], 1)]
Beispiel #6
0
def default_htmlhelp_basename(config):
    # type: (Config) -> str
    """Better default htmlhelp_basename setting."""
    return make_filename_from_project(config.project) + 'doc'
Beispiel #7
0
def default_htmlhelp_basename(config):
    # type: (Config) -> str
    """Better default htmlhelp_basename setting."""
    return make_filename_from_project(config.project) + 'doc'
Beispiel #8
0
def default_man_pages(config):
    # type: (Config) -> List[Tuple[str, str, str, List[str], int]]
    """ Better default man_pages settings. """
    filename = make_filename_from_project(config.project)
    return [(config.master_doc, filename, '%s %s' % (config.project, config.release),
             [config.author], 1)]
Beispiel #9
0
def default_texinfo_documents(config):
    # type: (Config) -> List[Tuple[str, str, str, str, str, str, str]]
    """ Better default texinfo_documents settings. """
    filename = make_filename_from_project(config.project)
    return [(config.master_doc, filename, config.project, config.author, filename,
             'One line description of project', 'Miscellaneous')]
Beispiel #10
0
def default_texinfo_documents(config):
    # type: (Config) -> List[Tuple[unicode, unicode, unicode, unicode, unicode, unicode, unicode]]  # NOQA
    """ Better default texinfo_documents settings. """
    filename = make_filename_from_project(config.project)
    return [(config.master_doc, filename, config.project, config.author,
             filename, 'One line description of project', 'Miscellaneous')]