Repository: kubernetes-sigs/kubebuilder (language: go)

Issue:
Add legacy banner on top of v1 book
The [book-v1](https://book-v1.book.kubebuilder.io/) book is about v1 of the project, which is legacy and shouldn't be used for new projects.
However, it can be relatively easy to end up there, and not see you're reading old documentation instead of current one.

My suggestion is to add a warning banner at the top of every page of the v1 book so people visiting the site are warned they are not on the most current version.

/kind documentation



Discussion / hints:
/help

Unfortunately, book-v1 was still using old-school gitbook (vs mdbook, which is what we use now), so implementing this will require figuring out how to override the template for gitbook.
@DirectXMan12: 
	This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed [here](https://git.k8s.io/community/contributors/guide/help-wanted.md).

If this request no longer meets these requirements, the label can be removed
by commenting with the `/remove-help` command.


<details>

In response to [this](https://github.com/kubernetes-sigs/kubebuilder/issues/1963):

>/help
>
>Unfortunately, book-v1 was still using old-school gitbook (vs mdbook, which is what we use now), so implementing this will require figuring out how to override the template for gitbook.


Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
</details>
Yeah, that seems tricky. I tried setting up gitbook locally, but the npm appears to be broken. And all their documentations are now removed in favor of their new product.
Hi @dmathieu, 

You do not need to setup locally. See that when you do the pr with the change you can preview that. More info:  https://github.com/kubernetes-sigs/kubebuilder/blob/master/CONTRIBUTING.md#how-to-preview-the-changes-performed-in-the-docs
/assign
Issues go stale after 90d of inactivity.
Mark the issue as fresh with `/remove-lifecycle stale`.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with `/close`.

Send feedback to sig-contributor-experience at [kubernetes/community](https://github.com/kubernetes/community).
/lifecycle stale
@rashmigottipati Did you get a chance to work on this? If not, I can give it a go.
@hickeyma I haven't had a chance to work on this, yes absolutely, please feel free to work on this. :) 

/assign @hickeyma 
ok, thanks @rashmigottipati 
/assign

Fix patch:
diff --git a/docs/book/book.json b/docs/book/book.json
index 935ec70c967..7a600e8f623 100644
--- a/docs/book/book.json
+++ b/docs/book/book.json
@@ -1,5 +1,5 @@
 {
-  "plugins": ["theme-api", "panel", "sequence-diagrams", "ga"],
+  "plugins": ["theme-api", "panel", "sequence-diagrams", "ga", "kubebuilder-legacy-docs@git+https://github.com/hickeyma/gitbook-plugin-kubebuilder-legacy-docs#0.1.1"],
   "pluginsConfig": {
     "theme-api": {
       "split": true


Test patch: