Skip to content

Commit f74aba6

Browse files
DOC/BLD: fix --no-api option (pandas-dev#25209)
1 parent b90bcb5 commit f74aba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@
9898
if (fname == 'index.rst'
9999
and os.path.abspath(dirname) == source_path):
100100
continue
101-
elif pattern == '-api' and dirname == 'api':
101+
elif pattern == '-api' and dirname == 'reference':
102102
exclude_patterns.append(fname)
103-
elif fname != pattern:
103+
elif pattern != '-api' and fname != pattern:
104104
exclude_patterns.append(fname)
105105

106106
with open(os.path.join(source_path, 'index.rst.template')) as f:

0 commit comments

Comments
 (0)