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
style: monokailight
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"
cascade:
layout: docs
menu:
docs:
name: Overview
weight: 1
---
![Pinniped Logo](/docs/img/pinniped_logo.svg)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,6 +2,10 @@
title: "Pinniped Scope"
cascade:
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 {
padding-left: 0px;
margin-bottom: 35px;
ul {
padding-left: 15px;
margin-top: 10px;
margin-bottom: 15px;
}
li {
display: list-item;
margin-bottom: 15px;

View File

@ -1,8 +1,17 @@
<div class="side-nav">
<ul>
{{ $currentPage := . }}
{{ range .Site.Menus.docs }}
<li><a href="{{ .URL }}" {{ if (eq $currentPage.RelPermalink .URL) }}class="active"{{ end }}>{{ .Name }}</a></li>
{{ end }}
{{- $currentPage := . }}
{{- range .Site.Menus.docs }}
<li>
<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>
</div>