File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 58
58
59
59
# Extend settings from upstream
60
60
_exclude_patterns = [
61
- # This file is not included and it's not marked as :orphan:
61
+ # These file is not included and it's not marked as :orphan:
62
+ # These files are used in ".. include::" directives
62
63
'distutils/_setuptools_disclaimer.rst' ,
63
64
'includes/wasm-notavail.rst' ,
64
65
]
67
68
else :
68
69
exclude_patterns = _exclude_patterns
69
70
71
+ # Extra extensions for our own documentation site
70
72
_extensions = [
71
73
'sphinx_tabs.tabs' ,
72
74
'sphinxemoji.sphinxemoji' ,
73
75
]
76
+
74
77
if 'extensions' in globals ():
75
78
extensions += _extensions
76
79
else :
85
88
for path in overrides_paths .glob ('**/*.*' ):
86
89
if path .name == 'README.rst' and path .parent == '.overrides' :
87
90
continue
91
+
88
92
# Skip the files in the .overrides/logo directory
89
93
# to avoid ln issues.
90
94
if str (path .parent ).endswith ("logo" ):
91
95
continue
96
+
92
97
destroot = str (path .parent ).replace ('.overrides' , '' ).lstrip ('/' )
93
98
outputdir = Path ('cpython/Doc' ) / destroot / path .name
94
99
os .system (f'ln -nfs `pwd`/{ path .parent } /{ path .name } { outputdir } ' )
You can’t perform that action at this time.
0 commit comments