|
33 | 33 | templates_path= ['cpython/Doc/tools/templates']
|
34 | 34 | html_static_path= ['cpython/Doc/tools/static']
|
35 | 35 |
|
36 |
| -extensions.append('sphinx_autorun') |
37 |
| - |
38 | 36 | os.system('mkdir -p cpython/locales/es/')
|
39 | 37 | os.system('ln -nfs `pwd` cpython/locales/es/LC_MESSAGES')
|
40 | 38 |
|
@@ -107,3 +105,22 @@ def add_contributing_banner(app, doctree):
|
107 | 105 | app.srcdir='cpython/Doc'
|
108 | 106 |
|
109 | 107 | app.connect('doctree-read',add_contributing_banner)
|
| 108 | + |
| 109 | +# Import the sphinx-autorun manually to avoid this warning |
| 110 | +# TODO: Remove this code and use just ``extensions.append('sphinx_autorun')`` when |
| 111 | +# that issue gets fixed |
| 112 | +# See https://github.com/WhyNotHugo/sphinx-autorun/issues/17 |
| 113 | + |
| 114 | +# WARNING: the sphinx_autorun extension does not declare if it is safe for |
| 115 | +# parallel reading, assuming it isn't - please ask the extension author to |
| 116 | +# check and make it explicit |
| 117 | +# WARNING: doing serial read |
| 118 | +fromsphinx_autorunimportRunBlock,AutoRun |
| 119 | +app.add_directive('runblock',RunBlock) |
| 120 | +app.connect('builder-inited',AutoRun.builder_init) |
| 121 | +app.add_config_value('autorun_languages',AutoRun.config,'env') |
| 122 | +return { |
| 123 | +'version':'0.1', |
| 124 | +'parallel_read_safe':True, |
| 125 | +'parallel_write_safe':True, |
| 126 | + } |