diff --git a/README.rst b/README.rst index 281615a..64ff574 100644 --- a/README.rst +++ b/README.rst @@ -22,11 +22,12 @@ Setup and Configuration 'site_name': '', \\ DEFAULTS TO "CloudDocs home" 'next_prev_link': True or False, \\ DEFAULTS TO FALSE 'html_last_updated_fmt': '%Y-%m-%d %H:%M:%S', \\ REQUIRED FOR FEDERATED SEARCH, DO NOT CHANGE - # 'surveymonkey_url' = '', \\ DEFAULTS TO "" - # 'medallia_embed_url' = '', \\ DEFAULTS TO "" + # 'surveymonkey_url' = '', \\ DEFAULTS TO '' + # 'medallia_embed_url' = '', \\ DEFAULTS TO '' # 'medallia_id' = '', \\ DEFAULTS TO "medallia_inline_survey" # 'feedback_exclude_pages': ['page.html'], \\ DEFAULTS TO ['index.html', 'search.html'], THE TABLE OF CONTENTS AND SEARCH PAGE - # 'base_url' = '' \\ DEFAULTS TO '/' + # 'base_url' = '' \\ DEFAULTS TO '/', + # 'sidebar_toc_maxdepth' = '' \\ DEFAULTS TO '', Override 'maxdepth' behavior on sidebar toc in layout.html. This is an integer value. } \ diff --git a/f5_sphinx_theme/__init__.py b/f5_sphinx_theme/__init__.py index a2f6160..5fa53fd 100644 --- a/f5_sphinx_theme/__init__.py +++ b/f5_sphinx_theme/__init__.py @@ -16,7 +16,7 @@ from os import path -__version__ = "2.2.3" +__version__ = "2.2.4" def get_html_theme_path(): diff --git a/f5_sphinx_theme/layout.html b/f5_sphinx_theme/layout.html index 3b5b4ff..c965faf 100644 --- a/f5_sphinx_theme/layout.html +++ b/f5_sphinx_theme/layout.html @@ -69,7 +69,7 @@
{{ project }} {{ version }}
{%- include "searchbox.html" %}
- {{ toctree(includehidden=True, collapse=True) }} + {{ toctree(includehidden=True, collapse=True, maxdepth=theme_sidebar_toc_maxdepth|int) }} {%- include "extralinks.html" %} diff --git a/f5_sphinx_theme/theme.conf b/f5_sphinx_theme/theme.conf index 6f89321..2c5e8d6 100644 --- a/f5_sphinx_theme/theme.conf +++ b/f5_sphinx_theme/theme.conf @@ -12,3 +12,4 @@ surveymonkey_url = medallia_embed_url = medallia_id = medallia_inline_survey feedback_exclude_pages = ['index.html', 'search.html'] +sidebar_toc_maxdepth =