Skip to content

Commit

Permalink
Navigate to same page when switching EKS-A versions (#8021) (#8027)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna authored Apr 22, 2024
1 parent ea2f3f8 commit 33124a9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ desc = "Development takes place here!"
fullversion = "v0.19"
version = "v0.19"
docsbranch = "main"
url = "https://anywhere.eks.amazonaws.com/docs/"
url = "https://anywhere.eks.amazonaws.com"

[[params.versions]]
fullversion = "v0.18"
version = "v0.18"
docsbranch = "main"
url = "/docs/"
docsbranch = "release-0.18"
url = "https://release-0-18.anywhere.eks.amazonaws.com"
9 changes: 9 additions & 0 deletions docs/layouts/partials/navbar-version-selector.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Versions
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
{{ $p := . }}
{{ range .Site.Params.versions }}
<a class="dropdown-item" href="{{ .url }}{{ $p.RelPermalink }}">{{ .version }}</a>
{{ end }}
</div>

0 comments on commit 33124a9

Please sign in to comment.