diff --git a/docs/_templates/python/class.rst b/docs/_templates/python/class.rst index df0282aa..77963fbc 100644 --- a/docs/_templates/python/class.rst +++ b/docs/_templates/python/class.rst @@ -1,5 +1,7 @@ {% if obj.display %} {% if is_own_page %} +:html_theme.sidebar_secondary.remove: + {{ obj.id.split(".")[-1] }} {{ "=" * obj.id.split(".")[-1] | length }} diff --git a/docs/_templates/python/function.rst b/docs/_templates/python/function.rst index fa7e5f18..3381ee4f 100644 --- a/docs/_templates/python/function.rst +++ b/docs/_templates/python/function.rst @@ -1,5 +1,7 @@ {% if obj.display %} {% if is_own_page %} +:html_theme.sidebar_secondary.remove: + {{ obj.id.split(".")[-1] }} {{ "=" * obj.id.split(".")[-1] | length }} diff --git a/docs/_templates/python/method.rst b/docs/_templates/python/method.rst index 511a2435..b7cc9721 100644 --- a/docs/_templates/python/method.rst +++ b/docs/_templates/python/method.rst @@ -1,5 +1,7 @@ {% if obj.display %} {% if is_own_page %} +:html_theme.sidebar_secondary.remove: + {{ obj.id.split(".")[-1] }} {{ "=" * obj.id.split(".")[-1] | length }} diff --git a/docs/_templates/python/module.rst b/docs/_templates/python/module.rst index a5b76f13..d45d1945 100644 --- a/docs/_templates/python/module.rst +++ b/docs/_templates/python/module.rst @@ -1,5 +1,7 @@ {% if obj.display %} {% if is_own_page %} +:html_theme.sidebar_secondary.remove: + {{ obj.id.split(".")[-1] }} {{ "=" * obj.id.split(".")[-1] | length }}