From 89f79138c3eecbaee272e60f416095db4944cac0 Mon Sep 17 00:00:00 2001 From: Peter Mosses Date: Thu, 22 Aug 2019 21:37:11 +0200 Subject: [PATCH] Revert "Optional delay of grandchildren link display" This reverts commit 8ac545a5eb5da8e2ebe7dda1a8bffa9d94e88cc2. --- _config.yml | 3 --- _includes/nav.html | 2 -- docs/navigation-structure.md | 14 -------------- 3 files changed, 19 deletions(-) diff --git a/_config.yml b/_config.yml index 1d5164b..d12d439 100644 --- a/_config.yml +++ b/_config.yml @@ -27,9 +27,6 @@ search_enabled: true # Enable or disable heading anchors heading_anchors: true -# Restrict display of grandchildren to selected parent when true: -grandchildren_branch: false - # Aux links for the upper right navigation aux_links: "Just the Docs on GitHub": diff --git a/_includes/nav.html b/_includes/nav.html index 6ab2dbc..1c1dd2b 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -20,7 +20,6 @@ {%- endif -%} {{ child.title }} {%- if child.has_children -%} - {%- if page.url == child.url or page.parent == child.title or site.grandchildren_branch != true -%} {%- assign grand_children_list = site.html_pages | where: "parent", child.title | sort:"nav_order" -%} {%- endif -%} - {%- endif -%} {%- endfor -%} diff --git a/docs/navigation-structure.md b/docs/navigation-structure.md index cce9def..98107cf 100644 --- a/docs/navigation-structure.md +++ b/docs/navigation-structure.md @@ -191,20 +191,6 @@ This would create the following navigation structure: +-- .. ``` -The current default is that when a grandparent is selected, the links to its -children *and all its grandchildren* are displayed in the navigation menu. -So in the above example, selecting `UI Components` displays the link to -`Button Child Page` as well as the link to `Buttons`. - -Setting the following global option in `_config.yml` delays the display of links -to grandchildren until their parent is selected. So selecting `UI Components` -displays only the link to `Buttons`, and the link to `Button Child Page` is -displayed when `Buttons` is selected. - -``` -grandchildren_branch: true -``` - --- ## Auxiliary Navigation