-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
site: Advanced website navigation #517
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
title: "Krew – kubectl plugin manager" | ||
baseURL: "https://krew.sigs.k8s.io/" | ||
languageCode: "en-us" | ||
title: "Krew – kubectl plugin manager" | ||
|
||
disableKinds: | ||
- taxonomy | ||
- taxonomyTerm | ||
markup: | ||
highlight: | ||
style: dracula | ||
highlight: | ||
style: dracula |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: Home | ||
--- | ||
|
||
## Krew: plugin manager for kubectl | ||
|
||
Krew helps you discover [kubectl plugins][kpl], install and manage them on your | ||
machine. | ||
|
||
It is similar to package managers like apt, brew or dnf. Krew works acrosss all | ||
major platforms and [over 80 kubectl][list] plugins are currently available on | ||
Krew. | ||
|
||
- For **kubectl users**: Krew helps you discover and install kubectl plugins, | ||
and keep them up to date. | ||
|
||
- For **kubectl plugin developers**: Krew helps you package and distribute your | ||
plugins on multiple platforms easily and makes them discoverable through a | ||
centralized plugin repository. | ||
|
||
[kpl]: https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/ | ||
[list]: http://sigs.k8s.io/krew-index/plugins.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
title: Krew | ||
title: Documentation | ||
slug: docs | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
title: User Guide | ||
weight: 200 | ||
--- | ||
|
||
Learn how to use Krew to its full extent. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{ partial "header.html" . }} | ||
|
||
<h1 class="display-3 text-danger">Not found</h1> | ||
|
||
<p class="lead"> | ||
Sorry, this URL cannot be found. Maybe it’s moved. | ||
</p> | ||
|
||
<a href=" {{ "/" }} " class="btn btn-lg btn-primary">← Home</a> | ||
|
||
{{ partial "footer.html" }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{ $isDocsHome := (eq .Slug "docs") }} | ||
{{ partial "header.html" . }} | ||
<article> | ||
<h1> | ||
{{ if $isDocsHome }} | ||
Documentation | ||
{{else}} | ||
{{ .Title}} | ||
{{end}} | ||
</h1> | ||
|
||
{{ with .Content }} | ||
<aside class="lead">{{.}}</aside> | ||
{{ end }} | ||
|
||
{{ partial "toc.html" . }} | ||
|
||
{{ if not $isDocsHome }} | ||
{{ partial "backbutton.html" .}} | ||
{{ end }} | ||
</article> | ||
{{ partial "footer.html" }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{{ partial "header.html" . }} | ||
|
||
<article> | ||
{{.Content}} | ||
|
||
<h1 class="display-4">Documentation</h1> | ||
{{ partial "toc.html" (.Site.GetPage "section" "docs") }} | ||
<a href="{{ "/docs/user-guide/quickstart" | relURL }} " class="btn btn-primary text-nowrap">Quickstart</a> | ||
|
||
<a href="{{ "/docs/user-guide" | relURL }} " class="btn btn-light text-nowrap">User Guide</a> | ||
|
||
<a href="{{ "/docs/developer-guide" | relURL }} " class="btn btn-light text-nowrap">Developer Guide</a> | ||
|
||
</article> | ||
|
||
{{ partial "footer.html" }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{ $docsHome := "/docs" }} | ||
{{ $userGuide := "/docs/user-guide" }} | ||
{{ $devGuide := "/docs/developer-guide" }} | ||
|
||
{{ $isUserGuide := .Parent.IsDescendant (.Site.GetPage "section" $userGuide) }} | ||
{{ $isDevGuide := .Parent.IsDescendant (.Site.GetPage "section" $devGuide) }} | ||
|
||
{{ $parent := "" }} | ||
{{ if $isUserGuide }} | ||
{{ $parent = $userGuide }} | ||
{{ else if $isDevGuide }} | ||
{{ $parent = $devGuide }} | ||
{{ else }} | ||
{{ $parent = $docsHome }} | ||
{{ end }} | ||
|
||
{{ $parent := .Site.GetPage "section" $parent }} | ||
|
||
<a href="{{ $parent.RelPermalink}}" class="btn btn-link btn-sm rounded"> | ||
← {{ $parent.Title }} | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<nav class="navbar navbar-expand-md navbar-light bg-light"> | ||
corneliusweig marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<a class="navbar-brand" href="{{"/" | relURL }}"> | ||
<img src="{{ "/img/krew-logo.svg" }}" height="40vw"/> | ||
</a> | ||
|
||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNavAltMarkup"> | ||
<div class="navbar-nav"> | ||
<a class="nav-item nav-link {{if .IsHome}}active{{end}}" href="{{"/"|relURL}}"> | ||
Home | ||
{{if .IsHome}}<span class="sr-only">(current)</span>{{end}} | ||
</a> | ||
|
||
{{ $isQuickstart := (eq .Slug "quickstart") }} | ||
{{ $isDocs := (and (eq .Section "docs") (ne .Slug "quickstart")) }} | ||
|
||
<a class="nav-item nav-link {{if $isQuickstart}}active{{end}}" href="{{ "/docs/user-guide/quickstart/" | relURL}}"> | ||
Quickstart | ||
{{if $isQuickstart}}<span class="sr-only">(current)</span>{{end}} | ||
</a> | ||
<a class="nav-item nav-link {{if $isDocs}}active{{end}}" href="{{ "/docs/" | relURL}}"> | ||
Documentation | ||
{{if $isDocs}}<span class="sr-only">(current)</span>{{end}} | ||
</a> | ||
<a class="nav-item nav-link" href="https://sigs.k8s.io/krew">GitHub</a> | ||
</div> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../assets/logo/horizontal/color/krew-horizontal-color.svg |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are those two good for? I cant see where it's used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Collapsible navbar (first sentence in the PR description) :)
We can use for more stuff in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah.. I should have resized my window 😄