|
| 1 | +<div class="sidebar sidebar--sticky sidebar--scroll sidebar--dark"> |
| 2 | + <div class="sidebar__content"> |
| 3 | + <nav class="menu"> |
| 4 | + <ul class="menu__list list list--unstyle"> |
| 5 | + <li class="menu-item"> |
| 6 | + <a href="{{ site.baseurl }}/" class="menu-item__link menu-item__link--small menu-item__link--highlight menu-item__link--icon flex flex--middle"> |
| 7 | + <div class="menu-item__icon flex__column"> |
| 8 | + {% include icons/menu/icon-back.svg %} |
| 9 | + </div> |
| 10 | + |
| 11 | + <div class="flex__column">Back to Documentation</div> |
| 12 | + </a> |
| 13 | + </li> |
| 14 | + </ul> |
| 15 | + </nav> |
| 16 | + |
| 17 | + <nav class="menu"> |
| 18 | + <ul class="menu__list list list--unstyle"> |
| 19 | + <li class="menu-item menu-item--active"> |
| 20 | + <button class="menu-item__link menu-item__link--highlight menu-item__link--icon flex flex--middle"> |
| 21 | + <span class="menu-item__icon flex__column"> |
| 22 | + {% include icons/menu/icon-config-api.svg %} |
| 23 | + </span> |
| 24 | + |
| 25 | + <span class="flex__column">{{ site.data.sidenav.api.sections[0].section_title }}</span> |
| 26 | + </button> |
| 27 | + |
| 28 | + <ul class="menu-item__body"> |
| 29 | + {% for item in site.data.sidenav.api.sections[0].section %} |
| 30 | + {% assign currentPage = page.path | downcase | replace: "/index.md" "" | replace: ".md" "" %} |
| 31 | + {% assign currentPath = item.path | downcase | replace_first: "/" "" %} |
| 32 | + |
| 33 | + {% assign currentSectionPage = page.path | downcase | split: "/" %} |
| 34 | + {% assign currentSectionPath = item.slug | downcase %} |
| 35 | + {% capture currentSectionSlug %}{{ currentSectionPage[0] | downcase }}/{{ currentSectionPage[1] | downcase }}{% endcapture %} |
| 36 | + |
| 37 | + <li class="menu-item {% if item.section_title %}menu-item--gray{% else %}menu-item--green{% endif %} {% if currentPage == currentPath %}menu-item--active menu-item--indicator{% endif %}" data-accordion data-class-active="menu-item--active"> |
| 38 | + {% if item.path %} |
| 39 | + {% assign menuLink = site.baseurl | append: item.path | append: "/" %} |
| 40 | + {% if item.path contains "http://" or item.path contains "https://"%} |
| 41 | + {% assign menuLink = item.path %} |
| 42 | + {% endif %} |
| 43 | + <a class="menu-item__link {% if currentPage == currentPath or currentSectionSlug == currentSectionPath %}menu-item__link--indicator-large{% endif %} flex" href="{{ menuLink }}">{{ item.title }}</a> |
| 44 | + {% endif %} |
| 45 | + |
| 46 | + {% if item.section_title %} |
| 47 | + <button class="menu-item__link flex flex--middle flex--justify gutter gutter--small" data-ref="accordion[trigger]"> |
| 48 | + <span class="flex__column"> |
| 49 | + {{ item.section_title }} |
| 50 | + </span> |
| 51 | + |
| 52 | + <div class="menu-item__chevron flex__column flex__column--shrink"> |
| 53 | + {% include icons/symbols/chevron-down.svg %} |
| 54 | + </div> |
| 55 | + </button> |
| 56 | + |
| 57 | + <ul class="menu-item__body menu-item__body--nested" data-ref="accordion[body]"> |
| 58 | + {% for subsection in item.section %} |
| 59 | + {% assign currentPage = page.path | downcase | replace: "/index.md" "" | replace: ".md" "" %} |
| 60 | + {% assign currentPath = subsection.path | downcase | replace_first: "/" "" %} |
| 61 | + |
| 62 | + <li class="menu-item {% if currentPage == currentPath %}menu-item--active menu-item--indicator{% endif %}" data-accordion data-class-active="menu-item--active"> |
| 63 | + {% if subsection.path %} |
| 64 | + {% assign menuLink = site.baseurl | append: subsection.path | append: "/" %} |
| 65 | + {% if subsection.path contains "http://" or subsection.path contains "https://"%} |
| 66 | + {% assign menuLink = subsection.path %} |
| 67 | + {% endif %} |
| 68 | + <a class="menu-item__link menu-item__link--icon {% if currentPage == currentPath %}menu-item__link--indicator{% endif %} flex" href="{{menuLink}}"> |
| 69 | + {{ subsection.title }} |
| 70 | + {% if subsection.menu_icon %} |
| 71 | + <div class="menu-item__icon menu-item__icon--small menu-item__icon--right flex__column"> |
| 72 | + {% include icons/menu/icon-{{ subsection.menu_icon }}.svg %} |
| 73 | + </div> |
| 74 | + {% endif %} |
| 75 | + </a> |
| 76 | + {% endif %} |
| 77 | + |
| 78 | + {% if subsection.section_title %} |
| 79 | + <button class="menu-item__link flex flex--middle flex--justify gutter gutter--small" data-ref="accordion[trigger]"> |
| 80 | + <span class="flex__column"> |
| 81 | + {{ subsection.section_title }} |
| 82 | + </span> |
| 83 | + |
| 84 | + <div class="menu-item__chevron flex__column flex__column--shrink"> |
| 85 | + {% include icons/symbols/chevron-down.svg %} |
| 86 | + </div> |
| 87 | + </button> |
| 88 | + |
| 89 | + <ul class="menu-item__body menu-item__body--nested" data-ref="accordion[body]"> |
| 90 | + {% for subsubsection in subsection.section %} |
| 91 | + {% assign currentPage = page.path | downcase | replace: "/index.md" "" | replace: ".md" "" %} |
| 92 | + {% assign currentPath = subsubsection.path | downcase | replace_first: "/" "" %} |
| 93 | + |
| 94 | + <li class="menu-item"> |
| 95 | + <a class="menu-item__link flex" href="{{ site.baseurl }}{{ subsubsection.path }}/">{{ subsubsection.title }}</a> |
| 96 | + </li> |
| 97 | + {% endfor %} |
| 98 | + </ul> |
| 99 | + {% endif %} |
| 100 | + </li> |
| 101 | + {% endfor %} |
| 102 | + </ul> |
| 103 | + {% endif %} |
| 104 | + </li> |
| 105 | + {% endfor %} |
| 106 | + </ul> |
| 107 | + </li> |
| 108 | + </ul> |
| 109 | + </nav> |
| 110 | + </div> |
| 111 | +</div> |
0 commit comments