Skip to content

Commit 3442c1b

Browse files
committed
Merge branch 'update-sidebar' of https://github.com/crossplane/docs into update-sidebar
2 parents 6c9b87b + 947f10c commit 3442c1b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

content/v2.0/cli/cli-installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
weight: 40
3-
title: CLI Installation
3+
title: CLI Installation
44
description: "Documentation for the Crossplane command-line interface"
55
---
66

themes/geekboot/layouts/partials/docs-sidebar.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,34 @@
88
{{ $isExpandableSection := and (eq $current.CurrentSection .) (ne .FirstSection .) }}
99
{{ $shouldExpand := or $isCurrentPage $isExpandableSection }}
1010
{{ $sectionId := substr (sha1 .Permalink) 0 8 }}
11-
11+
1212
{{/* Check if this is an empty section page */}}
1313
{{ $isEmptySection := and .IsSection (eq (len .Content) 0) (gt (len .Pages) 0) }}
1414
{{ $shouldLink := not (or .Page.Params.nolink $isEmptySection) }}
15-
15+
1616
{{ if not .Page.Params.tocHidden }}
1717
<div class="section-container container pe-0 pt-1">
1818
{{/* Add expand/collapse controls for sections with children */}}
1919
{{ $hasChildren := and .IsSection (ne .FirstSection .) (gt (len .Pages) 0) }}
20-
21-
<div
20+
21+
<div
2222
class="container nav-container pe-0 d-flex w-100 {{ if $isCurrentPage }}active{{ else if $shouldExpand }}active-parent{{ end }}"
2323
{{ if $hasChildren }}
24-
data-bs-toggle="collapse"
25-
data-bs-target="#collapse-{{ $sectionId }}"
24+
data-bs-toggle="collapse"
25+
data-bs-target="#collapse-{{ $sectionId }}"
2626
aria-expanded="{{ if $shouldExpand }}true{{ else }}false{{ end }}"
2727
role="button"
2828
tabindex="0"
2929
{{ end }}
3030
>
31-
31+
3232
{{/* Render link or span based on content and nolink parameter */}}
3333
{{ if and $shouldLink (not $hasChildren) }}
3434
<a class="d-flex w-100 border-0" href="{{ .Permalink }}">{{ .Title }}</a>
3535
{{ else }}
3636
<span class="d-flex w-100 border-0">{{ .Title }}</span>
3737
{{ end }}
38-
38+
3939
{{ if $hasChildren }}
4040
<div class="d-flex flex-shrink-1 sidebar-control-container align-self-center">
4141
<input
@@ -52,10 +52,10 @@
5252
<use xlink:href="#x"></use>
5353
</svg>
5454
</label>
55-
</div>
55+
</div>
5656
{{ end }}
5757
</div>
58-
58+
5959
{{/* Render child pages for non-root sections */}}
6060
{{ if ne .FirstSection . }}
6161
{{ range .Pages }}
@@ -80,7 +80,7 @@
8080
{{ end }}
8181
{{ end }}
8282
{{ end }}
83-
83+
8484
{{/* Include additional sidebar sections */}}
8585
{{ if not ($.Param "docs") }}
8686
{{ partialCached "sidebar/user-docs" . }}

0 commit comments

Comments
 (0)