Skip to content

Commit

Permalink
add missing keywords to make_toctree
Browse files Browse the repository at this point in the history
rtd requires being able to pass through values for maxdepth and
includehidden, make the keywords available in the initial method even
though they will be subsequently ignored.
  • Loading branch information
phaustin authored and electrofelix committed Apr 10, 2017
1 parent d37efc6 commit 861f963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxcontrib/fulltoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def html_page_context(app, pagename, templatename, context, doctree):
if "toctree" not in context:
# json builder doesn't use toctree func, so nothing to replace
return
def make_toctree(collapse=True):
def make_toctree(collapse=True, maxdepth=-1, includehidden=True):
return get_rendered_toctree(app.builder,
pagename,
prune=False,
Expand Down

0 comments on commit 861f963

Please sign in to comment.