|
8 | 8 | # that aren't pickleable (module imports are okay, they're removed automatically).
|
9 | 9 |
|
10 | 10 | import sys, os, time
|
11 |
| -sys.path.append(os.path.abspath('tools')) |
| 11 | +sys.path.append(os.path.abspath('tools/extensions')) |
12 | 12 |
|
13 | 13 | # General configuration
|
14 | 14 | # ---------------------
|
15 | 15 |
|
16 | 16 | extensions = ['sphinx.ext.coverage', 'sphinx.ext.doctest',
|
17 | 17 | 'pyspecific', 'c_annotations']
|
18 |
| -templates_path = ['tools'] |
19 | 18 |
|
20 | 19 | # General substitutions.
|
21 | 20 | project = 'Python'
|
22 | 21 | copyright = '1990-%s, Python Software Foundation' % time.strftime('%Y')
|
23 | 22 |
|
24 |
| -# The default replacements for |version| and |release|. |
25 |
| -# |
26 |
| -# The short X.Y version. |
27 |
| -# version = '2.6' |
28 |
| -# The full version, including alpha/beta/rc tags. |
29 |
| -# release = '2.6a0' |
30 |
| - |
31 | 23 | # We look for the Include/patchlevel.h file in the current Python source tree
|
32 | 24 | # and replace the values accordingly.
|
33 | 25 | import patchlevel
|
|
46 | 38 | 'library/xml.etree.rst',
|
47 | 39 | ]
|
48 | 40 |
|
49 |
| -# Ignore .rst in Sphinx its self. |
50 |
| -exclude_trees = ['tools/sphinx'] |
51 |
| - |
52 |
| -# Relative filename of the reference count data file. |
53 |
| -refcount_file = 'data/refcounts.dat' |
54 |
| - |
55 |
| -# If true, '()' will be appended to :func: etc. cross-reference text. |
56 |
| -add_function_parentheses = True |
57 |
| - |
58 |
| -# If true, the current module name will be prepended to all description |
59 |
| -# unit titles (such as .. function::). |
60 |
| -add_module_names = True |
61 |
| - |
62 | 41 | # Require Sphinx 1.2 for build.
|
63 | 42 | needs_sphinx = '1.2'
|
64 | 43 |
|
|
73 | 52 | # using the given strftime format.
|
74 | 53 | html_last_updated_fmt = '%b %d, %Y'
|
75 | 54 |
|
76 |
| -# If true, SmartyPants will be used to convert quotes and dashes to |
77 |
| -# typographically correct entities. |
78 |
| -html_use_smartypants = True |
| 55 | +# Path to find HTML templates. |
| 56 | +templates_path = ['tools/templates'] |
79 | 57 |
|
80 | 58 | # Custom sidebar templates, filenames relative to this file.
|
81 | 59 | html_sidebars = {
|
|
192 | 170 | coverage_ignore_c_items = {
|
193 | 171 | # 'cfunction': [...]
|
194 | 172 | }
|
| 173 | + |
| 174 | +# Options for extensions |
| 175 | +# ---------------------- |
| 176 | + |
| 177 | +# Relative filename of the reference count data file. |
| 178 | +refcount_file = 'data/refcounts.dat' |
0 commit comments