Skip to content

Commit

Permalink
DOC: Fix building of a single API document (#24506)
Browse files Browse the repository at this point in the history
  • Loading branch information
datapythonista authored and jreback committed Dec 30, 2018
1 parent c4ac0d6 commit fce9ccf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, num_jobs=0, include_api=True, single_doc=None,
if single_doc and single_doc.endswith('.rst'):
self.single_doc_html = os.path.splitext(single_doc)[0] + '.html'
elif single_doc:
self.single_doc_html = 'generated/pandas.{}.html'.format(
self.single_doc_html = 'api/generated/pandas.{}.html'.format(
single_doc)

def _process_single_doc(self, single_doc):
Expand Down
3 changes: 1 addition & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@
if (fname == 'index.rst'
and os.path.abspath(dirname) == source_path):
continue
elif (pattern == '-api'
and (fname == 'api.rst' or dirname == 'generated')):
elif pattern == '-api' and dirname == 'api':
exclude_patterns.append(fname)
elif fname != pattern:
exclude_patterns.append(fname)
Expand Down
2 changes: 1 addition & 1 deletion doc/source/index.rst.template
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ See the package overview for more detail about what's in the library.
{{ single_doc[:-4] }}
{% elif single_doc %}
.. autosummary::
:toctree: generated/
:toctree: api/generated/

{{ single_doc }}
{% else -%}
Expand Down

0 comments on commit fce9ccf

Please sign in to comment.