Skip to content

Commit

Permalink
Add KB project git-repo and edit icons
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw99 committed Oct 27, 2022
1 parent 5d59e40 commit 473be14
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ WORKSPACE
# don't check in the build output of the book
docs/book/book/

# ignore auto-generated dir by `mdbook serve`
docs/book/src/docs

# Editor temp files
*~
\#*#
Expand Down
2 changes: 2 additions & 0 deletions docs/book/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ title = "The Kubebuilder Book"
google-analytics = "UA-119864590-1"
curly-quotes = true
additional-css = ["theme/css/markers.css", "theme/css/custom.css"]
git-repository-url = "https://github.com/kubernetes-sigs/kubebuilder"
edit-url-template = "https://github.com/kubernetes-sigs/kubebuilder/edit/master/docs/book/{path}"

[preprocessor.literatego]
command = "./litgo.sh"
Expand Down
5 changes: 5 additions & 0 deletions docs/book/theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@
<i id="git-repository-button" class="fa {{git_repository_icon}}"></i>
</a>
{{/if}}
{{#if git_repository_edit_url}}
<a href="{{git_repository_edit_url}}" title="Suggest an edit" aria-label="Suggest an edit">
<i id="git-edit-button" class="fa fa-edit"></i>
</a>
{{/if}}
</div>
</div>

Expand Down

0 comments on commit 473be14

Please sign in to comment.