From 473be1413ae481c6a16de785cc58c65c1c4a5dba Mon Sep 17 00:00:00 2001 From: astraw99 Date: Thu, 27 Oct 2022 11:45:01 +0800 Subject: [PATCH] Add KB project git-repo and edit icons --- .gitignore | 3 +++ docs/book/book.toml | 2 ++ docs/book/theme/index.hbs | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/.gitignore b/.gitignore index 6c268d876bb..3cd3d73e21f 100644 --- a/.gitignore +++ b/.gitignore @@ -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 *~ \#*# diff --git a/docs/book/book.toml b/docs/book/book.toml index 7aadb547fc5..0dc3a87c8c0 100644 --- a/docs/book/book.toml +++ b/docs/book/book.toml @@ -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" diff --git a/docs/book/theme/index.hbs b/docs/book/theme/index.hbs index 51a386cf0eb..51753a5047b 100644 --- a/docs/book/theme/index.hbs +++ b/docs/book/theme/index.hbs @@ -139,6 +139,11 @@ {{/if}} + {{#if git_repository_edit_url}} + + + + {{/if}}