jekyll-rtd-theme 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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}$(document).ready((function(){function t(){console.debug.apply(console,arguments)}"serviceWorker"in navigator?navigator.serviceWorker.register("".concat(ui.baseurl,"/sw.caches.js")):t("Service Worker not supported!");var e,r,a,o,c,l=new URL("https://rundocs-analytics.glitch.me/collect?v=".concat(ui.version,"&lang=").concat(ui.lang));function s(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 i(t,e){return localStorage.setItem(t,e)}function u(t){return localStorage.getItem(t)||!1}l.searchParams.append("user_lang",navigator.language),l.searchParams.append("host",location.host),l.searchParams.append("platform",navigator.platform),$.getJSON(l.toString(),(function(t){return $("#counter").html(t.count)})),location.pathname=="".concat(ui.baseurl,"/search.html")&&$.ajax("".concat(ui.baseurl,"/pages.json")).done((function(e){var r=new URL(location.href).searchParams.get("q");new URL(location.href).searchParams.get("lang")||ui.lang,$("input[name='q']").val(r);var a=[],o=new RegExp;try{o=new RegExp(r,"im")}catch(e){return $(".search-results .content").empty(),$(".search-results .summary").html(ui.i18n.search_results_not_found),$(".search-results h2").html(ui.i18n.search_results),t(e.message)}function c(t,e,n){return t.slice(e,n).replace(o,(function(t){return'<span class="highlighted">'.concat(t,"</span>")}))}var l,s=n(e);try{for(s.s();!(l=s.n()).done;){page=l.value;var i=null,u=null;try{page.title?i=page.title.match(o):"/"==page.url?page.title=ui.title:page.title=page.url}catch(e){t(e.message)}try{page.content&&(page.content=$("<div/>").html(page.content).text(),u=page.content.match(o))}catch(e){t(e.message)}if(i||u){var h=['<a href="'.concat(ui.baseurl).concat(page.url,"?highlight=").concat(r,'">').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(c(page.content,f,p)).concat(g,"</p>"))}a.push('<li class="border-top py-4">'.concat(h.join(""),"</li>"))}}}catch(t){s.e(t)}finally{s.f()}a.length>0&&r.length>0?($(".search-results .content").html(a.join("")),$(".search-results .summary").html(ui.i18n.search_results_found.replace("#",a.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(e,n){return t(n)})),$(".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()})),s(location.pathname),s(location.hash),e=u("scroll"),r=u("scrollTime"),a=u("scrollHost"),e&&r&&a&&a==location.host&&Date.now()-r<6e5&&$(".sidebar").scrollTop(e),$(".sidebar").scroll((function(){i("scroll",this.scrollTop),i("scrollTime",Date.now()),i("scrollHost",location.host)})),o=new URL(location.href).searchParams.get("highlight"),c=".highlighted-box",o&&($(".markdown-body").find("*").each((function(){try{this.outerHTML.match(new RegExp(o,"im"))&&$(this).addClass("highlighted-box")}catch(e){t(e.message)}})),$(".markdown-body").find(c).each((function(){$(this).find(c).length>0&&$(this).removeClass(c)}))),$(".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)})),$(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?s(location.pathname):s("#"+e[n].id)):s("#"+e[n].id))})),$("#toggle").click((function(){$(".sidebar-wrap,.content-wrap,.addons-wrap").toggleClass("shift")})),$(".status").click((function(){$(".addons").toggleClass("d-none")})),$(window).bind("hashchange",(function(){return s(location.hash||location.pathname)}))}))},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")})),$(".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){}]);
@@ -3,6 +3,6 @@ layout: plugins/compress
3
3
  permalink: /sw.caches.js
4
4
  ---
5
5
 
6
- {%- include reset/defaults.liquid -%}
6
+ {%- include reset/version.liquid -%}
7
7
 
8
8
  {%- include assets/sw.caches.js -%}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-rtd-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - saowang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-24 00:00:00.000000000 Z
11
+ date: 2020-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-pages
@@ -49,17 +49,22 @@ files:
49
49
  - _includes/extra/footer.html
50
50
  - _includes/extra/head.html
51
51
  - _includes/list.liquid
52
- - _includes/node/custom.liquid
53
52
  - _includes/node/links.liquid
54
53
  - _includes/node/metadata.liquid
55
54
  - _includes/node/script.extension.liquid
56
55
  - _includes/node/script.liquid
57
56
  - _includes/node/script.schema.liquid
58
57
  - _includes/node/title.liquid
58
+ - _includes/reset/content.liquid
59
59
  - _includes/reset/defaults.liquid
60
+ - _includes/reset/description.liquid
60
61
  - _includes/reset/i18n.liquid
62
+ - _includes/reset/navigation.liquid
61
63
  - _includes/reset/site_pages.liquid
62
64
  - _includes/reset/tabs.liquid
65
+ - _includes/reset/title.liquid
66
+ - _includes/reset/variables.liquid
67
+ - _includes/reset/version.liquid
63
68
  - _includes/reset/workdir.liquid
64
69
  - _includes/shortcodes/danger.liquid
65
70
  - _includes/shortcodes/mermaid.liquid
@@ -188,5 +193,5 @@ rubygems_version: 3.1.2
188
193
  signing_key:
189
194
  specification_version: 4
190
195
  summary: Opinionated github flavored standard document theme for open source projects,
191
- with few options, just use it!
196
+ with few options, but everything!
192
197
  test_files: []
@@ -1,17 +0,0 @@
1
- {%- capture custom_script -%}
2
- {%- include assets/custom.js -%}
3
- {{- site.script -}}
4
- {%- endcapture -%}
5
-
6
- {%- capture custom_scss -%}
7
- {%- include assets/custom.scss -%}
8
- {{- site.scss -}}
9
- {%- endcapture -%}
10
-
11
- {%- if custom_script.size > 0 -%}
12
- <script>{{ custom_script }}</script>
13
- {%- endif -%}
14
-
15
- {%- if custom_scss.size > 0 -%}
16
- <style>{{ custom_scss | scssify | strip_newlines }}</style>
17
- {%- endif -%}