diff --git a/doc/make.py b/doc/make.py index 624ed67e4ee16..19be78a8101ce 100755 --- a/doc/make.py +++ b/doc/make.py @@ -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): diff --git a/doc/source/conf.py b/doc/source/conf.py index a46e8d234c081..2727a7ceb643b 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -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) diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template index ed1004379fed7..7fe26d68c6fd0 100644 --- a/doc/source/index.rst.template +++ b/doc/source/index.rst.template @@ -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 -%}