Skip to content

Commit

Permalink
DOC/BLD: fix --no-api option (#25209)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Feb 18, 2019
1 parent b90bcb5 commit f74aba6
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 f74aba6

Please sign in to comment.