Update docs for mobile.

This commit is contained in:
Keyser H
2019-04-18 22:33:02 +09:00
parent 626ea1b168
commit 82e61273f3
10 changed files with 156 additions and 138 deletions
+40 -27
View File
@@ -12,43 +12,56 @@
{{end}}
<!-- product dropdown -->
<ul class="side-menus-wrap">
<li class="">
<a href="{{ ($.Scratch.Get "topLevel").Permalink }}" class="">
<span class="">
{{ range $product := $.Site.Sections }}
{{ range $version := .Sections }}
{{ range $language := .Sections }}
{{if $.CurrentSection}}
{{ if .IsAncestor $.CurrentSection }}
{{ .Params.shortTitle }}
<div class="side-menus-container product-select jquery-accordion-menu">
<ul class="side-menus-wrap">
<li class="">
<a href="{{ ($.Scratch.Get "topLevel").Permalink }}" class="">
<span class="">
{{ range $product := $.Site.Sections }}
{{ range $version := .Sections }}
{{ range $language := .Sections }}
{{if $.CurrentSection}}
{{ if .IsAncestor $.CurrentSection }}
{{ .Params.shortTitle }}
{{end}}
{{end}}
{{end}}
{{end}}
{{end}}
{{end}}
</span>
</a>
</span>
</a>
<ul class="submenu submenus-wrap">
{{ range $product := $.Site.Sections }}
{{ range $version := .Sections }}
{{ range $language := .Sections }}
<li><a href="{{ .Permalink }}">{{ .Params.shortTitle }}</a></li>
{{ if .Params.insertonesix }}
<li><a href="https://rancher.com/docs/rancher/v1.6/en/" target="blank">Rancher 1.6</a></li>
<ul class="submenu submenus-wrap">
{{ range $product := $.Site.Sections }}
{{ range $version := .Sections }}
{{ range $language := .Sections }}
<li><a href="{{ .Permalink }}">{{ .Params.shortTitle }}</a></li>
{{ if .Params.insertonesix }}
<li><a href="https://rancher.com/docs/rancher/v1.6/en/" target="blank">Rancher 1.6</a></li>
{{end}}
{{end}}
{{end}}
{{end}}
{{end}}
</ul>
</li>
</ul>
</ul>
</li>
</ul>
</div>
<ul class="side-menus-wrap second">
<!-- {{ template "section-tree-nav" ($.Scratch.Get "secondLevel") }} -->
<div class="guide-menus-activator">
Quick start guides
<span class="indicator">
<span class="object1"></span>
<span class="object2"></span>
<span class="object3"></span>
</span>
</div>
<div class="side-menus-container guide-menus jquery-accordion-menu">
<ul class="side-menus-wrap second">
{{ template "section-tree-nav" ($.Scratch.Get "topLevel") }}
</ul>
</ul>
</div>
{{ define "section-tree-nav" }}
{{ range .Sections}}