From d00396ef79689eb3bc44e7166b8844aec2612108 Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Thu, 10 Aug 2017 17:43:56 -0700 Subject: [PATCH] Add Version Selector to v1.4 (#4746) * 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 --- _config.yml | 21 ++ _includes/footer-scripts.html | 53 +++++ _includes/head-header.html | 23 +- _includes/head.html | 16 ++ _includes/header.html | 67 ++++++ _layouts/docwithnav.html | 175 ++++++-------- _sass/_base.sass | 432 ++++++++++++++++++++++++++++++++-- js/script.js | 19 ++ 8 files changed, 676 insertions(+), 130 deletions(-) create mode 100644 _includes/footer-scripts.html create mode 100644 _includes/head.html create mode 100644 _includes/header.html diff --git a/_config.yml b/_config.yml index 803d130901..493b7e8bf9 100644 --- a/_config.yml +++ b/_config.yml @@ -19,6 +19,27 @@ defaults: version: "v1.4" githubbranch: "v1.4.12" docsbranch: "release-1.4" + versions: + - fullversion: "v1.7.3" + version: "v1.7" + githubbranch: "v1.7.3" + docsbranch: "release-1.7" + url: https://kubernetes.io/docs/home/ + - fullversion: "v1.6.8" + version: "v1.6" + githubbranch: "v1.6.8" + docsbranch: "release-1.6" + url: https://v1-6.docs.kubernetes.io/docs/home/ + - fullversion: "v1.5.7" + version: "v1.5" + githubbranch: "v1.5.7" + docsbranch: "release-1.5" + url: https://v1-5.docs.kubernetes.io/docs/ + - fullversion: "v1.4.12" + version: "v1.4" + githubbranch: "v1.4.12" + docsbranch: "release-1.4" + url: https://v1-4.docs.kubernetes.io/docs/ - scope: path: "docs" diff --git a/_includes/footer-scripts.html b/_includes/footer-scripts.html new file mode 100644 index 0000000000..73768497cc --- /dev/null +++ b/_includes/footer-scripts.html @@ -0,0 +1,53 @@ + + + + + + + \ No newline at end of file diff --git a/_includes/head-header.html b/_includes/head-header.html index 17a83fa31e..581a8fbaea 100644 --- a/_includes/head-header.html +++ b/_includes/head-header.html @@ -2,17 +2,17 @@ - {% if !page.no_canonical %}{% endif %} + {% if !page.no_canonical %}{% endif %} - - + + - + - + Kubernetes - {{ title }} @@ -21,6 +21,19 @@