From a78130467a03b95d1852bb2e6d10120bd8e6a6e7 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Mon, 26 Jan 2015 16:37:03 +1000 Subject: [PATCH] Change to load the json.gz file Signed-off-by: Sven Dowideit Docker-DCO-1.1-Signed-off-by: Sven Dowideit (github: SvenDowideit) --- docs/release.sh | 3 ++- docs/theme/mkdocs/js/base.js | 14 +++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/release.sh b/docs/release.sh index 4491af6247..16bd759479 100755 --- a/docs/release.sh +++ b/docs/release.sh @@ -73,7 +73,8 @@ setup_s3() { build_current_documentation() { mkdocs build cd site/ - gzip -9k search_content.json + gzip -9k -f search_content.json + cd .. } upload_current_documentation() { diff --git a/docs/theme/mkdocs/js/base.js b/docs/theme/mkdocs/js/base.js index 1406dcd177..04f0c30c70 100644 --- a/docs/theme/mkdocs/js/base.js +++ b/docs/theme/mkdocs/js/base.js @@ -1,12 +1,6 @@ $(document).ready(function () { - // Tipue Search activation - $('#tipue_search_input').tipuesearch({ - 'mode': 'json', - 'contentLocation': '/search_content.json' - }); - prettyPrint(); // Resizing @@ -51,6 +45,12 @@ $(document).ready(function () }, }); + // Tipue Search activation + $('#tipue_search_input').tipuesearch({ + 'mode': 'json', + 'contentLocation': '/search_content.json.gz' + }); + }); function resizeMenuDropdown () @@ -92,4 +92,4 @@ function getCookie(cname) { if (c.indexOf(name) == 0) return c.substring(name.length,c.length); } return ""; -} \ No newline at end of file +}