We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b82ef2 commit f92cff0Copy full SHA for f92cff0
conf.py
@@ -41,8 +41,14 @@
41
for fname in files:
42
if fname == 'README.rst' and root == '.overrides':
43
continue
44
- destroot = root.replace('.overrides/', '')
45
- os.system(f'ln -nfs `pwd`/{root}/{fname} cpython/Doc/{destroot}/{fname}')
+ destroot = root.replace('.overrides', '').lstrip('/')
+ outputdir = os.path.join(
46
+ 'cpython',
47
+ 'Doc',
48
+ destroot,
49
+ fname,
50
+ )
51
+ os.system(f'ln -nfs `pwd`/{root}/{fname} {outputdir}')
52
53
gettext_compact = False
54
locale_dirs = ['../locales', 'cpython/locales'] # relative to the sourcedir
0 commit comments