From e6dce6fea2e989f0a3daeef9a0a298a859a3df3a Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Thu, 10 Aug 2017 22:41:51 -0700 Subject: [PATCH] Add deprecation warning to release-1.5 (#4758) * Add Version Selector * merge in newer sass * Add deprecation warning to release-1.5 * update user guide migration notice --- _config.yml | 3 +++ _includes/deprecation-warning.html | 12 ++++++++++++ _includes/head.html | 1 + _includes/user-guide-migration-notice.md | 4 ++-- _layouts/docwithnav.html | 2 ++ css/deprecation-warning.css | 6 ++++++ index.html | 2 ++ 7 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 _includes/deprecation-warning.html create mode 100644 css/deprecation-warning.css diff --git a/_config.yml b/_config.yml index cbbb1ac052..143ce60d84 100644 --- a/_config.yml +++ b/_config.yml @@ -41,6 +41,9 @@ defaults: githubbranch: "v1.4.12" docsbranch: "release-1.4" 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: path: "docs" diff --git a/_includes/deprecation-warning.html b/_includes/deprecation-warning.html new file mode 100644 index 0000000000..39e9ff6289 --- /dev/null +++ b/_includes/deprecation-warning.html @@ -0,0 +1,12 @@ +{% if page.deprecated %} +
+
+
+

+ 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 latest version. +

+
+
+
+{% endif %} diff --git a/_includes/head.html b/_includes/head.html index 2f85549db5..e4222a0bbe 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -7,6 +7,7 @@ + {% if page.deprecated %}{% endif %} {% if page.class == "gridPage" %}{% endif %} diff --git a/_includes/user-guide-migration-notice.md b/_includes/user-guide-migration-notice.md index ad401096af..366a05907c 100644 --- a/_includes/user-guide-migration-notice.md +++ b/_includes/user-guide-migration-notice.md @@ -4,8 +4,8 @@

NOTICE

-

As of March 14, 2017, the Kubernetes SIG-Docs-Maintainers group have begun migration of the User Guide content as announced previously to the SIG Docs community through the kubernetes-sig-docs group and kubernetes.slack.com #sig-docs channel.

-

The user guides within this section are being refactored into topics within Tutorials, Tasks, and Concepts. Anything that has been moved will have a notice placed in its previous location as well as a link to its new location. The reorganization implements the table of contents (ToC) outlined in the kubernetes-docs-toc document and should improve the documentation's findability and readability for a wider range of audiences.

+

As of March 14, 2017, the Kubernetes SIG-Docs-Maintainers group have begun migration of the User Guide content as announced previously to the SIG Docs community through the kubernetes-sig-docs group and kubernetes.slack.com #sig-docs channel.

+

The user guides within this section are being refactored into topics within Tutorials, Tasks, and Concepts. Anything that has been moved will have a notice placed in its previous location as well as a link to its new location. The reorganization implements a new table of contents and should improve the documentation's findability and readability for a wider range of audiences.

For any questions, please contact: kubernetes-sig-docs@googlegroups.com

diff --git a/_layouts/docwithnav.html b/_layouts/docwithnav.html index e1baa01d47..522a4f6e17 100755 --- a/_layouts/docwithnav.html +++ b/_layouts/docwithnav.html @@ -38,6 +38,8 @@ +{% include deprecation-warning.html %} +
diff --git a/css/deprecation-warning.css b/css/deprecation-warning.css new file mode 100644 index 0000000000..d698a2e7a9 --- /dev/null +++ b/css/deprecation-warning.css @@ -0,0 +1,6 @@ +.deprecation-warning { + padding: 20px; + margin: 20px 0; + border-radius: 3px; + background-color: #eeeeee; +} diff --git a/index.html b/index.html index b15c8dd6f0..73ed5d2c06 100644 --- a/index.html +++ b/index.html @@ -21,6 +21,8 @@ cid: home
+{% include deprecation-warning.html %} +