Merge pull request #1713 from IanLee1521/qs_config_reuse

Reduce the number of scattered quickstart config string replacements
This commit is contained in:
Georg Brandl 2015-02-07 16:05:10 +01:00
commit 90a0b6ec06

View File

@ -116,6 +116,7 @@ master_doc = '%(master_str)s'
# General information about the project. # General information about the project.
project = u'%(project_str)s' project = u'%(project_str)s'
copyright = u'%(copyright_str)s' copyright = u'%(copyright_str)s'
author = u'%(author_str)s'
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the
@ -286,7 +287,7 @@ latex_elements = {
# (source start file, target name, title, # (source start file, target name, title,
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
('%(master_str)s', '%(project_fn)s.tex', u'%(project_doc_texescaped_str)s', (master_doc, '%(project_fn)s.tex', u'%(project_doc_texescaped_str)s',
u'%(author_texescaped_str)s', 'manual'), u'%(author_texescaped_str)s', 'manual'),
] ]
@ -316,8 +317,8 @@ latex_documents = [
# One entry per manual page. List of tuples # One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [
('%(master_str)s', '%(project_manpage)s', u'%(project_doc_str)s', (master_doc, '%(project_manpage)s', u'%(project_doc_str)s',
[u'%(author_str)s'], 1) [author], 1)
] ]
# If true, show URL addresses after external links. # If true, show URL addresses after external links.
@ -330,8 +331,8 @@ man_pages = [
# (source start file, target name, title, author, # (source start file, target name, title, author,
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
('%(master_str)s', '%(project_fn)s', u'%(project_doc_str)s', (master_doc, '%(project_fn)s', u'%(project_doc_str)s',
u'%(author_str)s', '%(project_fn)s', 'One line description of project.', author, '%(project_fn)s', 'One line description of project.',
'Miscellaneous'), 'Miscellaneous'),
] ]
@ -353,13 +354,13 @@ EPUB_CONFIG = u'''
# -- Options for Epub output ---------------------------------------------- # -- Options for Epub output ----------------------------------------------
# Bibliographic Dublin Core info. # Bibliographic Dublin Core info.
epub_title = u'%(project_str)s' epub_title = project
epub_author = u'%(author_str)s' epub_author = author
epub_publisher = u'%(author_str)s' epub_publisher = author
epub_copyright = u'%(copyright_str)s' epub_copyright = copyright
# The basename for the epub file. It defaults to the project name. # The basename for the epub file. It defaults to the project name.
#epub_basename = u'%(project_str)s' #epub_basename = project
# The HTML theme for the epub output. Since the default themes are not optimized # The HTML theme for the epub output. Since the default themes are not optimized
# for small screen space, using the same theme for HTML and epub output is # for small screen space, using the same theme for HTML and epub output is