File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 5858
5959# Extend settings from upstream
6060_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
6263 'distutils/_setuptools_disclaimer.rst' ,
6364 'includes/wasm-notavail.rst' ,
6465]
6768else :
6869 exclude_patterns = _exclude_patterns
6970
71+ # Extra extensions for our own documentation site
7072_extensions = [
7173 'sphinx_tabs.tabs' ,
7274 'sphinxemoji.sphinxemoji' ,
7375]
76+
7477if 'extensions' in globals ():
7578 extensions += _extensions
7679else :
8588 for path in overrides_paths .glob ('**/*.*' ):
8689 if path .name == 'README.rst' and path .parent == '.overrides' :
8790 continue
91+
8892 # Skip the files in the .overrides/logo directory
8993 # to avoid ln issues.
9094 if str (path .parent ).endswith ("logo" ):
9195 continue
96+
9297 destroot = str (path .parent ).replace ('.overrides' , '' ).lstrip ('/' )
9398 outputdir = Path ('cpython/Doc' ) / destroot / path .name
9499 os .system (f'ln -nfs `pwd`/{ path .parent } /{ path .name } { outputdir } ' )
You can’t perform that action at this time.
0 commit comments