From 71758b41b4a9b63860f139e3ec9bc4cd4d5fad6b Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 20 Feb 2020 19:57:02 +0100 Subject: [PATCH] Prepare 5.0.0b2-1 release --- material/base.html | 34 +++++++++++++++++----------------- package.json | 2 +- src/base.html | 32 ++++++++++++++++---------------- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/material/base.html b/material/base.html index 2b193c079..de8398db4 100644 --- a/material/base.html +++ b/material/base.html @@ -31,7 +31,7 @@ {% endif %} - + {% endblock %} {% block htmltitle %} {% if page and page.meta and page.meta.title %} @@ -191,22 +191,22 @@ {% block scripts %} + {%- set translations = {} -%} + {%- for key in [ + "clipboard.copy", + "clipboard.copied", + "search.language", + "search.pipeline.stopwords", + "search.pipeline.trimmer", + "search.result.placeholder", + "search.result.none", + "search.result.one", + "search.result.other", + "search.tokenizer" + ] -%} + {%- set _ = translations.update({ key: lang.t(key) }) -%} + {%- endfor -%} diff --git a/package.json b/package.json index 72073cffc..77d0ee352 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mkdocs-material", - "version": "5.0.0b2", + "version": "5.0.0b2-1", "description": "A Material Design theme for MkDocs", "keywords": [ "mkdocs", diff --git a/src/base.html b/src/base.html index 24103f459..e7ff68377 100644 --- a/src/base.html +++ b/src/base.html @@ -375,22 +375,22 @@ + {%- set translations = {} -%} + {%- for key in [ + "clipboard.copy", + "clipboard.copied", + "search.language", + "search.pipeline.stopwords", + "search.pipeline.trimmer", + "search.result.placeholder", + "search.result.none", + "search.result.one", + "search.result.other", + "search.tokenizer" + ] -%} + {%- set _ = translations.update({ key: lang.t(key) }) -%} + {%- endfor -%} @@ -402,7 +402,7 @@ search: "{{ 'assets/javascripts/worker/search.js' | url }}" }, feature: { - instant: {{ feature.instant | tojson }} + instant: {{ "true" if feature and feature.instant else "false" }} } });