Skip to content

Commit 473be14

Browse files
committed
Add KB project git-repo and edit icons
1 parent 5d59e40 commit 473be14

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ WORKSPACE
44
# don't check in the build output of the book
55
docs/book/book/
66

7+
# ignore auto-generated dir by `mdbook serve`
8+
docs/book/src/docs
9+
710
# Editor temp files
811
*~
912
\#*#

docs/book/book.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ title = "The Kubebuilder Book"
88
google-analytics = "UA-119864590-1"
99
curly-quotes = true
1010
additional-css = ["theme/css/markers.css", "theme/css/custom.css"]
11+
git-repository-url = "https://github.com/kubernetes-sigs/kubebuilder"
12+
edit-url-template = "https://github.com/kubernetes-sigs/kubebuilder/edit/master/docs/book/{path}"
1113

1214
[preprocessor.literatego]
1315
command = "./litgo.sh"

docs/book/theme/index.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@
139139
<i id="git-repository-button" class="fa {{git_repository_icon}}"></i>
140140
</a>
141141
{{/if}}
142+
{{#if git_repository_edit_url}}
143+
<a href="{{git_repository_edit_url}}" title="Suggest an edit" aria-label="Suggest an edit">
144+
<i id="git-edit-button" class="fa fa-edit"></i>
145+
</a>
146+
{{/if}}
142147
</div>
143148
</div>
144149

0 commit comments

Comments
 (0)