From 31003b1523e77e0972a453d49cfdb0559021b475 Mon Sep 17 00:00:00 2001 From: Miki Date: Tue, 17 Aug 2021 14:19:08 -0700 Subject: [PATCH] Add versioned documentation Reduce font size and expand width Signed-off-by: Miki --- _data/versions.json | 3 + _includes/head_custom.html | 6 + _layouts/default.html | 4 + _sass/color_schemes/opensearch.scss | 2 + _sass/custom/custom.scss | 20 +++- assets/js/_version-selector.js | 176 ++++++++++++++++++++++++++++ assets/js/version-selector.tpl | 9 ++ 7 files changed, 218 insertions(+), 2 deletions(-) create mode 100644 _data/versions.json create mode 100644 assets/js/_version-selector.js create mode 100644 assets/js/version-selector.tpl diff --git a/_data/versions.json b/_data/versions.json new file mode 100644 index 00000000..9e5f8d81 --- /dev/null +++ b/_data/versions.json @@ -0,0 +1,3 @@ +{ + "current": "1.0" +} \ No newline at end of file diff --git a/_includes/head_custom.html b/_includes/head_custom.html index 91ee8a17..1a18be03 100755 --- a/_includes/head_custom.html +++ b/_includes/head_custom.html @@ -6,3 +6,9 @@ {% endif %} + +{% if jekyll.environment == "development" %} + +{% else %} + +{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index d433719d..c5408662 100755 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -57,6 +57,10 @@ layout: table_wrappers