Skip to content

Commit a3b365d

Browse files
committed
Add deprecation warning to release-1.6
1 parent 1cff283 commit a3b365d

File tree

6 files changed

+26
-0
lines changed

6 files changed

+26
-0
lines changed

_config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ defaults:
4343
githubbranch: "v1.4.12"
4444
docsbranch: "release-1.4"
4545
url: https://v1-4.docs.kubernetes.io/docs/
46+
deprecated: true
47+
currentUrl: https://kubernetes.io/docs/home/
48+
nextUrl: http://kubernetes-io-vnext-staging.netlify.com/
4649
-
4750
scope:
4851
path: "docs"

_includes/deprecation-warning.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% if page.deprecated %}
2+
<section id="deprecationWarning">
3+
<main>
4+
<div class="content deprecation-warning">
5+
<h3>
6+
Documentation for Kubernetes {{ page.version}} is no longer actively maintained. The version you are currently viewing is a static snapshot.
7+
For up-to-date documentation, see the <a href="{{ page.currentUrl }}">latest</a> version.
8+
</h3>
9+
</div>
10+
</main>
11+
</section>
12+
{% endif %}

_includes/head.html

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<link rel="stylesheet" type="text/css" href="/css/styles.css">
88
<link rel="stylesheet" type="text/css" href="/css/jquery-ui.min.css">
99
<link rel="stylesheet" type="text/css" href="/css/sweetalert.css">
10+
{% if page.deprecated %}<link rel="stylesheet" type="text/css" href="/css/deprecation-warning.css">{% endif %}
1011
{% if page.class == "gridPage" %}<link rel="stylesheet" type="text/css" href="/css/gridpage.css">{% endif %}
1112

1213
{% if page.description %}

_layouts/docwithnav.html

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ <h5>{{ toc.abstract }}</h5>
3535
</div>
3636
</section>
3737

38+
{% include deprecation-warning.html %}
39+
3840
<section id="encyclopedia">
3941
<div id="docsToc">
4042
<div class="pi-accordion">

css/deprecation-warning.css

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.deprecation-warning {
2+
padding: 20px;
3+
margin: 20px 0;
4+
border-radius: 3px;
5+
background-color: #eeeeee;
6+
}

index.html

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ <h5>Automated container deployment, scaling, and management</h5>
2121
<!--</div>-->
2222
</section>
2323

24+
{% include deprecation-warning.html %}
25+
2426
<!-- OCEAN NODES -->
2527
<section id="oceanNodes">
2628
<main>

0 commit comments

Comments
 (0)