added outlined bullets and filled bullets for selecte item

pull/12040/head
amit dixit 2021-08-02 18:53:52 +02:00
parent 23a4cd3f0f
commit 8c283b189d
No known key found for this signature in database
GPG Key ID: 7D07E44DA2BC8F2D
6 changed files with 86 additions and 101 deletions

View File

@ -1,6 +1,6 @@
--- ---
title: "How to use KubeVirt with minikube" title: "How to use KubeVirt with minikube"
linkTitle: "KubeVirt support" linkTitle: "KubeVirt Support"
weight: 1 weight: 1
date: 2020-05-26 date: 2020-05-26
description: > description: >

View File

@ -1,6 +1,6 @@
--- ---
title: "Using Multi-Node Clusters" title: "Using Multi-Node Clusters"
linkTitle: "Using multi-node clusters" linkTitle: "Using Multi-Node Clusters"
weight: 1 weight: 1
date: 2019-11-24 date: 2019-11-24
--- ---

View File

@ -1,6 +1,6 @@
--- ---
title: "Ingress nginx for TCP and UDP services" title: "Ingress nginx for TCP and UDP services"
linkTitle: "Ingress nginx for TCP and UDP services" linkTitle: "Ingress Nginx for TCP and UDP Services"
weight: 1 weight: 1
date: 2019-08-15 date: 2019-08-15
description: > description: >

View File

@ -1,6 +1,6 @@
--- ---
title: "NVIDIA GPU Support" title: "NVIDIA GPU Support"
linkTitle: "NVIDIA GPU support" linkTitle: "NVIDIA GPU Support"
weight: 1 weight: 1
date: 2018-01-02 date: 2018-01-02
description: > description: >

View File

@ -1,6 +1,6 @@
--- ---
title: "Setup minikube as CI step in github actions" title: "Setup minikube as CI step in github actions"
linkTitle: "Minikube in github actions" linkTitle: "Minikube in Github Actions"
weight: 1 weight: 1
date: 2020-06-02 date: 2020-06-02
description: > description: >

View File

