diff --git a/_data/menu.json b/_data/menu.json index e85826af2..ecfc62557 100644 --- a/_data/menu.json +++ b/_data/menu.json @@ -14,6 +14,11 @@ "permalink": "docs", "class": "docs" }, + { + "text": "SDK", + "permalink": "docs/sdk/", + "class": "sdk-section" + }, { "text": "About", "permalink": "about", diff --git a/_includes/header.liquid b/_includes/header.liquid index d28538f14..88bdc3841 100644 --- a/_includes/header.liquid +++ b/_includes/header.liquid @@ -1,3 +1,13 @@ +{%- comment -%} + One link is current. The SDK's pages sit inside the docs, so both entries + match them; the menu lists SDK after Docs, and the last match wins. +{%- endcomment -%} +{%- assign current_link = '' -%} +{%- for link in menu -%} + {%- if body_classes contains link.class -%} + {%- assign current_link = link.class -%} + {%- endif -%} +{%- endfor -%}