jekyll-rtd-theme 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71e0be728a36e78ef8a38db4242292a0981347013258726fb82074c3d38fdc0d
4
- data.tar.gz: e41c8381aa8cf0af5780449b0567f222d3a8959a00c5a73aa51daf028f99e1c7
3
+ metadata.gz: 8d6d71f3df6935ef96991206b6a224cf0a36ccd595d83478253bf9167dcbc758
4
+ data.tar.gz: 37b55ae967ea0f8437afc6124fa73a689c18fb9efb2120a071195e5f473188cd
5
5
  SHA512:
6
- metadata.gz: ed35e6eff3b3b0ab73924527a16f52adea7f7ba95845f51e43def520b8136d3bc9c88594921a7b0b93875c75a0aa9c1b69efb3bba18e431ca344aac1c5574726
7
- data.tar.gz: 40b26d3027d9f8f379a284cc3025c51c4740346921439aec81d4d87df114b633db7644badf7cc7ef2f90bb307aa52beb326495175ef797a0804da6ad78b0ce07
6
+ metadata.gz: 331dca3e55068e1a8715fcaa7986c5210ff503aef4bf6279d2af43b3ddfe2f63519d4f3d1706b62155e60cf6938bc55f1a4ba8919b9cf89db5577529a69855a9
7
+ data.tar.gz: e7117f6baedc395c57fe17032f2884950859c7ee7693df0ff62c7a0da44dab706eee56916f54ac68886ef8ef8f54960672d246c1760b4ceaa1721ff3715a083a
@@ -1 +1 @@
1
- {%- assign version = "2.0.3" -%}
1
+ {%- assign version = "2.0.4" -%}
@@ -240,6 +240,18 @@ $(".status").click(function () {
240
240
  $(".addons").toggleClass("d-none");
241
241
  });
242
242
 
243
+ if (location.pathname == `${ui.baseurl}/search.html`) {
244
+ $.ajax(`${ui.baseurl}/pages.json`)
245
+ .done(search)
246
+ .fail((xhr, message) => debug(message));
247
+ }
248
+
249
+ toc();
250
+ initialize(location.pathname);
251
+ initialize(location.hash);
252
+ restore();
253
+ highlight();
254
+
243
255
  /* nested ul */
244
256
  $(".toc ul")
245
257
  .siblings("a")
@@ -255,18 +267,6 @@ $(".toc ul")
255
267
  link.prepend(expand);
256
268
  });
257
269
 
