Add deprecation warning to release-1.4 (#4756)
* Add Version Selector to v1.4 * upgrade to newer header * change include_cached to include * move head.html to correct location * remove seo * add footer-scripts.html * turn on global nav * fix docs nav link * Add deprecation warning to release-1.4 * remove warning from index.html * add newlines
This commit is contained in:
@@ -40,6 +40,9 @@ defaults:
|
|||||||
githubbranch: "v1.4.12"
|
githubbranch: "v1.4.12"
|
||||||
docsbranch: "release-1.4"
|
docsbranch: "release-1.4"
|
||||||
url: https://v1-4.docs.kubernetes.io/docs/
|
url: https://v1-4.docs.kubernetes.io/docs/
|
||||||
|
deprecated: true
|
||||||
|
currentUrl: https://kubernetes.io/docs/home/
|
||||||
|
nextUrl: http://kubernetes-io-vnext-staging.netlify.com/
|
||||||
-
|
-
|
||||||
scope:
|
scope:
|
||||||
path: "docs"
|
path: "docs"
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{% if page.deprecated %}
|
||||||
|
<section id="deprecationWarning">
|
||||||
|
<main>
|
||||||
|
<div class="content deprecation-warning">
|
||||||
|
<h3>
|
||||||
|
Documentation for Kubernetes {{ page.version}} is no longer actively maintained. The version you are currently viewing is a static snapshot.
|
||||||
|
For up-to-date documentation, see the <a href="{{ page.currentUrl }}">latest</a> version.
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</section>
|
||||||
|
{% endif %}
|
||||||
@@ -7,6 +7,7 @@
|
|||||||
<link rel="stylesheet" href="/css/styles.css"/>
|
<link rel="stylesheet" href="/css/styles.css"/>
|
||||||
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
||||||
<link rel="stylesheet" href="/css/sweetalert.css">
|
<link rel="stylesheet" href="/css/sweetalert.css">
|
||||||
|
{% if page.deprecated %}<link rel="stylesheet" type="text/css" href="/css/deprecation-warning.css">{% endif %}
|
||||||
{% if page.class == "gridPage" %}<link rel="stylesheet" href="/css/gridpage.css">{% endif %}
|
{% if page.class == "gridPage" %}<link rel="stylesheet" href="/css/gridpage.css">{% endif %}
|
||||||
<script src="/js/jquery-2.2.0.min.js"></script>
|
<script src="/js/jquery-2.2.0.min.js"></script>
|
||||||
<script src="/js/jquery-ui.min.js"></script>
|
<script src="/js/jquery-ui.min.js"></script>
|
||||||
|
|||||||
@@ -38,6 +38,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
{% include deprecation-warning.html %}
|
||||||
|
|
||||||
<section id="encyclopedia">
|
<section id="encyclopedia">
|
||||||
<div id="docsToc">
|
<div id="docsToc">
|
||||||
<div class="pi-accordion">
|
<div class="pi-accordion">
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
.deprecation-warning {
|
||||||
|
padding: 20px;
|
||||||
|
margin: 20px 0;
|
||||||
|
border-radius: 3px;
|
||||||
|
background-color: #eeeeee;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user