jekyll-rtd-theme 1.1.3 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +76 -30
- data/_includes/addons/analytics.liquid +6 -3
- data/_includes/addons/github.liquid +19 -4
- data/_includes/assets/sw.caches.js +43 -0
- data/_includes/class/_breadcrumbs.liquid +28 -0
- data/_includes/class/_footer.liquid +38 -0
- data/_includes/{toctree.liquid → class/_toctree.liquid} +6 -5
- data/_includes/{addons.liquid → class/rst-versions.liquid} +6 -8
- data/_includes/class/wy-nav-content.liquid +15 -0
- data/_includes/class/wy-nav-side.liquid +18 -0
- data/_includes/class/wy-nav-top.liquid +8 -0
- data/_includes/extend/list.liquid +2 -2
- data/_includes/extend/toctree.liquid +1 -11
- data/_includes/extra/footer.html +0 -0
- data/_includes/extra/head.html +0 -0
- data/_includes/node/links.liquid +24 -0
- data/_includes/node/metadata.liquid +21 -0
- data/_includes/node/script.extension.liquid +29 -0
- data/_includes/node/script.liquid +20 -0
- data/_includes/node/script.schema.liquid +27 -0
- data/_includes/node/title.liquid +1 -0
- data/_includes/reset/defaults.liquid +58 -55
- data/_includes/reset/i18n.liquid +1 -31
- data/_includes/{extend → reset}/tabs.liquid +0 -0
- data/_includes/reset/workdir.liquid +1 -15
- data/_includes/shortcodes/danger.liquid +6 -0
- data/_includes/shortcodes/mermaid.liquid +1 -0
- data/_includes/shortcodes/note.liquid +6 -0
- data/_includes/shortcodes/tip.liquid +6 -0
- data/_includes/shortcodes/warning.liquid +6 -0
- data/_layouts/default.liquid +24 -225
- data/_layouts/plugins/compress.liquid +13 -10
- data/_layouts/plugins/extension.liquid +32 -22
- data/_sass/highlight.scss +214 -0
- data/_sass/theme.scss +15 -0
- data/assets/404.liquid +1 -1
- data/assets/css/{theme.css → theme.min.css} +0 -0
- data/assets/js/theme.js +294 -1
- data/assets/js/theme.min.js +1 -0
- data/assets/robots.liquid +1 -1
- data/assets/search.liquid +0 -15
- data/assets/sitemap.liquid +1 -1
- data/assets/sw.caches.liquid +8 -0
- metadata +29 -52
- data/_includes/addons/i18n.liquid +0 -13
- data/_includes/addons/plugins.liquid +0 -6
- data/_includes/album.liquid +0 -7
- data/_includes/assets/common.js +0 -62
- data/_includes/assets/search.js +0 -76
- data/_includes/breadcrumbs.liquid +0 -43
- data/_includes/footer.liquid +0 -37
- data/_includes/i18n/en.liquid +0 -29
- data/_includes/i18n/es.liquid +0 -29
- data/_includes/i18n/fr.liquid +0 -29
- data/_includes/i18n/it.liquid +0 -29
- data/_includes/i18n/ja.liquid +0 -29
- data/_includes/i18n/ko.liquid +0 -29
- data/_includes/i18n/ru.liquid +0 -29
- data/_includes/i18n/sv.liquid +0 -29
- data/_includes/i18n/zh-cn.liquid +0 -29
- data/_includes/reset/languages.liquid +0 -110
- data/_sass/_album.scss +0 -19
- data/_sass/_embed.scss +0 -23
- data/_sass/fluid.scss +0 -7
- data/_sass/jekyll-rtd-theme.scss +0 -128
- data/assets/css/rougify/base16.css +0 -1
- data/assets/css/rougify/base16.dark.css +0 -1
- data/assets/css/rougify/base16.light.css +0 -1
- data/assets/css/rougify/base16.monokai.css +0 -1
- data/assets/css/rougify/base16.monokai.dark.css +0 -1
- data/assets/css/rougify/base16.monokai.light.css +0 -1
- data/assets/css/rougify/base16.solarized.css +0 -1
- data/assets/css/rougify/base16.solarized.dark.css +0 -1
- data/assets/css/rougify/base16.solarized.light.css +0 -1
- data/assets/css/rougify/bw.css +0 -1
- data/assets/css/rougify/colorful.css +0 -1
- data/assets/css/rougify/github.css +0 -1
- data/assets/css/rougify/gruvbox.css +0 -1
- data/assets/css/rougify/gruvbox.dark.css +0 -1
- data/assets/css/rougify/gruvbox.light.css +0 -1
- data/assets/css/rougify/igorpro.css +0 -1
- data/assets/css/rougify/magritte.css +0 -1
- data/assets/css/rougify/molokai.css +0 -1
- data/assets/css/rougify/monokai.css +0 -1
- data/assets/css/rougify/monokai.sublime.css +0 -1
- data/assets/css/rougify/pastie.css +0 -1
- data/assets/css/rougify/thankful_eyes.css +0 -1
- data/assets/css/rougify/tulip.css +0 -1
- data/assets/js/anchor.min.js +0 -9
- data/assets/js/html5shiv.min.js +0 -4
@@ -0,0 +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){t.exports=n(1)},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)}function e(t){var e=$(".wy-menu-vertical").find('[href="'.concat(decodeURI(t),'"]'));e.length>0&&($(".wy-menu-vertical .current").removeClass("current"),e.addClass("current"),e.closest("li.toctree-l1").parent().addClass("current"),e.closest("li.toctree-l1").addClass("current"),e.closest("li.toctree-l2").addClass("current"),e.closest("li.toctree-l3").addClass("current"),e.closest("li.toctree-l4").addClass("current"),e.closest("li.toctree-l5").addClass("current"))}function r(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")}function a(t,e){return localStorage.setItem(t,e)}function o(t){return localStorage.getItem(t)||!1}"serviceWorker"in navigator?navigator.serviceWorker.register("".concat(ui.baseurl,"/sw.caches.js")):t("Service Worker not supported!");var c,l,s,i,u,h=new URL("https://rundocs-analytics.glitch.me/collect?v=".concat(ui.version,"&lang=").concat(ui.lang));h.searchParams.append("user_lang",navigator.language),h.searchParams.append("host",location.host),h.searchParams.append("platform",navigator.platform),$.getJSON(h.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").empty(),$(".search-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,g=u.index+100,d="...",p="...";f<0&&(d="",f=0),g>page.content.length&&(p="",g=page.content.length),h.push('<p class="context">'.concat(d).concat(c(page.content,f,g)).concat(p,"</p>"))}a.push("<li>".concat(h.join(""),"</li>"))}}}catch(t){s.e(t)}finally{s.f()}a.length>0&&r.length>0?($(".search").html(a.join("")),$(".search-summary").html(ui.i18n.search_results_found.replace("#",a.length))):($(".search").empty(),$(".search-summary").html(ui.i18n.search_results_not_found)),$("#search-results h2").html(ui.i18n.search_results)})).fail((function(e,n){return t(n)})),$(".wy-menu-vertical li.current").append('<ul class="content-toc"></ul>').html((function(){var t=parseInt(this.dataset.level),e=0,n=[$(this).find(".content-toc")];$(".document").find("h2,h3,h4,h5,h6").each((function(){var r=$("<a/>").addClass("reference internal").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("toctree-l".concat(t+a)).append(r).appendTo(n[0])})),n[0].html()||n[0].remove()})),e(location.pathname),c=o("scroll"),l=o("scrollTime"),s=o("scrollHost"),c&&l&&s&&s==location.host&&Date.now()-l<6e5&&$(".wy-side-scroll").scrollTop(c),$(".wy-side-scroll").scroll((function(){a("scroll",this.scrollTop),a("scrollTime",Date.now()),a("scrollHost",location.host)})),i=new URL(location.href).searchParams.get("highlight"),u=".highlighted-box",i&&($(".section").find("*").each((function(){try{this.outerHTML.match(new RegExp(i,"im"))&&$(this).addClass("highlighted-box")}catch(e){t(e.message)}})),$(".section").find(u).each((function(){$(this).find(u).length>0&&$(this).removeClass(u)}))),$(".wy-menu-vertical ul").siblings("a").each((function(){var t=$(this),e=$('<span class="toctree-expand"></span>');e.on("click",(function(e){return e.stopPropagation(),r(t),!1})),t.prepend(e)})),$(document).on("click",'[data-toggle="wy-nav-top"]',(function(){$('[data-toggle="wy-nav-shift"]').toggleClass("shift"),$('[data-toggle="rst-versions"]').toggleClass("shift")})),$(document).on("click",".wy-menu-vertical .current ul li a",(function(){$('[data-toggle="wy-nav-shift"]').removeClass("shift"),$('[data-toggle="rst-versions"]').toggleClass("shift"),r($(this))})),$(document).on("scroll",(function(){var t=$(this).scrollTop()+5,n=[];$(".document").find("h1,h2,h3,h4,h5,h6").each((function(){n.push({offset:$(this).offset().top,id:this.id,level:parseInt(this.tagName.slice(1))})}));for(var r=0;r<n.length;r++)t>n[r].offset&&(r<n.length-1?t<n[r+1].offset&&(1==n[r].level?e(location.pathname):e("#"+n[r].id)):e("#"+n[r].id))})),$(document).on("click",'[data-toggle="rst-current-version"]',(function(){$('[data-toggle="rst-versions"]').toggleClass("shift-up")})),$(window).bind("resize",(function(){requestAnimationFrame((function(){}))})),$(window).bind("hashchange",(function(){return e(location.hash||location.pathname)}))}))}]);
|
data/assets/robots.liquid
CHANGED
data/assets/search.liquid
CHANGED
@@ -11,18 +11,3 @@ permalink: /search.html
|
|
11
11
|
<p class="search-summary"></p>
|
12
12
|
<ul class="search"></ul>
|
13
13
|
</div>
|
14
|
-
|
15
|
-
<script>
|
16
|
-
const i18n = {
|
17
|
-
{%- for lang in site_langs -%}
|
18
|
-
{%- include i18n/{{ lang }}.liquid %}
|
19
|
-
"{{ lang }}": {
|
20
|
-
search_docs: "{{ __search_docs }}",
|
21
|
-
search_results: "{{ __search_results }}",
|
22
|
-
search_results_found: "{{ __search_results_found }}",
|
23
|
-
search_results_not_found: "{{ __search_results_not_found }}"
|
24
|
-
}{% unless forloop.last %},{% endunless %}
|
25
|
-
{%- endfor -%}
|
26
|
-
};
|
27
|
-
</script>
|
28
|
-
<script>{% include assets/search.js %}</script>
|
data/assets/sitemap.liquid
CHANGED
@@ -9,7 +9,7 @@ permalink: /sitemap.xml
|
|
9
9
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
10
10
|
{%- for page in site_pages -%}
|
11
11
|
<url>
|
12
|
-
<loc>{{ page.url | absolute_url |
|
12
|
+
<loc>{{ page.url | absolute_url | xml_escape }}</loc>
|
13
13
|
<priority>{{ page.content | size | divided_by: 2048.0 | times: 10 | ceil | divided_by: 10.0 | at_least: 0.1 | at_most: 1.0 }}</priority>
|
14
14
|
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
15
15
|
</url>
|
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: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- saowang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-pages
|
@@ -33,44 +33,44 @@ extra_rdoc_files: []
|
|
33
33
|
files:
|
34
34
|
- LICENSE
|
35
35
|
- README.md
|
36
|
-
- _includes/addons.liquid
|
37
36
|
- _includes/addons/analytics.liquid
|
38
37
|
- _includes/addons/github.liquid
|
39
|
-
- _includes/addons/i18n.liquid
|
40
|
-
- _includes/addons/plugins.liquid
|
41
|
-
- _includes/album.liquid
|
42
|
-
- _includes/assets/common.js
|
43
38
|
- _includes/assets/custom.js
|
44
39
|
- _includes/assets/custom.scss
|
45
|
-
- _includes/assets/
|
46
|
-
- _includes/
|
40
|
+
- _includes/assets/sw.caches.js
|
41
|
+
- _includes/class/_breadcrumbs.liquid
|
42
|
+
- _includes/class/_footer.liquid
|
43
|
+
- _includes/class/_toctree.liquid
|
44
|
+
- _includes/class/rst-versions.liquid
|
45
|
+
- _includes/class/wy-nav-content.liquid
|
46
|
+
- _includes/class/wy-nav-side.liquid
|
47
|
+
- _includes/class/wy-nav-top.liquid
|
47
48
|
- _includes/extend/list.liquid
|
48
|
-
- _includes/extend/tabs.liquid
|
49
49
|
- _includes/extend/toctree.liquid
|
50
|
-
- _includes/footer.
|
51
|
-
- _includes/
|
52
|
-
- _includes/i18n/es.liquid
|
53
|
-
- _includes/i18n/fr.liquid
|
54
|
-
- _includes/i18n/it.liquid
|
55
|
-
- _includes/i18n/ja.liquid
|
56
|
-
- _includes/i18n/ko.liquid
|
57
|
-
- _includes/i18n/ru.liquid
|
58
|
-
- _includes/i18n/sv.liquid
|
59
|
-
- _includes/i18n/zh-cn.liquid
|
50
|
+
- _includes/extra/footer.html
|
51
|
+
- _includes/extra/head.html
|
60
52
|
- _includes/list.liquid
|
53
|
+
- _includes/node/links.liquid
|
54
|
+
- _includes/node/metadata.liquid
|
55
|
+
- _includes/node/script.extension.liquid
|
56
|
+
- _includes/node/script.liquid
|
57
|
+
- _includes/node/script.schema.liquid
|
58
|
+
- _includes/node/title.liquid
|
61
59
|
- _includes/reset/defaults.liquid
|
62
60
|
- _includes/reset/i18n.liquid
|
63
|
-
- _includes/reset/languages.liquid
|
64
61
|
- _includes/reset/site_pages.liquid
|
62
|
+
- _includes/reset/tabs.liquid
|
65
63
|
- _includes/reset/workdir.liquid
|
66
|
-
- _includes/
|
64
|
+
- _includes/shortcodes/danger.liquid
|
65
|
+
- _includes/shortcodes/mermaid.liquid
|
66
|
+
- _includes/shortcodes/note.liquid
|
67
|
+
- _includes/shortcodes/tip.liquid
|
68
|
+
- _includes/shortcodes/warning.liquid
|
67
69
|
- _layouts/default.liquid
|
68
70
|
- _layouts/plugins/compress.liquid
|
69
71
|
- _layouts/plugins/extension.liquid
|
70
|
-
- _sass/
|
71
|
-
- _sass/
|
72
|
-
- _sass/fluid.scss
|
73
|
-
- _sass/jekyll-rtd-theme.scss
|
72
|
+
- _sass/highlight.scss
|
73
|
+
- _sass/theme.scss
|
74
74
|
- assets/404.liquid
|
75
75
|
- assets/css/fonts/Roboto-Slab-Bold.woff
|
76
76
|
- assets/css/fonts/Roboto-Slab-Bold.woff2
|
@@ -89,40 +89,17 @@ files:
|
|
89
89
|
- assets/css/fonts/lato-normal-italic.woff2
|
90
90
|
- assets/css/fonts/lato-normal.woff
|
91
91
|
- assets/css/fonts/lato-normal.woff2
|
92
|
-
- assets/css/
|
93
|
-
- assets/css/rougify/base16.dark.css
|
94
|
-
- assets/css/rougify/base16.light.css
|
95
|
-
- assets/css/rougify/base16.monokai.css
|
96
|
-
- assets/css/rougify/base16.monokai.dark.css
|
97
|
-
- assets/css/rougify/base16.monokai.light.css
|
98
|
-
- assets/css/rougify/base16.solarized.css
|
99
|
-
- assets/css/rougify/base16.solarized.dark.css
|
100
|
-
- assets/css/rougify/base16.solarized.light.css
|
101
|
-
- assets/css/rougify/bw.css
|
102
|
-
- assets/css/rougify/colorful.css
|
103
|
-
- assets/css/rougify/github.css
|
104
|
-
- assets/css/rougify/gruvbox.css
|
105
|
-
- assets/css/rougify/gruvbox.dark.css
|
106
|
-
- assets/css/rougify/gruvbox.light.css
|
107
|
-
- assets/css/rougify/igorpro.css
|
108
|
-
- assets/css/rougify/magritte.css
|
109
|
-
- assets/css/rougify/molokai.css
|
110
|
-
- assets/css/rougify/monokai.css
|
111
|
-
- assets/css/rougify/monokai.sublime.css
|
112
|
-
- assets/css/rougify/pastie.css
|
113
|
-
- assets/css/rougify/thankful_eyes.css
|
114
|
-
- assets/css/rougify/tulip.css
|
115
|
-
- assets/css/theme.css
|
92
|
+
- assets/css/theme.min.css
|
116
93
|
- assets/favicon.liquid
|
117
|
-
- assets/js/anchor.min.js
|
118
|
-
- assets/js/html5shiv.min.js
|
119
94
|
- assets/js/jquery.min.js
|
120
95
|
- assets/js/mermaid.min.js
|
121
96
|
- assets/js/theme.js
|
97
|
+
- assets/js/theme.min.js
|
122
98
|
- assets/pages.liquid
|
123
99
|
- assets/robots.liquid
|
124
100
|
- assets/search.liquid
|
125
101
|
- assets/sitemap.liquid
|
102
|
+
- assets/sw.caches.liquid
|
126
103
|
homepage: https://github.com/rundocs/jekyll-rtd-theme
|
127
104
|
licenses:
|
128
105
|
- MIT
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<dl>
|
2
|
-
<dt>{{ __translations }}</dt>
|
3
|
-
{%- for item in site_langs -%}
|
4
|
-
<dd>
|
5
|
-
{%- if item == site_lang -%}
|
6
|
-
{%- assign url = "" -%}
|
7
|
-
{%- else -%}
|
8
|
-
{%- assign url = item | append: "/" -%}
|
9
|
-
{%- endif -%}
|
10
|
-
<a href="{{ site.baseurl }}/{{ url }}"><i class="fa fa-language"></i> {{ item }}</a>
|
11
|
-
</dd>
|
12
|
-
{%- endfor -%}
|
13
|
-
</dl>
|
data/_includes/album.liquid
DELETED
data/_includes/assets/common.js
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
$(document).ready(function() {
|
2
|
-
let analytics = new URL("https://rundocs-analytics.glitch.me/collect?v={{ version }}&lang={{ lang }}");
|
3
|
-
let highlight = new URL(location.href).searchParams.get("highlight");
|
4
|
-
|
5
|
-
/* content toc */
|
6
|
-
$(".wy-menu-vertical li.current").append(function() {
|
7
|
-
let level = parseInt($(this).attr("class").match(/toctree-l(\d)/)[1]) + 1;
|
8
|
-
let toc = ["<ul>"];
|
9
|
-
|
10
|
-
$(".document").find("h2,h3,h4,h5,h6").each(function() {
|
11
|
-
toc.push(`<li class="toctree-l${level}"><a class="reference internal" href="#${this.id}">${$(this).html()}</a></li>`);
|
12
|
-
});
|
13
|
-
toc.push("</ul>");
|
14
|
-
/* return is apend */
|
15
|
-
if (toc.length == 2) {
|
16
|
-
return "";
|
17
|
-
} else {
|
18
|
-
return toc.join("");
|
19
|
-
}
|
20
|
-
});
|
21
|
-
|
22
|
-
SphinxRtdTheme.Navigation.reset = function() {
|
23
|
-
const link = $(".wy-menu-vertical").find(`[href="${location.pathname}"]`);
|
24
|
-
if (link.length > 0) {
|
25
|
-
$(".wy-menu-vertical .current").removeClass("current");
|
26
|
-
link.addClass("current");
|
27
|
-
link.closest("li.toctree-l1").parent().addClass("current");
|
28
|
-
link.closest("li.toctree-l1").addClass("current");
|
29
|
-
link.closest("li.toctree-l2").addClass("current");
|
30
|
-
link.closest("li.toctree-l3").addClass("current");
|
31
|
-
link.closest("li.toctree-l4").addClass("current");
|
32
|
-
link.closest("li.toctree-l5").addClass("current");
|
33
|
-
}
|
34
|
-
};
|
35
|
-
SphinxRtdTheme.Navigation.enable(true);
|
36
|
-
|
37
|
-
if (highlight) {
|
38
|
-
$(".section").find("*").each(function() {
|
39
|
-
try {
|
40
|
-
if (this.outerHTML.match(new RegExp(highlight, "im"))) {
|
41
|
-
$(this).addClass("highlighted-box");
|
42
|
-
}
|
43
|
-
} catch (e) {
|
44
|
-
feedback(["highlight", e.message]);
|
45
|
-
}
|
46
|
-
});
|
47
|
-
$(".section").find(".highlighted-box").each(function() {
|
48
|
-
if (($(this).find(".highlighted-box").length > 0)) {
|
49
|
-
$(this).removeClass("highlighted-box");
|
50
|
-
}
|
51
|
-
});
|
52
|
-
}
|
53
|
-
$(".admonition-title").each(function() {
|
54
|
-
$(this).html(ui.admonition[$(this).attr("ui")]);
|
55
|
-
});
|
56
|
-
anchors.add();
|
57
|
-
|
58
|
-
analytics.searchParams.append("user_lang", navigator.language);
|
59
|
-
analytics.searchParams.append("host", location.host);
|
60
|
-
analytics.searchParams.append("platform", navigator.platform);
|
61
|
-
$.getJSON(analytics.toString(), (data) => $("#counter").html(data.count));
|
62
|
-
});
|
data/_includes/assets/search.js
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
function search(data) {
|
2
|
-
let text = new URL(location.href).searchParams.get("q");
|
3
|
-
let lang = new URL(location.href).searchParams.get("lang") || ui.lang;
|
4
|
-
|
5
|
-
$("input[name='q']").val(text);
|
6
|
-
$("input[name='q']").attr("placeholder", i18n[lang].search_docs + "...");
|
7
|
-
|
8
|
-
let results = [];
|
9
|
-
let regexp = new RegExp();
|
10
|
-
try {
|
11
|
-
regexp = new RegExp(text, "im");
|
12
|
-
} catch (e) {
|
13
|
-
$(".search").empty();
|
14
|
-
$(".search-summary").html(i18n[lang].search_results_not_found);
|
15
|
-
$("#search-results h2").html(i18n[lang].search_results);
|
16
|
-
return feedback(["search", e.message]);
|
17
|
-
}
|
18
|
-
|
19
|
-
function slice(content, min, max) {
|
20
|
-
return content.slice(min, max).replace(regexp, (match) => `<span class="highlighted">${match}</span>`);
|
21
|
-
}
|
22
|
-
for (page of data) {
|
23
|
-
let [title, content] = [null, null];
|
24
|
-
try {
|
25
|
-
if (page.title) {
|
26
|
-
title = page.title.match(regexp);
|
27
|
-
} else {
|
28
|
-
if (page.url == "/") {
|
29
|
-
page.title = ui.title;
|
30
|
-
} else {
|
31
|
-
page.title = page.url;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
} catch (e) {
|
35
|
-
feedback(["search", e.message]);
|
36
|
-
}
|
37
|
-
try {
|
38
|
-
if (page.content) {
|
39
|
-
page.content = $("<div/>").html(page.content).text();
|
40
|
-
content = page.content.match(regexp);
|
41
|
-
}
|
42
|
-
} catch (e) {
|
43
|
-
feedback(["search", e.message]);
|
44
|
-
}
|
45
|
-
if (title || content) {
|
46
|
-
let result = [`<a href="${ui.baseurl}${page.url}?highlight=${text}">${page.title}</a>`];
|
47
|
-
if (content) {
|
48
|
-
let [min, max] = [content.index - 100, content.index + 100];
|
49
|
-
let [prefix, suffix] = ["...", "..."];
|
50
|
-
|
51
|
-
if (min < 0) {
|
52
|
-
prefix = "";
|
53
|
-
min = 0;
|
54
|
-
}
|
55
|
-
if (max > page.content.length) {
|
56
|
-
suffix = "";
|
57
|
-
max = page.content.length;
|
58
|
-
}
|
59
|
-
result.push(`<p class="context">${prefix}${slice(page.content ,min, max)}${suffix}</p>`);
|
60
|
-
}
|
61
|
-
results.push(`<li>${result.join("")}</li>`);
|
62
|
-
}
|
63
|
-
}
|
64
|
-
if (results.length > 0 && text.length > 0) {
|
65
|
-
$(".search").html(results.join(""));
|
66
|
-
$(".search-summary").html(i18n[lang].search_results_found.replace("#", results.length));
|
67
|
-
} else {
|
68
|
-
$(".search").empty();
|
69
|
-
$(".search-summary").html(i18n[lang].search_results_not_found);
|
70
|
-
}
|
71
|
-
$("#search-results h2").html(i18n[lang].search_results);
|
72
|
-
}
|
73
|
-
|
74
|
-
$(document).ready(function() {
|
75
|
-
$.ajax(`${ui.baseurl}/pages.json`).done(search).fail((xhr, message) => feedback(["search", message]));
|
76
|
-
});
|
@@ -1,43 +0,0 @@
|
|
1
|
-
<div role="navigation" aria-label="breadcrumbs navigation">
|
2
|
-
<ul class="wy-breadcrumbs">
|
3
|
-
<li>
|
4
|
-
<a href="{{ site.baseurl }}/" class="icon icon-home"></a><i class="fa fa-angle-double-right"></i>
|
5
|
-
</li>
|
6
|
-
{%- case page.url -%}
|
7
|
-
{%- when "/search.html" %}
|
8
|
-
<li>{{ __search }}</li>
|
9
|
-
{%- when "/404.html" %}
|
10
|
-
<li>{{ __404 }}</li>
|
11
|
-
{%- else -%}
|
12
|
-
{%- assign blocks = page.path | split: "/" -%}
|
13
|
-
{%- assign length = blocks | size -%}
|
14
|
-
{%- if page.dir == page.url and page.url != "/" -%}
|
15
|
-
{%- assign length = blocks | size | minus: 1 -%}
|
16
|
-
{%- endif -%}
|
17
|
-
{%- for block in blocks limit: length -%}
|
18
|
-
{%- if forloop.last %}
|
19
|
-
<li>{{ page.title }}</li>
|
20
|
-
{%- else -%}
|
21
|
-
{%- capture href -%}
|
22
|
-
{{ site.baseurl }}/{% for block in blocks limit: forloop.index %}{{ block | append: "/" }}{% endfor %}
|
23
|
-
{%- endcapture %}
|
24
|
-
<li>
|
25
|
-
<a href="{{ href }}">
|
26
|
-
{%- if block == lang -%}
|
27
|
-
{{ block }}
|
28
|
-
{%- else -%}
|
29
|
-
{{ block | capitalize }}
|
30
|
-
{%- endif -%}
|
31
|
-
</a><i class="fa fa-angle-double-right"></i>
|
32
|
-
</li>
|
33
|
-
{%- endif -%}
|
34
|
-
{%- endfor -%}
|
35
|
-
{%- endcase %}
|
36
|
-
{%- if site.edit and site.github_metadata != false -%}
|
37
|
-
<li class="wy-breadcrumbs-aside">
|
38
|
-
<a href="{{ github_edit_link }}" class="fa fa-edit" target="_blank"></a>
|
39
|
-
</li>
|
40
|
-
{%- endif -%}
|
41
|
-
</ul>
|
42
|
-
<hr>
|
43
|
-
</div>
|
data/_includes/footer.liquid
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
<footer>
|
2
|
-
{%- if next or prev -%}
|
3
|
-
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
4
|
-
{%- if next -%}
|
5
|
-
<a href="{{ next.url | relative_url }}" class="btn btn-neutral float-right" title="{{ next.title }}" accesskey="n" rel="next">
|
6
|
-
{{- __next }} <span class="fa fa-arrow-circle-right"></span>
|
7
|
-
</a>
|
8
|
-
{%- endif -%}
|
9
|
-
{%- if prev -%}
|
10
|
-
<a href="{{ prev.url | relative_url }}" class="btn btn-neutral float-left" title="{{ prev.title }}" accesskey="p" rel="prev">
|
11
|
-
<span class="fa fa-arrow-circle-left"></span> {{ __previous -}}
|
12
|
-
</a>
|
13
|
-
{%- endif -%}
|
14
|
-
</div>
|
15
|
-
{%- endif -%}
|
16
|
-
<hr>
|
17
|
-
{%- if site.copyright -%}
|
18
|
-
<div role="contentinfo" class="copyright">
|
19
|
-
<p>
|
20
|
-
<i class="fa fa-copyright"></i> {{ __copyright }}
|
21
|
-
{% if site.copyright.since -%}
|
22
|
-
{{ site.copyright.since | append: "-" }}
|
23
|
-
{%- endif -%}
|
24
|
-
{{ site.time | date: "%Y" }},
|
25
|
-
{{ author }}
|
26
|
-
{% if site.copyright.revision and site.github_metadata != false -%}
|
27
|
-
<span class="commit">
|
28
|
-
{{ __revision }} <code>{{ commit }}</code>
|
29
|
-
</span>
|
30
|
-
{%- endif -%}
|
31
|
-
</p>
|
32
|
-
</div>
|
33
|
-
{%- endif -%}
|
34
|
-
<div role="contentinfo" class="copyright rundocs">
|
35
|
-
<p>Powered by <a href="https://rundocs.io">rundocs.io</a> using the jekyll docs theme <a href="https://rundocs.github.io/jekyll-rtd-theme">jekyll-rtd-theme</a></p>
|
36
|
-
</div>
|
37
|
-
</footer>
|
data/_includes/i18n/en.liquid
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
{% comment %} English {% endcomment %}
|
2
|
-
{%- assign __github = "GitHub" -%}
|
3
|
-
{%- assign __homepage = "Homepage" -%}
|
4
|
-
{%- assign __issues = "Issues" -%}
|
5
|
-
{%- assign __download = "Download" -%}
|
6
|
-
{%- assign __plugins = "Theme Plugins" -%}
|
7
|
-
{%- assign __translations = "Translations" -%}
|
8
|
-
{%- assign __statistics = "Statistics" -%}
|
9
|
-
{%- assign __total_visits = "Total visits:" -%}
|
10
|
-
|
11
|
-
{%- assign __note = "Note" -%}
|
12
|
-
{%- assign __tip = "Tip" -%}
|
13
|
-
{%- assign __warning = "Warning" -%}
|
14
|
-
{%- assign __danger = "Danger" -%}
|
15
|
-
|
16
|
-
{%- assign __next = "Next" -%}
|
17
|
-
{%- assign __previous = "Previous" -%}
|
18
|
-
{%- assign __copyright = "Copyright" -%}
|
19
|
-
{%- assign __revision = "Revision" -%}
|
20
|
-
|
21
|
-
{%- assign __404 = "404" -%}
|
22
|
-
{%- assign __not_found = "This page does not exist yet!" -%}
|
23
|
-
|
24
|
-
{%- assign __searching = "Searching" -%}
|
25
|
-
{%- assign __search = "Search" -%}
|
26
|
-
{%- assign __search_docs = "Search Docs" -%}
|
27
|
-
{%- assign __search_results = "Search Results" -%}
|
28
|
-
{%- assign __search_results_found = "Search finished, found # page(s) matching the search query." -%}
|
29
|
-
{%- assign __search_results_not_found = "Your search did not match any documents, please make sure that all characters are spelled correctly!" -%}
|