From 918baaa61e4255f8cabfc04360320a8e0c1acbb1 Mon Sep 17 00:00:00 2001 From: Pierrick Rambaud Date: Sat, 30 Nov 2024 11:49:23 +0100 Subject: [PATCH] docs: remove left side bar in API reference --- docs/_templates/python/class.rst | 2 ++ docs/_templates/python/function.rst | 2 ++ docs/_templates/python/method.rst | 2 ++ docs/_templates/python/module.rst | 2 ++ 4 files changed, 8 insertions(+) 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 }}