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,15 +1,25 @@
<!-- 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">
@ -17,100 +27,75 @@
<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 }}
{{ $expandSection := false }}
{{ $sid := $s.RelPermalink | anchorize }}
{{ $sectionParent := $s.Parent.Title | anchorize }}
{{ $csid := $p.CurrentSection.Title | anchorize }}
{{ if $p.IsDescendant $s }}
<!-- page is within current section --> <!-- page is within current section -->
{{ $showSection = true }} {{ $showSection = true }} {{ else if eq $sectionParent "minikube" }}
{{ else if eq $sectionParent "minikube" }}
<!-- top-level section --> <!-- top-level section -->
{{ $showSection = true }} {{ $showSection = true }} {{ else if eq $sectionParent "welcome" }}
{{ else if eq $sectionParent "welcome" }}
<!-- top-level documentation --> <!-- top-level documentation -->
{{ $showSection = true }} {{ $showSection = true }} {{ else if eq $sectionParent "handbook" }}
{{ else if eq $sectionParent "handbook" }}
<!-- handbook link --> <!-- handbook link -->
{{ $showSection = true }} {{ $showSection = true }} {{ else if eq $p.CurrentSection $s.Parent }}
{{ else if eq $p.CurrentSection $s.Parent }}
<!-- page is in current sections parent --> <!-- page is in current sections parent -->
{{ $showSection = true }} {{ $showSection = true }} {{ else if $p.Parent.IsAncestor $s }}
{{ else if $p.Parent.IsAncestor $s }}
<!-- page is in current section --> <!-- page is in current section -->
{{ if eq $s $p.CurrentSection }} {{ if eq $s $p.CurrentSection }} {{ $showSection = true }} {{ end }} {{ end }}
{{ $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 }}
{{ $sid := $s.RelPermalink | anchorize }}
{{ if $showSection }}
<ul class="td-sidebar-nav__section pr-md-3"> <ul class="td-sidebar-nav__section pr-md-3">
<li class="td-sidebar-nav__section-title"> <li class="td-sidebar-nav__section-title">
<!-- Link for subections --> <!-- 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}} &#128998; {{ else }} &#11035; {{ end }} <a
{{ $s.LinkTitle }}</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> </li>
<ul> <ul>
<li class="collapse {{ if $showSection }}show{{ end }}" id="{{ $sid }}"> <li class="collapse {{ if $showSection }}show{{ end }}" id="{{ $sid }}">
{{ $pages := where (union $s.Pages $s.Sections).ByWeight ".Params.toc_hide" "!=" true }} {{ $pages := where (union $s.Pages $s.Sections).ByWeight
{{ $pages := $pages | first 50 }} ".Params.toc_hide" "!=" true }} {{ $pages := $pages | first 50 }} {{ range
{{ range $pages }} $pages }} {{ if .IsPage }} {{ $mid := printf "m-%s" (.RelPermalink |
{{ if .IsPage }} anchorize) }} {{/* minikube hack: Override $activeSection due to a Hugo
{{ $mid := printf "m-%s" (.RelPermalink | anchorize) }} upgrade bug */}} {{ $showPage := false }} {{ $activePage := false }}
{{/* minikube hack: Override $activeSection due to a Hugo upgrade bug */}}
{{ $showPage := false }}
{{ $activePage := false }}
<!-- always show pages in the current section --> <!-- always show pages in the current section -->
{{ if $activeSection }} {{ if $activeSection }} {{ $showPage = true }} {{ $activePage = eq . $p }}
{{ $showPage = true }}
{{ $activePage = eq . $p }}
{{ end }} {{ end }}
<!-- show handbook unless we are in a very long section --> <!-- show handbook unless we are in a very long section -->
{{ if eq $s.Title "Handbook" }} {{ if eq $s.Title "Handbook" }} {{ if lt (len $p.CurrentSection.Pages) 7
{{ if lt (len $p.CurrentSection.Pages) 7 }} }} {{ $showPage = true }} {{ end }}
{{ $showPage = true }}
{{ end }}
<!-- always show handbook if we are on the frontpage --> <!-- always show handbook if we are on the frontpage -->
{{ if eq $csid "welcome" }} {{ if eq $csid "welcome" }} {{ $showPage = true }} {{ end }} {{ end }} {{
{{ $showPage = true }} if $showPage }}
{{ end }} <a
{{ end }} class="td-sidebar-link td-sidebar-link__page {{ if $activePage }} active{{ end }}"
id="{{ $mid }}"
{{ if $showPage }} href="{{ .RelPermalink }}"
<a class="td-sidebar-link td-sidebar-link__page {{ if $activePage }} active{{ end }}" id="{{ $mid }}" href="{{ .RelPermalink }}"> {{ .LinkTitle }}</a> >
{{ end }} {{.LinkTitle }}
</a>
{{/* end minikube hack */}} {{ end }} {{/* end minikube hack */}} {{ else }} {{ template
{{ else }} "section-tree-nav-section" (dict "page" $p "section" .) }} {{ end }} {{
{{ template "section-tree-nav-section" (dict "page" $p "section" .) }} end }}
{{ end }}
{{ end }}
</li> </li>
</ul> </ul>
</ul> </ul>
{{ end }} {{ end }} {{ end }}
{{ end }}