diff --git a/tripy/docs/_templates/layout.html b/tripy/docs/_templates/layout.html
new file mode 100644
index 000000000..1a0b7a62a
--- /dev/null
+++ b/tripy/docs/_templates/layout.html
@@ -0,0 +1,5 @@
+
+{% block sidebartoc %}
+
{{ _('Table Of Contents') }}
+{{ toctree(includehidden=True) }}
+{% endblock %}
diff --git a/tripy/docs/conf.py b/tripy/docs/conf.py
index 957f1bfa2..b4866a8c2 100644
--- a/tripy/docs/conf.py
+++ b/tripy/docs/conf.py
@@ -84,6 +84,8 @@
# The master toctree document.
master_doc = "index"
+templates_path = ["_templates"]
+
# General information about the project.
project = "Tripy"
copyright = "2024, NVIDIA"
diff --git a/tripy/docs/generate_rsts.py b/tripy/docs/generate_rsts.py
index 48862319b..7faa6f138 100644
--- a/tripy/docs/generate_rsts.py
+++ b/tripy/docs/generate_rsts.py
@@ -136,6 +136,7 @@ def add_guide_set(guide_set):
dedent(
f"""
.. toctree::
+ :hidden:
:caption: {guide_set.title}
:maxdepth: 1
"""
@@ -152,6 +153,7 @@ def add_guide_set(guide_set):
dedent(
f"""
.. toctree::
+ :hidden:
:caption: API Reference
:maxdepth: 1
"""
@@ -309,7 +311,7 @@ def str_from_hierarchy(obj):
print(f"Generating documentation hierarchy:\n{str_from_hierarchy(doc_hierarcy)}")
- EXCLUDE_DIRS = ["_static"]
+ EXCLUDE_DIRS = ["_static", "_templates"]
guide_sets: List[GuideSet] = []
guide_dirs = list(