mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Adapt to latest doctools refactoring.
This commit is contained in:
parent
4a11a06d12
commit
dd76e05dd9
2 changed files with 77 additions and 6 deletions
15
Doc/conf.py
15
Doc/conf.py
|
@ -7,23 +7,27 @@
|
|||
# The contents of this file are pickled, so don't put values in the namespace
|
||||
# that aren't pickleable (module imports are okay, they're removed automatically).
|
||||
|
||||
import sys, os, time
|
||||
sys.path.append('tools/sphinxext')
|
||||
|
||||
# General configuration
|
||||
# ---------------------
|
||||
|
||||
# General substitutions.
|
||||
project = 'Python'
|
||||
copyright = '1990-2007, Python Software Foundation'
|
||||
copyright = '1990-%s, Python Software Foundation' % time.strftime('%Y')
|
||||
|
||||
# The default replacements for |version| and |release|.
|
||||
# If '<auto>', Sphinx looks for the Include/patchlevel.h file in the current Python
|
||||
# source tree and replaces the values accordingly.
|
||||
#
|
||||
# The short X.Y version.
|
||||
# version = '2.6'
|
||||
version = '<auto>'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
# release = '2.6a0'
|
||||
release = '<auto>'
|
||||
|
||||
# We look for the Include/patchlevel.h file in the current Python source tree
|
||||
# and replace the values accordingly.
|
||||
import patchlevel
|
||||
version, release = patchlevel.get_version_info()
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
|
@ -118,7 +122,6 @@ latex_documents = [
|
|||
'What\'s New in Python', 'A. M. Kuchling', 'howto'),
|
||||
]
|
||||
# Collect all HOWTOs individually
|
||||
import os
|
||||
latex_documents.extend(('howto/' + fn, 'howto-' + fn[:-4] + '.tex',
|
||||
'HOWTO', _stdauthor, 'howto')
|
||||
for fn in os.listdir('howto')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue