diff options
author | Georg Brandl <georg@python.org> | 2014-10-29 07:41:02 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-29 07:41:02 (GMT) |
commit | 160cbce92adc3ccbe4ae6e231ea27fb5ff28dca9 (patch) | |
tree | ceeec64ece058d00549a8c1094d1ba23ad26ba9a /Doc/conf.py | |
parent | 8a91c5b9999adea77031caf7e96b419b67d8a386 (diff) | |
download | cpython-160cbce92adc3ccbe4ae6e231ea27fb5ff28dca9.zip cpython-160cbce92adc3ccbe4ae6e231ea27fb5ff28dca9.tar.gz cpython-160cbce92adc3ccbe4ae6e231ea27fb5ff28dca9.tar.bz2 |
Move Sphinx templates and extensions to their own subdirs.
Diffstat (limited to 'Doc/conf.py')
-rw-r--r-- | Doc/conf.py | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/Doc/conf.py b/Doc/conf.py index 8bf52f7..ca42f93 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -8,26 +8,18 @@ # that aren't pickleable (module imports are okay, they're removed automatically). import sys, os, time -sys.path.append(os.path.abspath('tools')) +sys.path.append(os.path.abspath('tools/extensions')) # General configuration # --------------------- extensions = ['sphinx.ext.coverage', 'sphinx.ext.doctest', 'pyspecific', 'c_annotations'] -templates_path = ['tools'] # General substitutions. project = 'Python' copyright = '1990-%s, Python Software Foundation' % time.strftime('%Y') -# The default replacements for |version| and |release|. -# -# The short X.Y version. -# version = '2.6' -# The full version, including alpha/beta/rc tags. -# release = '2.6a0' - # We look for the Include/patchlevel.h file in the current Python source tree # and replace the values accordingly. import patchlevel @@ -46,19 +38,6 @@ exclude_patterns = [ 'library/xml.etree.rst', ] -# Ignore .rst in Sphinx its self. -exclude_trees = ['tools/sphinx'] - -# 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 - # Require Sphinx 1.2 for build. needs_sphinx = '1.2' @@ -73,9 +52,8 @@ html_theme_options = {'collapsiblesidebar': True} # using the given strftime format. html_last_updated_fmt = '%b %d, %Y' -# If true, SmartyPants will be used to convert quotes and dashes to -# typographically correct entities. -html_use_smartypants = True +# Path to find HTML templates. +templates_path = ['tools/templates'] # Custom sidebar templates, filenames relative to this file. html_sidebars = { @@ -192,3 +170,9 @@ coverage_c_regexes = { coverage_ignore_c_items = { # 'cfunction': [...] } + +# Options for extensions +# ---------------------- + +# Relative filename of the reference count data file. +refcount_file = 'data/refcounts.dat' |