Skip to content

Commit

Permalink
DOC: fix no autosummary for numerical index api pages (#17642)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Sep 26, 2017
1 parent 7e87385 commit b5842bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/sphinxext/numpydoc/numpydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ def mangle_docstrings(app, what, name, obj, options, lines,
)

# PANDAS HACK (to remove the list of methods/attributes for Categorical)
if what == "class" and (name.endswith(".Categorical") or
name.endswith("CategoricalIndex") or
name.endswith("IntervalIndex")):
no_autosummary = [".Categorical", "CategoricalIndex", "IntervalIndex",
"RangeIndex", "Int64Index", "UInt64Index",
"Float64Index"]
if what == "class" and any(name.endswith(n) for n in no_autosummary):
cfg['class_members_list'] = False

if what == 'module':
Expand Down

0 comments on commit b5842bb

Please sign in to comment.