From a4d4875a9f8739084bbc81b69fefab69ea0a6b4b Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Thu, 23 May 2024 20:42:01 +0100 Subject: [PATCH 1/2] Add header to clarify that book-v3 is legacy documentation --- docs/book/theme/css/custom.css | 27 +++++++++++++++++++++++++++ docs/book/theme/header.hbs | 3 +++ docs/book/theme/index.hbs | 2 ++ 3 files changed, 32 insertions(+) create mode 100644 docs/book/theme/header.hbs diff --git a/docs/book/theme/css/custom.css b/docs/book/theme/css/custom.css index 16e3b210e9..a81921b40b 100644 --- a/docs/book/theme/css/custom.css +++ b/docs/book/theme/css/custom.css @@ -1,3 +1,30 @@ .menu-title img { vertical-align: bottom; } + +#notice-bar { + background: var(--bg); + padding: 1em; + margin-left: calc(-1 * var(--page-padding)); + margin-right: calc(-1 * var(--page-padding)); + margin-bottom: 1em; + + border-bottom: 1px solid var(--table-border-color); + box-shadow: 0 1px 5px 0 var(--table-border-color); +} + +#notice-bar * { + color: var(--fg); +} + +#notice-bar a { + text-decoration: none; +} + +#notice-bar a:not(.header) { + color: var(--links); +} + +#notice-bar h2 { + margin-top: 0; +} diff --git a/docs/book/theme/header.hbs b/docs/book/theme/header.hbs new file mode 100644 index 0000000000..67d9db43c4 --- /dev/null +++ b/docs/book/theme/header.hbs @@ -0,0 +1,3 @@ +
+

Viewing legacy documentation for Kubebuilder, check out the latest documentation instead.

+
diff --git a/docs/book/theme/index.hbs b/docs/book/theme/index.hbs index e0fd8cd68a..2ef47f1198 100644 --- a/docs/book/theme/index.hbs +++ b/docs/book/theme/index.hbs @@ -158,6 +158,8 @@ + {{> header}} + {{#if search_enabled}}