From bb4f9bd01b464d16c98c23b4234a5e6dc0b54d9a Mon Sep 17 00:00:00 2001 From: Clément Bénier Date: Sun, 25 Nov 2018 17:08:12 +0100 Subject: handles versions and languages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Clément Bénier --- .gitignore | 1 + site/_includes/header.html | 26 +++++++++++++++++++------- site/_layouts/doc.html | 24 ++++++++++++++++-------- site/docs/docsearch.html | 10 +++++----- site/index.html | 4 ++-- 5 files changed, 43 insertions(+), 22 deletions(-) diff --git a/.gitignore b/.gitignore index 20ea33a..d09a655 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ build-dev conf/_release.yml site/_data/all-pages.yml site/_data/tocs +site/_data/docs-versions.yml .fetch.ts .LocalFetch.ts doctools diff --git a/site/_includes/header.html b/site/_includes/header.html index 6d69d6e..52ff7a0 100644 --- a/site/_includes/header.html +++ b/site/_includes/header.html @@ -1,3 +1,15 @@ +{% if include.language == "" or include.language == nil %} + {% assign LANGUAGE = "en" %} +{% else %} + {% assign LANGUAGE = include.language %} +{% endif %} +{% if include.version == "" or include.version == nil %} + {% assign VERSION = site.default_linked_docs_version %} +{% else %} + {% assign VERSION = include.version %} +{% endif %} + +