diff options
author | Adin Scannell <ascannell@google.com> | 2019-11-18 13:40:27 -0800 |
---|---|---|
committer | Adin Scannell <ascannell@google.com> | 2020-04-21 12:00:59 -0700 |
commit | 957e26a6f30d40e2bff042d76a327d0a2cfbabae (patch) | |
tree | 3e95d46355585ae4661de5cef30cdca72a7c94bb /themes/docsy/layouts/partials/sidebar-tree.html | |
parent | dc2f198866c5fd8162a79978eb3633975d3ba11f (diff) |
Move website to a simpler jekyll-based template
This will allow us to merge the site into the main repository.
This merge allows the documentation to be kept up-to-date and
synchronized with the main project. Builds will be triggered on any
update, removing the need for the cron-based reploy.
Diffstat (limited to 'themes/docsy/layouts/partials/sidebar-tree.html')
-rw-r--r-- | themes/docsy/layouts/partials/sidebar-tree.html | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/themes/docsy/layouts/partials/sidebar-tree.html b/themes/docsy/layouts/partials/sidebar-tree.html deleted file mode 100644 index a3eeb2a45..000000000 --- a/themes/docsy/layouts/partials/sidebar-tree.html +++ /dev/null @@ -1,47 +0,0 @@ -{{/* We cache this partial for bigger sites and set the active class client side. */}} -{{ $shouldDelayActive := ge (len .Site.Pages) 2000 }} -<div id="td-sidebar-menu" class="td-sidebar__inner{{ if $shouldDelayActive }} d-none{{ end }}"> - {{ if not .Site.Params.ui.sidebar_search_disable }} - <form class="td-sidebar__search d-flex align-items-center"> - {{ partial "search-input.html" . }} - <button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type="button" data-toggle="collapse" data-target="#td-section-nav" aria-controls="td-docs-nav" aria-expanded="false" aria-label="Toggle section navigation"> - </button> - </form> - {{ end }} - <nav class="collapse td-sidebar-nav pt-2 pl-4" id="td-section-nav"> - {{ if (gt (len .Site.Home.Translations) 0) }} - <div class="nav-item dropdown d-block d-lg-none"> - {{ partial "navbar-lang-selector.html" . }} - </div> - {{ end }} - {{ template "section-tree-nav-section" (dict "page" . "section" .FirstSection "delayActive" $shouldDelayActive) }} - </nav> -</div> -{{ define "section-tree-nav-section" }} -{{ $s := .section }} -{{ $p := .page }} -{{ $shouldDelayActive := .delayActive }} -{{ $active := eq $p.CurrentSection $s }} -{{ $show := or (and (not $p.Site.Params.ui.sidebar_menu_compact) ($p.IsAncestor $s)) ($p.IsDescendant $s) }} -{{ $sid := $s.RelPermalink | anchorize }} -<ul class="td-sidebar-nav__section pr-md-3"> - <li class="td-sidebar-nav__section-title"> - <a href="{{ $s.RelPermalink }}" class="align-left pl-0 pr-2{{ if not $show }} collapsed{{ end }}{{ if $active}} active{{ end }} td-sidebar-link td-sidebar-link__section">{{ $s.LinkTitle }}</a> - </li> - <ul> - <li class="collapse {{ if $show }}show{{ end }}" id="{{ $sid }}"> - {{ $pages := where (union $s.Pages $s.Sections).ByWeight ".Params.toc_hide" "!=" true }} - {{ $pages := $pages | first 50 }} - {{ range $pages }} - {{ if .IsPage }} - {{ $mid := printf "m-%s" (.RelPermalink | anchorize) }} - {{ $active := eq . $p }} - <a class="td-sidebar-link td-sidebar-link__page {{ if and (not $shouldDelayActive) $active }} active{{ end }}" id="{{ $mid }}" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> - {{ else }} - {{ template "section-tree-nav-section" (dict "page" $p "section" .) }} - {{ end }} - {{ end }} - </li> - </ul> -</ul> -{{ end }} |