@ -1,116 +1,101 @@
<!-- note, this is only used in /docs --> <!-- note, this is only used in /docs -->
{{/* minikube hack: temporarily forked from docsy/layouts/partials/sidebar-tree.html for hugo v0.69 compatibility */}} {{/* minikube hack: temporarily forked from
docsy/layouts/partials/sidebar-tree.html for hugo v0.69 compatibility */}} {{/*
{{/* We cache this partial for bigger sites and set the active class client side. */}} We cache this partial for bigger sites and set the active class client side.
{{ $shouldDelayActive := ge (len .Site.Pages) 2000 }} */}} {{ $shouldDelayActive := ge (len .Site.Pages) 2000 }}
<div id="td-sidebar-menu" class="td-sidebar__inner{{ if $shouldDelayActive }} d-none{{ end }}"> <div
id="td-sidebar-menu"
class="td-sidebar__inner{{ if $shouldDelayActive }} d-none{{ end }}"
>
{{ if not .Site.Params.ui.sidebar_search_disable }} {{ if not .Site.Params.ui.sidebar_search_disable }}
<form class="td-sidebar__search d-flex align-items-center"> <form class="td-sidebar__search d-flex align-items-center">
{{ partial "search-input.html" . }} {{ 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
</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> </form>
{{ end }} {{ end }}
<nav class="collapse td-sidebar-nav" id="td-section-nav"> <nav class="collapse td-sidebar-nav" id="td-section-nav">
{{ if (gt (len .Site.Home.Translations) 0) }} {{ if (gt (len .Site.Home.Translations) 0) }}
<div class="nav-item dropdown d-block d-lg-none"> <div class="nav-item dropdown d-block d-lg-none">
{{ partial "navbar-lang-selector.html" . }} {{ partial "navbar-lang-selector.html" . }}
</div> </div>
{{ end }} {{ end }} {{ template "section-tree-nav-section" (dict "page" . "section"
{{ template "section-tree-nav-section" (dict "page" . "section" .FirstSection "delayActive" $shouldDelayActive) }} .FirstSection "delayActive" $shouldDelayActive) }}
</nav> </nav>
</div> </div>
<!-- this gets called for every section --> <!-- this gets called for every section -->
{{ define "section-tree-nav-section" }} {{ define "section-tree-nav-section" }} {{ $s := .section }} {{ $p := .page }}
{{ $s := .section }} {{ $shouldDelayActive := .delayActive }} {{ $activeSection := eq
{{ $p := .page }} $p.CurrentSection $s }} {{/* minikube hack: Override $showSection due to a Hugo
{{ $shouldDelayActive := .delayActive }} upgrade bug */}} {{ $showSection := false }} {{ $expandSection := false }} {{
{{ $activeSection := eq $p.CurrentSection $s }} $sid := $s.RelPermalink | anchorize }} {{ $sectionParent := $s.Parent.Title |
anchorize }} {{ $csid := $p.CurrentSection.Title | anchorize }} {{ if
{{/* minikube hack: Override $showSection due to a Hugo upgrade bug */}} $p.IsDescendant $s }}
{{ $showSection := false }} <!-- page is within current section -->
{{ $expandSection := false }} {{ $showSection = true }} {{ else if eq $sectionParent "minikube" }}
{{ $sid := $s.RelPermalink | anchorize }} <!-- top-level section -->
{{ $sectionParent := $s.Parent.Title | anchorize }} {{ $showSection = true }} {{ else if eq $sectionParent "welcome" }}
{{ $csid := $p.CurrentSection.Title | anchorize }} <!-- top-level documentation -->
{{ $showSection = true }} {{ else if eq $sectionParent "handbook" }}
{{ if $p.IsDescendant $s }} <!-- handbook link -->
<!-- page is within current section --> {{ $showSection = true }} {{ else if eq $p.CurrentSection $s.Parent }}
{{ $showSection = true }} <!-- page is in current sections parent -->
{{ else if eq $sectionParent "minikube" }} {{ $showSection = true }} {{ else if $p.Parent.IsAncestor $s }}
<!-- top-level section --> <!-- page is in current section -->
{{ $showSection = true }} {{ if eq $s $p.CurrentSection }} {{ $showSection = true }} {{ end }} {{ end }}
{{ else if eq $sectionParent "welcome" }}
<!-- top-level documentation -->
{{ $showSection = true }}
{{ else if eq $sectionParent "handbook" }}
<!-- handbook link -->
{{ $showSection = true }}
{{ else if eq $p.CurrentSection $s.Parent }}
<!-- page is in current sections parent -->
{{ $showSection = true }}
{{ else if $p.Parent.IsAncestor $s }}
<!-- page is in current section -->
{{ if eq $s $p.CurrentSection }}
{{ $showSection = true }}
{{ end }}
{{ end }}
<!-- only show top-level sections, or sections within the current section --> <!-- only show top-level sections, or sections within the current section -->
{{/* end minikube hack */}} {{/* end minikube hack */}} {{ $sid := $s.RelPermalink | anchorize }} {{ if
$showSection }}
<ul class="td-sidebar-nav__section pr-md-3">
<li class="td-sidebar-nav__section-title">
<!-- Link for subections -->
<a
href="{{ $s.RelPermalink }}"
class="align-left pl-0 pr-2{{ if not $expandSection }} collapsed{{ end }}{{ if $activeSection}} active{{ end }} td-sidebar-link td-sidebar-link__section"
>
{{ if $activeSection}} &#10687; {{ else }} &#10686; {{ end }}
{{$s.LinkTitle }}</a
>
</li>
<ul>
<li class="collapse {{ if $showSection }}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) }} {{/* minikube hack: Override $activeSection due to a Hugo
upgrade bug */}} {{ $showPage := false }} {{ $activePage := false }}
{{ $sid := $s.RelPermalink | anchorize }} <!-- always show pages in the current section -->
{{ if $showSection }} {{ if $activeSection }} {{ $showPage = true }} {{ $activePage = eq . $p }}
<ul class="td-sidebar-nav__section pr-md-3"> {{ end }}
<li class="td-sidebar-nav__section-title">
<!-- Link for subections --> <!-- show handbook unless we are in a very long section -->
<a href="{{ $s.RelPermalink }}" class="align-left pl-0 pr-2{{ if not $expandSection }} collapsed{{ end }}{{ if $activeSection}} active{{ end }} td-sidebar-link td-sidebar-link__section"> {{ if $activeSection}} &#128998; {{ else }} &#11035; {{ end }} {{ if eq $s.Title "Handbook" }} {{ if lt (len $p.CurrentSection.Pages) 7
{{ $s.LinkTitle }}</a> }} {{ $showPage = true }} {{ end }}
<!-- always show handbook if we are on the frontpage -->
{{ if eq $csid "welcome" }} {{ $showPage = true }} {{ end }} {{ end }} {{
if $showPage }}
<a
class="td-sidebar-link td-sidebar-link__page {{ if $activePage }} active{{ end }}"
id="{{ $mid }}"
href="{{ .RelPermalink }}"
>
{{.LinkTitle }}
</a>
{{ end }} {{/* end minikube hack */}} {{ else }} {{ template
"section-tree-nav-section" (dict "page" $p "section" .) }} {{ end }} {{
end }}
</li> </li>
<ul>
<li class="collapse {{ if $showSection }}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) }}
{{/* minikube hack: Override $activeSection due to a Hugo upgrade bug */}}
{{ $showPage := false }}
{{ $activePage := false }}
<!-- always show pages in the current section -->
{{ if $activeSection }}
{{ $showPage = true }}
{{ $activePage = eq . $p }}
{{ end }}
<!-- show handbook unless we are in a very long section -->
{{ if eq $s.Title "Handbook" }}
{{ if lt (len $p.CurrentSection.Pages) 7 }}
{{ $showPage = true }}
{{ end }}
<!-- always show handbook if we are on the frontpage -->
{{ if eq $csid "welcome" }}
{{ $showPage = true }}
{{ end }}
{{ end }}
{{ if $showPage }}
<a class="td-sidebar-link td-sidebar-link__page {{ if $activePage }} active{{ end }}" id="{{ $mid }}" href="{{ .RelPermalink }}"> {{ .LinkTitle }}</a>
{{ end }}
{{/* end minikube hack */}}
{{ else }}
{{ template "section-tree-nav-section" (dict "page" $p "section" .) }}
{{ end }}
{{ end }}
</li>
</ul>
</ul> </ul>
{{ end }} </ul>
{{ end }} {{ end }} {{ end }}