diff --git a/docs/_includes/f_sidebar_nav.html b/docs/_includes/f_sidebar_nav.html new file mode 100644 index 000000000..e0b1c187a --- /dev/null +++ b/docs/_includes/f_sidebar_nav.html @@ -0,0 +1,36 @@ + +{% if include.item.children %} + + + + {% assign pageurl = page.url | remove: '.html' %} + + {% capture capturechild %} + {% for child in include.item.children %} + + + {% assign active = "" %} + {% if pageurl == child.url %} + {% assign active = "active bd-sidenav-active" %} + {% endif %} + +
  • + {% assign childid = include.id | append: '_' | append: forloop.index %} + {% include f_sidebar_nav.html item=child id=childid %} +
  • + + {% endfor %} + {% endcapture %} + + {% assign show = "" %} + {% if capturechild contains 'bd-sidenav-active' %} + {% assign show = "show" %} + {% endif %} + + +{% else %} + + {{include.item.title}} +{% endif %} \ No newline at end of file diff --git a/docs/_includes/sidebar.html b/docs/_includes/sidebar.html index b665c478d..c52d76f49 100644 --- a/docs/_includes/sidebar.html +++ b/docs/_includes/sidebar.html @@ -1,37 +1,11 @@
    -
    \ No newline at end of file