Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4d3527a

Browse files
committed
Build fixed
1 parent3cef9cf commit4d3527a

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

‎conf.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
templates_path= ['cpython/Doc/tools/templates']
3434
html_static_path= ['cpython/Doc/tools/static']
3535

36-
extensions.append('sphinx_autorun')
37-
3836
os.system('mkdir -p cpython/locales/es/')
3937
os.system('ln -nfs `pwd` cpython/locales/es/LC_MESSAGES')
4038

@@ -107,3 +105,22 @@ def add_contributing_banner(app, doctree):
107105
app.srcdir='cpython/Doc'
108106

109107
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+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp