Skip to content

Commit 68151c5

Browse files
committed
Make the build to use the proper sourcedir
1 parent e323a8f commit 68151c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
html_split_index = True
9191

9292
# Relative filename of the reference count data file.
93-
refcount_file = 'cpython/Doc/data/refcounts.dat'
93+
refcount_file = 'data/refcounts.dat'
9494

9595

9696
os.system('mkdir -p cpython/locales/es/')
@@ -99,3 +99,8 @@
9999

100100
gettext_compact = False
101101
locale_dirs = ['cpython/locales']
102+
103+
104+
def setup(app):
105+
# Change the sourcedir programmatically because Read the Docs always call it with `.`
106+
app.srcdir = 'cpython/Doc'

0 commit comments

Comments
 (0)