Skip to content

Commit

Permalink
Add header to clarify that book-v3 is legacy documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed May 23, 2024
1 parent 060c233 commit 00a1d27
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/book/theme/css/custom.css
Original file line number Diff line number Diff line change
@@ -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;
}
3 changes: 3 additions & 0 deletions docs/book/theme/header.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<header id="notice-bar">
<h2>Viewing legacy documentation for Kubebuilder, check out the <a href="https://book.kubebuilder.io">latest</a> documentation instead.</h2>
</header>

0 comments on commit 00a1d27

Please sign in to comment.