Rework docs sidebar to have some nesting.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
Matt Moyer 2021-02-17 17:02:57 -06:00
parent e74dd47b1d
commit 4de949fe18
No known key found for this signature in database
GPG Key ID: EAE88AD172C5AE2D
11 changed files with 49 additions and 19 deletions

View File

@ -22,17 +22,3 @@ markup:
noClasses: false noClasses: false
style: monokailight style: monokailight
tabWidth: 4 tabWidth: 4
menu:
docs:
- name: Overview
url: /docs/
weight: 100
- name: Install
url: /docs/install/
weight: 110
- name: Architecture
url: /docs/architecture/
- name: Demo
url: /docs/demo/
- name: Scope
url: /docs/scope/

View File

@ -2,6 +2,10 @@
title: "Pinniped Documentation" title: "Pinniped Documentation"
cascade: cascade:
layout: docs layout: docs
menu:
docs:
name: Overview
weight: 1
--- ---
![Pinniped Logo](/docs/img/pinniped_logo.svg) ![Pinniped Logo](/docs/img/pinniped_logo.svg)

View File

@ -2,6 +2,10 @@
title: "Pinniped Architecture" title: "Pinniped Architecture"
cascade: cascade:
layout: docs layout: docs
menu:
docs:
name: Architecture
weight: 100
--- ---
# Architecture # Architecture

View File

@ -2,6 +2,10 @@
title: "Pinniped Concierge and Supervisor Demo" title: "Pinniped Concierge and Supervisor Demo"
cascade: cascade:
layout: docs layout: docs
menu:
docs:
name: Concierge with Supervisor
parent: demo
--- ---
# Trying Pinniped Supervisor and Concierge # Trying Pinniped Supervisor and Concierge

View File

@ -2,6 +2,11 @@
title: "Pinniped Concierge Only Demo" title: "Pinniped Concierge Only Demo"
cascade: cascade:
layout: docs layout: docs
menu:
docs:
name: Concierge with Webhook
parent: demo
weight: 100
--- ---
# Trying Pinniped Concierge # Trying Pinniped Concierge

View File

@ -2,6 +2,11 @@
title: "Pinniped Demo" title: "Pinniped Demo"
cascade: cascade:
layout: docs layout: docs
menu:
docs:
name: Demo
identifier: demo
weight: 40
--- ---
# Trying Pinniped # Trying Pinniped

View File

@ -2,6 +2,10 @@
title: "Installing Pinniped" title: "Installing Pinniped"
cascade: cascade:
layout: docs layout: docs
menu:
docs:
name: Install
weight: 10
--- ---
# Installing Pinniped # Installing Pinniped

View File

@ -2,6 +2,10 @@
title: "Pinniped Scope" title: "Pinniped Scope"
cascade: cascade:
layout: docs layout: docs
menu:
docs:
name: Scope
weight: 200
--- ---

File diff suppressed because one or more lines are too long

View File

@ -411,6 +411,11 @@
ul { ul {
padding-left: 0px; padding-left: 0px;
margin-bottom: 35px; margin-bottom: 35px;
ul {
padding-left: 15px;
margin-top: 10px;
margin-bottom: 15px;
}
li { li {
display: list-item; display: list-item;
margin-bottom: 15px; margin-bottom: 15px;

View File

@ -1,8 +1,17 @@
<div class="side-nav"> <div class="side-nav">
<ul> <ul>
{{ $currentPage := . }} {{- $currentPage := . }}
{{ range .Site.Menus.docs }} {{- range .Site.Menus.docs }}
<li><a href="{{ .URL }}" {{ if (eq $currentPage.RelPermalink .URL) }}class="active"{{ end }}>{{ .Name }}</a></li> <li>
{{ end }} <a href="{{ .URL }}" class="{{ cond ($currentPage.IsMenuCurrent "docs" .) "active" "" }}">{{ .Name }}</a>
{{- if .HasChildren }}
<ul class="sub-menu">
{{- range .Children }}
<li><a href="{{ .URL }}"{{ if $currentPage.IsMenuCurrent "docs" . }} class="active"{{ end }} >{{ .Name }}</a></li>
{{- end }}
</ul>
{{- end }}
</li>
{{- end }}
</ul> </ul>
</div> </div>