mirror of https://github.com/python/cpython
merge with 3.4
This commit is contained in:
commit
fa7a2953cc
25
Doc/conf.py
25
Doc/conf.py
|
@ -14,7 +14,6 @@ sys.path.append(os.path.abspath('tools'))
|
||||||
|
|
||||||
extensions = ['sphinx.ext.coverage', 'sphinx.ext.doctest',
|
extensions = ['sphinx.ext.coverage', 'sphinx.ext.doctest',
|
||||||
'pyspecific', 'c_annotations']
|
'pyspecific', 'c_annotations']
|
||||||
templates_path = ['tools']
|
|
||||||
|
|
||||||
# General substitutions.
|
# General substitutions.
|
||||||
project = 'Python'
|
project = 'Python'
|
||||||
|
@ -31,16 +30,6 @@ today = ''
|
||||||
# Else, today_fmt is used as the format for a strftime call.
|
# Else, today_fmt is used as the format for a strftime call.
|
||||||
today_fmt = '%B %d, %Y'
|
today_fmt = '%B %d, %Y'
|
||||||
|
|
||||||
# Relative filename of the reference count data file.
|
|
||||||
refcount_file = 'data/refcounts.dat'
|
|
||||||
|
|
||||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
|
||||||
add_function_parentheses = True
|
|
||||||
|
|
||||||
# If true, the current module name will be prepended to all description
|
|
||||||
# unit titles (such as .. function::).
|
|
||||||
add_module_names = True
|
|
||||||
|
|
||||||
# By default, highlight as Python 3.
|
# By default, highlight as Python 3.
|
||||||
highlight_language = 'python3'
|
highlight_language = 'python3'
|
||||||
|
|
||||||
|
@ -51,19 +40,20 @@ needs_sphinx = '1.2'
|
||||||
# Options for HTML output
|
# Options for HTML output
|
||||||
# -----------------------
|
# -----------------------
|
||||||
|
|
||||||
|
# Use our custom theme.
|
||||||
html_theme = 'pydoctheme'
|
html_theme = 'pydoctheme'
|
||||||
html_theme_path = ['tools']
|
html_theme_path = ['tools']
|
||||||
html_theme_options = {'collapsiblesidebar': True}
|
html_theme_options = {'collapsiblesidebar': True}
|
||||||
|
|
||||||
|
# Short title used e.g. for <title> HTML tags.
|
||||||
html_short_title = '%s Documentation' % release
|
html_short_title = '%s Documentation' % release
|
||||||
|
|
||||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||||
# using the given strftime format.
|
# using the given strftime format.
|
||||||
html_last_updated_fmt = '%b %d, %Y'
|
html_last_updated_fmt = '%b %d, %Y'
|
||||||
|
|
||||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
# Path to find HTML templates.
|
||||||
# typographically correct entities.
|
templates_path = ['tools']
|
||||||
html_use_smartypants = True
|
|
||||||
|
|
||||||
# Custom sidebar templates, filenames relative to this file.
|
# Custom sidebar templates, filenames relative to this file.
|
||||||
html_sidebars = {
|
html_sidebars = {
|
||||||
|
@ -145,6 +135,7 @@ latex_appendices = ['glossary', 'about', 'license', 'copyright']
|
||||||
# Get LaTeX to handle Unicode correctly
|
# Get LaTeX to handle Unicode correctly
|
||||||
latex_elements = {'inputenc': r'\usepackage[utf8x]{inputenc}', 'utf8extra': ''}
|
latex_elements = {'inputenc': r'\usepackage[utf8x]{inputenc}', 'utf8extra': ''}
|
||||||
|
|
||||||
|
|
||||||
# Options for the coverage checker
|
# Options for the coverage checker
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
|
||||||
|
@ -180,3 +171,9 @@ coverage_c_regexes = {
|
||||||
coverage_ignore_c_items = {
|
coverage_ignore_c_items = {
|
||||||
# 'cfunction': [...]
|
# 'cfunction': [...]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Options for extensions
|
||||||
|
# ----------------------
|
||||||
|
|
||||||
|
# Relative filename of the reference count data file.
|
||||||
|
refcount_file = 'data/refcounts.dat'
|
||||||
|
|
Loading…
Reference in New Issue