Skip to content

Commit

Permalink
chore: Refactor top-level search bar (#1173)
Browse files Browse the repository at this point in the history
Co-authored-by: Zbynek Roubalik <[email protected]>
  • Loading branch information
PixelRobots and zroubalik authored Jun 30, 2023
1 parent 76ea56d commit 08b5e03
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
19 changes: 7 additions & 12 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -169,41 +169,35 @@ name = "Concepts"
parent = "docs"
weight = 2

[[menu.docs]]
url = "/docs/authentication-providers/"
name = "Authentication providers"
parent = "docs"
weight = 3

[[menu.docs]]
url = "/docs/concepts/#architecture"
name = "Architecture"
parent = "docs"
weight = 4
weight = 3

[[menu.docs]]
url = "/docs/operate/"
name = "Operate"
parent = "docs"
weight = 5
weight = 4

[[menu.docs]]
url = "/docs/migration/"
name = "Migration Guide"
parent = "docs"
weight = 6
weight = 5

[[menu.docs]]
url = "/docs/faq/"
name = "FAQ"
parent = "docs"
weight = 7
weight = 6

[[menu.docs]]
url = "/docs/troubleshooting/"
name = "Troubleshooting"
parent = "docs"
weight = 8
weight = 7

[[menu.main]]
url = "/blog"
Expand Down Expand Up @@ -325,7 +319,8 @@ weight = 11
[[menu.main]]
url = "https://store.cncf.io/collections/keda"
name = "Merch"
weight = 5
parent = "project"
weight = 12

# "Features" section on the main page
[[params.features]]
Expand Down
4 changes: 4 additions & 0 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
<a class="navbar-link is-arrowless" href="/docs/{{ $latest }}/scalers">Scalers</a>
</div>

<div class="navbar-item is-size-5-desktop has-dropdown is-hoverable">
<a class="navbar-link is-arrowless" href="/docs/{{ $latest }}/authentication-providers">Auth providers</a>
</div>

{{ range $docs }}
{{ $isExternal := hasPrefix .URL "http" }}
{{ if .HasChildren }}
Expand Down

0 comments on commit 08b5e03

Please sign in to comment.