258
- if (location.pathname == `${ui.baseurl}/search.html`) {
259
- $.ajax(`${ui.baseurl}/pages.json`)
260
- .done(search)
261
- .fail((xhr, message) => debug(message));
262
- }
263
-
264
- toc();
265
- initialize(location.pathname);
266
- initialize(location.hash);
267
- restore();
268
- highlight();
269
-
270
270
  if ("serviceWorker" in navigator) {
271
271
  navigator.serviceWorker.register(`${ui.baseurl}/sw.caches.js`);
272
272
  } else {
@@ -1 +1 @@
1
- !function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){n(1),t.exports=n(2)},function(t,e){function n(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,l=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return l=t.done,t},e:function(t){s=!0,c=t},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw c}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t){var e=$(".toctree").find('[href="'.concat(decodeURI(t),'"]'));if(e.length>0){$(".toctree .current").removeClass("current"),e.addClass("current"),e.closest(".level-1").parent().addClass("current");for(var n=1;n<=11;n++)e.closest(".level-".concat(n)).addClass("current")}}function o(t,e){return localStorage.setItem(t,e)}function c(t){return localStorage.getItem(t)||!1}function l(){console.debug.apply(console,arguments)}var s,i,u,h;$(window).bind("hashchange",(function(){return a(location.hash||location.pathname)})),$(document).on("scroll",(function(){var t=$(this).scrollTop()+5,e=[];$(".markdown-body").find("h1,h2,h3,h4,h5,h6").each((function(){e.push({offset:$(this).offset().top,id:this.id,level:parseInt(this.tagName.slice(1))})}));for(var n=0;n<e.length;n++)t>e[n].offset&&(n<e.length-1?t<e[n+1].offset&&(1==e[n].level?a(location.pathname):a("#"+e[n].id)):a("#"+e[n].id))})),$("#toggle").click((function(){$(".sidebar-wrap,.content-wrap,.addons-wrap").toggleClass("shift")})),$(".status").click((function(){$(".addons").toggleClass("d-none")})),$(".toc ul").siblings("a").each((function(){var t=$(this),e=$('<i class="fa fa-plus-square-o"></i>');e.on("click",(function(e){return e.stopPropagation(),function(t){var e=t.closest("li");e.siblings("li.current").removeClass("current"),e.siblings().find("li.current").removeClass("current"),e.find("> ul li.current").removeClass("current"),e.toggleClass("current")}(t),!1})),t.prepend(e)})),location.pathname=="".concat(ui.baseurl,"/search.html")&&$.ajax("".concat(ui.baseurl,"/pages.json")).done((function(t){var e=new URL(location.href).searchParams.get("q");new URL(location.href).searchParams.get("lang")||ui.lang,$("input[name='q']").val(e);var r=[],a=new RegExp;try{a=new RegExp(e,"im")}catch(t){return $(".search-results .content").empty(),$(".search-results .summary").html(ui.i18n.search_results_not_found),$(".search-results h2").html(ui.i18n.search_results),l(t.message)}function o(t,e,n){return t.slice(e,n).replace(a,(function(t){return'<span class="bg-yellow">'.concat(t,"</span>")}))}var c,s=n(t);try{for(s.s();!(c=s.n()).done;){page=c.value;var i=null,u=null;try{page.title?i=page.title.match(a):"/"==page.url?page.title=ui.title:page.title=page.url}catch(t){l(t.message)}try{page.content&&(page.content=$("<div/>").html(page.content).text(),u=page.content.match(a))}catch(t){l(t.message)}if(i||u){var h=['<a href="'.concat(ui.baseurl).concat(page.url,"?highlight=").concat(e,'">').concat(page.title,"</a>")];if(u){var f=u.index-100,p=u.index+100,d="...",g="...";f<0&&(d="",f=0),p>page.content.length&&(g="",p=page.content.length),h.push('<p class="text-gray">'.concat(d).concat(o(page.content,f,p)).concat(g,"</p>"))}r.push('<li class="border-top py-4">'.concat(h.join(""),"</li>"))}}}catch(t){s.e(t)}finally{s.f()}r.length>0&&e.length>0?($(".search-results .content").html(r.join("")),$(".search-results .summary").html(ui.i18n.search_results_found.replace("#",r.length))):($(".search-results .content").empty(),$(".search-results .summary").html(ui.i18n.search_results_not_found)),$(".search-results h2").html(ui.i18n.search_results)})).fail((function(t,e){return l(e)})),$(".toctree li.current").append('<ul class="content-toc"></ul>').html((function(){var t=parseInt(this.dataset.level),e=0,n=[$(this).find(".content-toc")];$(".markdown-body").find("h2,h3,h4,h5,h6").each((function(){var r=$("<a/>").addClass("d-flex flex-items-baseline").text($(this).text()).attr("href","#".concat(this.id)),a=parseInt(this.tagName.slice(1))-1;if(a>e){var o=n[0].children("li:last")[0];o&&n.unshift($("<ul/>").appendTo(o))}else n.splice(0,Math.min(e-a,Math.max(n.length-1,0)));e=a,$("<li/>").addClass("toc level-".concat(t+a)).append(r).appendTo(n[0])})),n[0].html()||n[0].remove()})),a(location.pathname),a(location.hash),s=c("scroll"),i=c("scrollTime"),u=c("scrollHost"),s&&i&&u&&u==location.host&&Date.now()-i<6e5&&$(".sidebar").scrollTop(s),$(".sidebar").scroll((function(){o("scroll",this.scrollTop),o("scrollTime",Date.now()),o("scrollHost",location.host)})),(h=new URL(location.href).searchParams.get("highlight"))&&($(".markdown-body").find("*").each((function(){try{this.outerHTML.match(new RegExp(h,"im"))&&($(this).addClass("search-result"),$(this).parentsUntil(".markdown-body").removeClass("search-result"))}catch(t){l(t.message)}})),$(".search-result").each((function(){$(this).html((function(t,e){return e.replace(h,'<span class="bg-yellow">'.concat(h,"</span>"))}))})),$(".search input").val(h)),"serviceWorker"in navigator?navigator.serviceWorker.register("".concat(ui.baseurl,"/sw.caches.js")):l("Service Worker not supported!"),ui.collect.searchParams.append("host",location.host),ui.collect.searchParams.append("user_lang",navigator.language),ui.collect.searchParams.append("platform",navigator.platform),$.getJSON(ui.collect.toString(),(function(t){return $("#counter").html(t.count)}))},function(t,e,n){}]);
1
+ !function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){n(1),t.exports=n(2)},function(t,e){function n(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,l=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return l=t.done,t},e:function(t){s=!0,c=t},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw c}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t){var e=$(".toctree").find('[href="'.concat(decodeURI(t),'"]'));if(e.length>0){$(".toctree .current").removeClass("current"),e.addClass("current"),e.closest(".level-1").parent().addClass("current");for(var n=1;n<=11;n++)e.closest(".level-".concat(n)).addClass("current")}}function o(t,e){return localStorage.setItem(t,e)}function c(t){return localStorage.getItem(t)||!1}function l(){console.debug.apply(console,arguments)}var s,i,u,h;$(window).bind("hashchange",(function(){return a(location.hash||location.pathname)})),$(document).on("scroll",(function(){var t=$(this).scrollTop()+5,e=[];$(".markdown-body").find("h1,h2,h3,h4,h5,h6").each((function(){e.push({offset:$(this).offset().top,id:this.id,level:parseInt(this.tagName.slice(1))})}));for(var n=0;n<e.length;n++)t>e[n].offset&&(n<e.length-1?t<e[n+1].offset&&(1==e[n].level?a(location.pathname):a("#"+e[n].id)):a("#"+e[n].id))})),$("#toggle").click((function(){$(".sidebar-wrap,.content-wrap,.addons-wrap").toggleClass("shift")})),$(".status").click((function(){$(".addons").toggleClass("d-none")})),location.pathname=="".concat(ui.baseurl,"/search.html")&&$.ajax("".concat(ui.baseurl,"/pages.json")).done((function(t){var e=new URL(location.href).searchParams.get("q");new URL(location.href).searchParams.get("lang")||ui.lang,$("input[name='q']").val(e);var r=[],a=new RegExp;try{a=new RegExp(e,"im")}catch(t){return $(".search-results .content").empty(),$(".search-results .summary").html(ui.i18n.search_results_not_found),$(".search-results h2").html(ui.i18n.search_results),l(t.message)}function o(t,e,n){return t.slice(e,n).replace(a,(function(t){return'<span class="bg-yellow">'.concat(t,"</span>")}))}var c,s=n(t);try{for(s.s();!(c=s.n()).done;){page=c.value;var i=null,u=null;try{page.title?i=page.title.match(a):"/"==page.url?page.title=ui.title:page.title=page.url}catch(t){l(t.message)}try{page.content&&(page.content=$("<div/>").html(page.content).text(),u=page.content.match(a))}catch(t){l(t.message)}if(i||u){var h=['<a href="'.concat(ui.baseurl).concat(page.url,"?highlight=").concat(e,'">').concat(page.title,"</a>")];if(u){var f=u.index-100,p=u.index+100,d="...",g="...";f<0&&(d="",f=0),p>page.content.length&&(g="",p=page.content.length),h.push('<p class="text-gray">'.concat(d).concat(o(page.content,f,p)).concat(g,"</p>"))}r.push('<li class="border-top py-4">'.concat(h.join(""),"</li>"))}}}catch(t){s.e(t)}finally{s.f()}r.length>0&&e.length>0?($(".search-results .content").html(r.join("")),$(".search-results .summary").html(ui.i18n.search_results_found.replace("#",r.length))):($(".search-results .content").empty(),$(".search-results .summary").html(ui.i18n.search_results_not_found)),$(".search-results h2").html(ui.i18n.search_results)})).fail((function(t,e){return l(e)})),$(".toctree li.current").append('<ul class="content-toc"></ul>').html((function(){var t=parseInt(this.dataset.level),e=0,n=[$(this).find(".content-toc")];$(".markdown-body").find("h2,h3,h4,h5,h6").each((function(){var r=$("<a/>").addClass("d-flex flex-items-baseline").text($(this).text()).attr("href","#".concat(this.id)),a=parseInt(this.tagName.slice(1))-1;if(a>e){var o=n[0].children("li:last")[0];o&&n.unshift($("<ul/>").appendTo(o))}else n.splice(0,Math.min(e-a,Math.max(n.length-1,0)));e=a,$("<li/>").addClass("toc level-".concat(t+a)).append(r).appendTo(n[0])})),n[0].html()||n[0].remove()})),a(location.pathname),a(location.hash),s=c("scroll"),i=c("scrollTime"),u=c("scrollHost"),s&&i&&u&&u==location.host&&Date.now()-i<6e5&&$(".sidebar").scrollTop(s),$(".sidebar").scroll((function(){o("scroll",this.scrollTop),o("scrollTime",Date.now()),o("scrollHost",location.host)})),(h=new URL(location.href).searchParams.get("highlight"))&&($(".markdown-body").find("*").each((function(){try{this.outerHTML.match(new RegExp(h,"im"))&&($(this).addClass("search-result"),$(this).parentsUntil(".markdown-body").removeClass("search-result"))}catch(t){l(t.message)}})),$(".search-result").each((function(){$(this).html((function(t,e){return e.replace(h,'<span class="bg-yellow">'.concat(h,"</span>"))}))})),$(".search input").val(h)),$(".toc ul").siblings("a").each((function(){var t=$(this),e=$('<i class="fa fa-plus-square-o"></i>');e.on("click",(function(e){return e.stopPropagation(),function(t){var e=t.closest("li");e.siblings("li.current").removeClass("current"),e.siblings().find("li.current").removeClass("current"),e.find("> ul li.current").removeClass("current"),e.toggleClass("current")}(t),!1})),t.prepend(e)})),"serviceWorker"in navigator?navigator.serviceWorker.register("".concat(ui.baseurl,"/sw.caches.js")):l("Service Worker not supported!"),ui.collect.searchParams.append("host",location.host),ui.collect.searchParams.append("user_lang",navigator.language),ui.collect.searchParams.append("platform",navigator.platform),$.getJSON(ui.collect.toString(),(function(t){return $("#counter").html(t.count)}))},function(t,e,n){}]);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-rtd-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - saowang