mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
* First pass of tabs-based organization * Improvements * Second pass at tabs org * Move tab highlighting to Liquid instead of JS * Adding forwarding links for in-product TOCs * Move to pre-rendered left-navs instead of post-load JS for TOC sync * Optimizations and nosync-ing the Reference section * Optimizations, fix Cloud YAML * Make a "Sample applications" node * Tabs CSS fixes and 12-factor reposition * Fix auto-complete left-padding * Fix auto-complete right-padding (for symmetry) * Fix for no left-nav on Compose file * Fix weird wrapping on smaller screens for tabs * reorganized d4mac, d4win per tabs structure, split out install guides Signed-off-by: Victoria Bialas <victoria.bialas@docker.com> * Update reference urls to latest DDC version * Reintroduces changes ebe778b..9abc9e to TOC * Update allpagelinks.md * hid the on-page TOC's for d4mac d4win topics as needed Signed-off-by: Victoria Bialas <victoria.bialas@docker.com> * Add a Hopscotch tour of the new navigation
15 lines
651 B
HTML
15 lines
651 B
HTML
{% assign topicFound="false" %}
|
|
{% for section in site.data.toc.horizontalnav %}
|
|
{% assign activeCSS = "" %}
|
|
{% if topicFound=="false" %}
|
|
{% assign tree = site.data.toc[section.node] %}
|
|
{% capture thisSection %}{% include tree.html %}{% endcapture %}
|
|
{% if section.path == page.url or thisSection contains "active currentPage" %}
|
|
{% capture leftnav %}{{ thisSection }}{% endcapture %}
|
|
{% capture activeCSS %} class="active"{% endcapture %}
|
|
{% assign topicFound="true" %}
|
|
{% endif %}
|
|
{% endif %}
|
|
<li id="{{ section.node }}"{{ activeCSS }}><a href="{{ section.path }}">{{ section.title }}</a></li>
|
|
{% endfor %}
|