Browse code

Change to load the json.gz file

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> (github: SvenDowideit)

Sven Dowideit authored on 2015/01/26 15:37:03
Showing 2 changed files
... ...
@@ -73,7 +73,8 @@ setup_s3() {
73 73
 build_current_documentation() {
74 74
 	mkdocs build
75 75
 	cd site/
76
-	gzip -9k search_content.json
76
+	gzip -9k -f search_content.json
77
+	cd ..
77 78
 }
78 79
 
79 80
 upload_current_documentation() {
... ...
@@ -1,12 +1,6 @@
1 1
 $(document).ready(function ()
2 2
 {
3 3
 
4
-  // Tipue Search activation
5
-  $('#tipue_search_input').tipuesearch({
6
-    'mode': 'json',
7
-    'contentLocation': '/search_content.json'
8
-  });
9
-
10 4
   prettyPrint();
11 5
 
12 6
   // Resizing
... ...
@@ -51,6 +45,12 @@ $(document).ready(function ()
51 51
     },
52 52
   });
53 53
 
54
+  // Tipue Search activation
55
+  $('#tipue_search_input').tipuesearch({
56
+    'mode': 'json',
57
+    'contentLocation': '/search_content.json.gz'
58
+  });
59
+
54 60
 });
55 61
 
56 62
 function resizeMenuDropdown ()
... ...
@@ -92,4 +92,4 @@ function getCookie(cname) {
92 92
       if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
93 93
   }
94 94
   return "";
95
-}
96 95
\ No newline at end of file
96
+}