Skip to content
Permalink
Browse files

make sidebar style currently active entry

  • Loading branch information...
BenTheElder committed Feb 13, 2019
1 parent 25bbfa1 commit bddeb1dc91817a6e68b0635f17f9b8f2114347cd
@@ -127,6 +127,14 @@ body {
font-weight: bold;
}

#sidebar li.active-entry :first-child,
#sidebar li.active :first-child {
font-weight: bold;
}
#sidebar li.active-entry :first-child {
color: black;
}

/* consistent link color */
a { color: #1f28f0; }

@@ -30,74 +30,15 @@ sectionPagesMenu = "main"
name = "User Guide"
title = "User Guide"
weight = 2
[[menu.main]]
parent = "user"
identifier = "user-quick-start"
name = "Quick Start"
title = "Quick Start"
url = "/docs/user/quick-start"
weight = 1
[[menu.main]]
parent = "user"
identifier = "user-known-issues"
name = "Known Issues"
title = "Known Issues"
url = "/docs/user/known-issues"
weight = 2
[[menu.main]]
identifier = "roadmap"
name = "Roadmap"
title = "Roadmap"
url = "/docs/roadmap/"
weight = 4
[[menu.main]]
identifier = "design"
name = "Design"
title = "Design"
url = "/docs/design/"
weight = 5
[[menu.main]]
parent = "design"
identifier = "design-initial"
name = "Initial"
title = "Initial"
url = "/docs/design/initial"
weight = 1
[[menu.main]]
parent = "design"
identifier = "design-principles"
name = "Principles"
title = "Principles"
url = "/docs/design/principles"
weight = 1
[[menu.main]]
parent = "design"
identifier = "base-image"
name = "Base Image"
title = "Base Image"
url = "/docs/design/base-image/"
[[menu.main]]
parent = "design"
identifier = "node-image"
name = "Node Image"
title = "Node Image"
url = "/docs/design/node-image/"
[[menu.main]]
identifier = "devel"
name = "Developer Guide"
title = "Developer Guide"
url = "/docs/devel/"
weight = 6
[[menu.main]]
parent = "devel"
identifier = "devel-getting-started"
name = "Getting Started"
title = "Getting Started"
url = "/docs/devel/getting-started/"
weight = 1
[[menu.main]]
parent = "devel"
identifier = "project-structure"
name = "Project Structure"
title = "Project Structure"
url = "/docs/devel/project-structure/"
@@ -1,3 +1,10 @@
---
title: "Base Image"
menu:
main:
parent: "design"
identifier: "base-image"
---
# The Base Image

**NOTE**: This may not completely cover the current implementation.
@@ -1,3 +1,11 @@
---
title: "Initial"
menu:
main:
parent: "design"
identifier: "design-initial"
weight: 2
---
# Design

This document covers some of the the initial design for `kind`.
@@ -1,3 +1,10 @@
---
title: "Node Image"
menu:
main:
parent: "design"
identifier: "node-image"
---
# The Node Image


@@ -1,3 +1,11 @@
---
title: "Principles"
menu:
main:
parent: "design"
identifier: "design-principles"
weight: 1
---
# Principles

While developing kind the following principles should be considered.
@@ -1,3 +1,11 @@
---
title: "Getting Started"
menu:
main:
parent: "devel"
identifier: "devel-getting-started"
weight: 2
---
# Developer Guide

## Overview
@@ -1,3 +1,10 @@
---
title: "Project Structure"
menu:
main:
parent: "devel"
identifier: "project-structure"
---
# Project Structure

🚧 This is a work-in-progress 🚧
@@ -1,3 +1,11 @@
---
title: "Roadmap"
menu:
main:
identifier: "roadmap"
name: "Roadmap"
weight: 3
---
# Roadmap 🗺️

New year, new roadmap 🎉
@@ -1,3 +1,11 @@
---
title: "Known Issues"
menu:
main:
parent: "user"
identifier: "known-issues"
weight: 3
---
# Known Issues

Having problems with kind? This guide is covers some known problems and solutions / workarounds.
@@ -1,3 +1,11 @@
---
title: "Quick Start"
menu:
main:
parent: "user"
identifier: "user-quick-start"
weight: 1
---
# Quick Start

This guide covers getting started with the `kind` command.
@@ -8,14 +8,14 @@
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">{{ .Pre }}<span>{{ .Name }}</span></li>
<ul class="sub-menu">
{{ range .Children }}
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active-entry{{ end }}">
<a href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
{{ else }}
{{ if .Name }}
<li>
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active-entry{{ end }}">
<a href="{{ .URL }}">
{{ .Pre }}
<span>{{ .Name }}</span>

0 comments on commit bddeb1d

Please sign in to comment.
You can’t perform that action at this time.