You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cugraph-docs/source/_templates/sidebar-nav-bs.html
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,14 @@
10
10
That is correct for nested pages, where the sidebar should still show the
11
11
active section and its foldable children. For top-level section landing
12
12
pages, that output duplicates the primary navbar item in the sidebar, so we
13
-
render only the active section's child <ul> on those landing pages.
13
+
render only the active section's child <ul> on those landing pages. Orphaned
14
+
autosummary pages have no navigation parent, so they cannot generate a
15
+
section toctree and intentionally omit it.
14
16
#}
15
17
{% set show_nav_level = meta['html_theme.show_nav_level'] if (meta is defined and meta is not none and 'html_theme.show_nav_level' in meta) else theme_show_nav_level %}
16
18
{% set special_page = pagename == root_doc or pagename in ["genindex", "py-modindex", "search"] %}
17
-
{% if not special_page %}
19
+
{% set has_navigation_parent = parents is defined and parents %}
20
+
{% if not special_page and has_navigation_parent %}
0 commit comments