Skip to content

Commit

Permalink
DOC/BLD: fix --no-api option (pandas-dev#25209)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored and Pingviinituutti committed Feb 28, 2019
1 parent cf313c0 commit a7d81cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@
if (fname == 'index.rst'
and os.path.abspath(dirname) == source_path):
continue
elif pattern == '-api' and dirname == 'api':
elif pattern == '-api' and dirname == 'reference':
exclude_patterns.append(fname)
elif fname != pattern:
elif pattern != '-api' and fname != pattern:
exclude_patterns.append(fname)

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

0 comments on commit a7d81cc

Please sign in to comment.