jekyll-rtd-theme 1.1.7 → 2.0.0.pre.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -9
- data/_includes/addons/analytics.liquid +5 -12
- data/_includes/addons/github.liquid +16 -18
- data/_includes/assets/sw.caches.js +38 -28
- data/_includes/breadcrumbs.liquid +20 -36
- data/_includes/extend/toctree.liquid +6 -15
- data/_includes/footer.liquid +29 -32
- data/_includes/reset/defaults.liquid +3 -37
- data/_includes/reset/workdir.liquid +1 -14
- data/_includes/safe/shortcodes.liquid +9 -0
- data/_includes/shortcodes/danger.liquid +7 -0
- data/_includes/shortcodes/mermaid.liquid +1 -0
- data/_includes/shortcodes/note.liquid +7 -0
- data/_includes/shortcodes/tip.liquid +7 -0
- data/_includes/shortcodes/warning.liquid +7 -0
- data/_includes/toctree.liquid +2 -5
- data/_layouts/default.liquid +90 -147
- data/_layouts/plugins/compress.liquid +13 -10
- data/_layouts/plugins/extension.liquid +30 -22
- data/_sass/@primer/base/base.scss +90 -0
- data/_sass/@primer/base/index.scss +6 -0
- data/_sass/@primer/base/kbd.scss +21 -0
- data/_sass/@primer/base/normalize.scss +423 -0
- data/_sass/@primer/base/typography-base.scss +100 -0
- data/_sass/@primer/breadcrumb/breadcrumb.scss +28 -0
- data/_sass/@primer/breadcrumb/index.scss +3 -0
- data/_sass/@primer/buttons/button-group.scss +91 -0
- data/_sass/@primer/buttons/button.scss +296 -0
- data/_sass/@primer/buttons/index.scss +4 -0
- data/_sass/@primer/buttons/misc.scss +205 -0
- data/_sass/@primer/forms/form-control.scss +278 -0
- data/_sass/@primer/forms/form-group.scss +279 -0
- data/_sass/@primer/forms/form-select.scss +38 -0
- data/_sass/@primer/forms/form-validation.scss +369 -0
- data/_sass/@primer/forms/index.scss +7 -0
- data/_sass/@primer/forms/input-group.scss +53 -0
- data/_sass/@primer/forms/radio-group.scss +43 -0
- data/_sass/@primer/markdown/blob-csv.scss +31 -0
- data/_sass/@primer/markdown/code.scss +73 -0
- data/_sass/@primer/markdown/headings.scss +72 -0
- data/_sass/@primer/markdown/images.scss +131 -0
- data/_sass/@primer/markdown/index.scss +8 -0
- data/_sass/@primer/markdown/lists.scss +76 -0
- data/_sass/@primer/markdown/markdown-body.scss +99 -0
- data/_sass/@primer/markdown/tables.scss +38 -0
- data/_sass/@primer/support/index.scss +11 -0
- data/_sass/@primer/support/mixins/buttons.scss +184 -0
- data/_sass/@primer/support/mixins/layout.scss +55 -0
- data/_sass/@primer/support/mixins/misc.scss +32 -0
- data/_sass/@primer/support/mixins/typography.scss +88 -0
- data/_sass/@primer/support/variables/color-system.scss +243 -0
- data/_sass/@primer/support/variables/colors.scss +55 -0
- data/_sass/@primer/support/variables/layout.scss +149 -0
- data/_sass/@primer/support/variables/misc.scss +42 -0
- data/_sass/@primer/support/variables/typography.scss +43 -0
- data/_sass/@primer/utilities/animations.scss +187 -0
- data/_sass/@primer/utilities/borders.scss +184 -0
- data/_sass/@primer/utilities/box-shadow.scss +25 -0
- data/_sass/@primer/utilities/colors.scss +185 -0
- data/_sass/@primer/utilities/details.scss +34 -0
- data/_sass/@primer/utilities/flexbox.scss +121 -0
- data/_sass/@primer/utilities/index.scss +14 -0
- data/_sass/@primer/utilities/layout.scss +134 -0
- data/_sass/@primer/utilities/margin.scss +68 -0
- data/_sass/@primer/utilities/padding.scss +59 -0
- data/_sass/@primer/utilities/typography.scss +325 -0
- data/_sass/@primer/utilities/visibility-display.scss +82 -0
- data/_sass/_font-face.scss +65 -0
- data/_sass/_icons.scss +53 -0
- data/_sass/_layout.scss +76 -0
- data/_sass/_reset.scss +21 -0
- data/_sass/_root.scss +9 -0
- data/_sass/_variables.scss +29 -0
- data/_sass/class/addons-wrap.scss +39 -0
- data/_sass/class/container.scss +11 -0
- data/_sass/class/content-wrap.scss +4 -0
- data/_sass/class/header.scss +10 -0
- data/_sass/class/highlight.scss +214 -0
- data/_sass/class/markdown-body.scss +49 -0
- data/_sass/class/sidebar-wrap.scss +72 -0
- data/_sass/class/title.scss +13 -0
- data/_sass/theme.scss +29 -0
- data/assets/404.liquid +2 -4
- data/assets/css/theme.min.css +1 -0
- data/assets/css/theme.scss +4 -0
- data/assets/js/mermaid.min.js +6 -5
- data/assets/js/search.js +90 -0
- data/assets/js/theme.js +228 -0
- data/assets/js/theme.min.js +1 -0
- data/assets/search.liquid +5 -12
- metadata +79 -56
- data/_includes/addons.liquid +0 -28
- 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 -167
- data/_includes/assets/custom.js +0 -0
- data/_includes/assets/custom.scss +0 -0
- data/_includes/assets/search.js +0 -76
- data/_includes/extra/footer.html +0 -0
- data/_includes/extra/head.html +0 -0
- 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/i18n.liquid +0 -31
- 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 -162
- 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/css/theme.css +0 -4
- 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(o){if(e[o])return e[o].exports;var a=e[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(o,a,function(e){return t[e]}.bind(null,a));return o},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){$(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,n,o,a,r,i=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");$(".toctree a").children("span").html('<i class="fa fa-plus-square-o"></i>'),$(".toctree a.current").children("span").html('<i class="fa fa-minus-square-o"></i>')}}function l(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 c(t,e){return localStorage.setItem(t,e)}function u(t){return localStorage.getItem(t)||!1}i.searchParams.append("user_lang",navigator.language),i.searchParams.append("host",location.host),i.searchParams.append("platform",navigator.platform),$.getJSON(i.toString(),(function(t){return $("#counter").html(t.count)})),$(".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 o=$("<a/>").addClass("d-flex").text($(this).text()).attr("href","#".concat(this.id)),a=parseInt(this.tagName.slice(1))-1;if(a>e){var r=n[0].children("li:last")[0];r&&n.unshift($("<ul/>").appendTo(r))}else n.splice(0,Math.min(e-a,Math.max(n.length-1,0)));e=a,$("<li/>").addClass("toc level-".concat(t+a)).append(o).appendTo(n[0])})),n[0].html()||n[0].remove()})),s(location.pathname),s(location.hash),e=u("scroll"),n=u("scrollTime"),o=u("scrollHost"),e&&n&&o&&o==location.host&&Date.now()-n<6e5&&$(".sidebar").scrollTop(e),$(".sidebar").scroll((function(){c("scroll",this.scrollTop),c("scrollTime",Date.now()),c("scrollHost",location.host)})),a=new URL(location.href).searchParams.get("highlight"),r=".highlighted-box",a&&($(".markdown-body").find("*").each((function(){try{this.outerHTML.match(new RegExp(a,"im"))&&$(this).addClass("highlighted-box")}catch(e){t(e.message)}})),$(".markdown-body").find(r).each((function(){$(this).find(r).length>0&&$(this).removeClass(r)}))),$(".toc ul").siblings("a").each((function(){var t=$(this),e=$('<span class="toctree-expand"><i class="fa fa-plus-square-o"></i></span>');e.on("click",(function(e){return e.stopPropagation(),l(t),!1})),t.prepend(e)})),$(".admonition-title").each((function(){$(this).children(".progress").replaceWith(ui.admonition[$(this).attr("ui")])})),$(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"),l($(this))})),$(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("resize",(function(){requestAnimationFrame((function(){}))})),$(window).bind("hashchange",(function(){return s(location.hash||location.pathname)}))}))},function(t,e,n){}]);
|
data/assets/search.liquid
CHANGED
@@ -4,7 +4,6 @@ permalink: /search.html
|
|
4
4
|
---
|
5
5
|
|
6
6
|
{%- include reset/site_pages.liquid -%}
|
7
|
-
{%- include reset/i18n.liquid -%}
|
8
7
|
|
9
8
|
<div id="search-results">
|
10
9
|
<h2>{{ __searching }}<span class="progress"></span></h2>
|
@@ -13,16 +12,10 @@ permalink: /search.html
|
|
13
12
|
</div>
|
14
13
|
|
15
14
|
<script>
|
16
|
-
|
17
|
-
{
|
18
|
-
|
19
|
-
|
20
|
-
|
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 -%}
|
15
|
+
window.i18n = {
|
16
|
+
search_docs: "{{ __search_docs }}",
|
17
|
+
search_results: "{{ __search_results }}",
|
18
|
+
search_results_found: "{{ __search_results_found }}",
|
19
|
+
search_results_not_found: "{{ __search_results_not_found }}"
|
26
20
|
};
|
27
21
|
</script>
|
28
|
-
<script>{% include assets/search.js %}</script>
|
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:
|
4
|
+
version: 2.0.0.pre.beta
|
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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-pages
|
@@ -33,47 +33,91 @@ 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
|
-
- _includes/assets/custom.js
|
44
|
-
- _includes/assets/custom.scss
|
45
|
-
- _includes/assets/search.js
|
46
38
|
- _includes/assets/sw.caches.js
|
47
39
|
- _includes/breadcrumbs.liquid
|
48
40
|
- _includes/extend/list.liquid
|
49
41
|
- _includes/extend/tabs.liquid
|
50
42
|
- _includes/extend/toctree.liquid
|
51
|
-
- _includes/extra/footer.html
|
52
|
-
- _includes/extra/head.html
|
53
43
|
- _includes/footer.liquid
|
54
|
-
- _includes/i18n/en.liquid
|
55
|
-
- _includes/i18n/es.liquid
|
56
|
-
- _includes/i18n/fr.liquid
|
57
|
-
- _includes/i18n/it.liquid
|
58
|
-
- _includes/i18n/ja.liquid
|
59
|
-
- _includes/i18n/ko.liquid
|
60
|
-
- _includes/i18n/ru.liquid
|
61
|
-
- _includes/i18n/sv.liquid
|
62
|
-
- _includes/i18n/zh-cn.liquid
|
63
44
|
- _includes/list.liquid
|
64
45
|
- _includes/reset/defaults.liquid
|
65
|
-
- _includes/reset/i18n.liquid
|
66
|
-
- _includes/reset/languages.liquid
|
67
46
|
- _includes/reset/site_pages.liquid
|
68
47
|
- _includes/reset/workdir.liquid
|
48
|
+
- _includes/safe/shortcodes.liquid
|
49
|
+
- _includes/shortcodes/danger.liquid
|
50
|
+
- _includes/shortcodes/mermaid.liquid
|
51
|
+
- _includes/shortcodes/note.liquid
|
52
|
+
- _includes/shortcodes/tip.liquid
|
53
|
+
- _includes/shortcodes/warning.liquid
|
69
54
|
- _includes/toctree.liquid
|
70
55
|
- _layouts/default.liquid
|
71
56
|
- _layouts/plugins/compress.liquid
|
72
57
|
- _layouts/plugins/extension.liquid
|
73
|
-
- _sass/
|
74
|
-
- _sass/
|
75
|
-
- _sass/
|
76
|
-
- _sass/
|
58
|
+
- _sass/@primer/base/base.scss
|
59
|
+
- _sass/@primer/base/index.scss
|
60
|
+
- _sass/@primer/base/kbd.scss
|
61
|
+
- _sass/@primer/base/normalize.scss
|
62
|
+
- _sass/@primer/base/typography-base.scss
|
63
|
+
- _sass/@primer/breadcrumb/breadcrumb.scss
|
64
|
+
- _sass/@primer/breadcrumb/index.scss
|
65
|
+
- _sass/@primer/buttons/button-group.scss
|
66
|
+
- _sass/@primer/buttons/button.scss
|
67
|
+
- _sass/@primer/buttons/index.scss
|
68
|
+
- _sass/@primer/buttons/misc.scss
|
69
|
+
- _sass/@primer/forms/form-control.scss
|
70
|
+
- _sass/@primer/forms/form-group.scss
|
71
|
+
- _sass/@primer/forms/form-select.scss
|
72
|
+
- _sass/@primer/forms/form-validation.scss
|
73
|
+
- _sass/@primer/forms/index.scss
|
74
|
+
- _sass/@primer/forms/input-group.scss
|
75
|
+
- _sass/@primer/forms/radio-group.scss
|
76
|
+
- _sass/@primer/markdown/blob-csv.scss
|
77
|
+
- _sass/@primer/markdown/code.scss
|
78
|
+
- _sass/@primer/markdown/headings.scss
|
79
|
+
- _sass/@primer/markdown/images.scss
|
80
|
+
- _sass/@primer/markdown/index.scss
|
81
|
+
- _sass/@primer/markdown/lists.scss
|
82
|
+
- _sass/@primer/markdown/markdown-body.scss
|
83
|
+
- _sass/@primer/markdown/tables.scss
|
84
|
+
- _sass/@primer/support/index.scss
|
85
|
+
- _sass/@primer/support/mixins/buttons.scss
|
86
|
+
- _sass/@primer/support/mixins/layout.scss
|
87
|
+
- _sass/@primer/support/mixins/misc.scss
|
88
|
+
- _sass/@primer/support/mixins/typography.scss
|
89
|
+
- _sass/@primer/support/variables/color-system.scss
|
90
|
+
- _sass/@primer/support/variables/colors.scss
|
91
|
+
- _sass/@primer/support/variables/layout.scss
|
92
|
+
- _sass/@primer/support/variables/misc.scss
|
93
|
+
- _sass/@primer/support/variables/typography.scss
|
94
|
+
- _sass/@primer/utilities/animations.scss
|
95
|
+
- _sass/@primer/utilities/borders.scss
|
96
|
+
- _sass/@primer/utilities/box-shadow.scss
|
97
|
+
- _sass/@primer/utilities/colors.scss
|
98
|
+
- _sass/@primer/utilities/details.scss
|
99
|
+
- _sass/@primer/utilities/flexbox.scss
|
100
|
+
- _sass/@primer/utilities/index.scss
|
101
|
+
- _sass/@primer/utilities/layout.scss
|
102
|
+
- _sass/@primer/utilities/margin.scss
|
103
|
+
- _sass/@primer/utilities/padding.scss
|
104
|
+
- _sass/@primer/utilities/typography.scss
|
105
|
+
- _sass/@primer/utilities/visibility-display.scss
|
106
|
+
- _sass/_font-face.scss
|
107
|
+
- _sass/_icons.scss
|
108
|
+
- _sass/_layout.scss
|
109
|
+
- _sass/_reset.scss
|
110
|
+
- _sass/_root.scss
|
111
|
+
- _sass/_variables.scss
|
112
|
+
- _sass/class/addons-wrap.scss
|
113
|
+
- _sass/class/container.scss
|
114
|
+
- _sass/class/content-wrap.scss
|
115
|
+
- _sass/class/header.scss
|
116
|
+
- _sass/class/highlight.scss
|
117
|
+
- _sass/class/markdown-body.scss
|
118
|
+
- _sass/class/sidebar-wrap.scss
|
119
|
+
- _sass/class/title.scss
|
120
|
+
- _sass/theme.scss
|
77
121
|
- assets/404.liquid
|
78
122
|
- assets/css/fonts/Roboto-Slab-Bold.woff
|
79
123
|
- assets/css/fonts/Roboto-Slab-Bold.woff2
|
@@ -92,35 +136,14 @@ files:
|
|
92
136
|
- assets/css/fonts/lato-normal-italic.woff2
|
93
137
|
- assets/css/fonts/lato-normal.woff
|
94
138
|
- assets/css/fonts/lato-normal.woff2
|
95
|
-
- assets/css/
|
96
|
-
- assets/css/
|
97
|
-
- assets/css/rougify/base16.light.css
|
98
|
-
- assets/css/rougify/base16.monokai.css
|
99
|
-
- assets/css/rougify/base16.monokai.dark.css
|
100
|
-
- assets/css/rougify/base16.monokai.light.css
|
101
|
-
- assets/css/rougify/base16.solarized.css
|
102
|
-
- assets/css/rougify/base16.solarized.dark.css
|
103
|
-
- assets/css/rougify/base16.solarized.light.css
|
104
|
-
- assets/css/rougify/bw.css
|
105
|
-
- assets/css/rougify/colorful.css
|
106
|
-
- assets/css/rougify/github.css
|
107
|
-
- assets/css/rougify/gruvbox.css
|
108
|
-
- assets/css/rougify/gruvbox.dark.css
|
109
|
-
- assets/css/rougify/gruvbox.light.css
|
110
|
-
- assets/css/rougify/igorpro.css
|
111
|
-
- assets/css/rougify/magritte.css
|
112
|
-
- assets/css/rougify/molokai.css
|
113
|
-
- assets/css/rougify/monokai.css
|
114
|
-
- assets/css/rougify/monokai.sublime.css
|
115
|
-
- assets/css/rougify/pastie.css
|
116
|
-
- assets/css/rougify/thankful_eyes.css
|
117
|
-
- assets/css/rougify/tulip.css
|
118
|
-
- assets/css/theme.css
|
139
|
+
- assets/css/theme.min.css
|
140
|
+
- assets/css/theme.scss
|
119
141
|
- assets/favicon.liquid
|
120
|
-
- assets/js/anchor.min.js
|
121
|
-
- assets/js/html5shiv.min.js
|
122
142
|
- assets/js/jquery.min.js
|
123
143
|
- assets/js/mermaid.min.js
|
144
|
+
- assets/js/search.js
|
145
|
+
- assets/js/theme.js
|
146
|
+
- assets/js/theme.min.js
|
124
147
|
- assets/pages.liquid
|
125
148
|
- assets/robots.liquid
|
126
149
|
- assets/search.liquid
|
@@ -141,12 +164,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
164
|
version: '0'
|
142
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
166
|
requirements:
|
144
|
-
- - "
|
167
|
+
- - ">"
|
145
168
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
169
|
+
version: 1.3.1
|
147
170
|
requirements: []
|
148
171
|
rubygems_version: 3.1.2
|
149
172
|
signing_key:
|
150
173
|
specification_version: 4
|
151
|
-
summary:
|
174
|
+
summary: Opinionated github flavored documentation theme for open source projects
|
152
175
|
test_files: []
|
data/_includes/addons.liquid
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
|
2
|
-
<span class="rst-current-version" data-toggle="rst-current-version">
|
3
|
-
<span class="fa fa-book"> {{ site.title }}</span>
|
4
|
-
{% if site.addons_branch and site.github_metadata != false %}{{ branch }}{% endif %}
|
5
|
-
<span class="fa fa-caret-down"></span>
|
6
|
-
</span>
|
7
|
-
<div class="rst-other-versions">
|
8
|
-
{%- assign items = site.addons | default: addons -%}
|
9
|
-
{% for item in items -%}
|
10
|
-
{%- if addons contains item -%}
|
11
|
-
{% include addons/{{ item }}.liquid %}
|
12
|
-
{%- else -%}
|
13
|
-
{%- if item.github -%}
|
14
|
-
{% include addons/github.liquid items=item.github %}
|
15
|
-
{%- endif -%}
|
16
|
-
{%- endif -%}
|
17
|
-
{% endfor -%}
|
18
|
-
<hr>
|
19
|
-
<small>
|
20
|
-
<span>
|
21
|
-
Built with
|
22
|
-
<a href="https://jekyllrb.com/">Jekyll</a>
|
23
|
-
using the
|
24
|
-
<a href="https://github.com/rundocs/jekyll-rtd-theme">jekyll-rtd-theme</a> (MIT)
|
25
|
-
</span>
|
26
|
-
</small>
|
27
|
-
</div>
|
28
|
-
</div>
|
@@ -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,167 +0,0 @@
|
|
1
|
-
$(document).ready(function() {
|
2
|
-
function initialize(name) {
|
3
|
-
let link = $(".wy-menu-vertical").find(`[href="${decodeURI(name)}"]`);
|
4
|
-
if (link.length > 0) {
|
5
|
-
$(".wy-menu-vertical .current").removeClass("current");
|
6
|
-
link.addClass("current");
|
7
|
-
link.closest("li.toctree-l1").parent().addClass("current");
|
8
|
-
link.closest("li.toctree-l1").addClass("current");
|
9
|
-
link.closest("li.toctree-l2").addClass("current");
|
10
|
-
link.closest("li.toctree-l3").addClass("current");
|
11
|
-
link.closest("li.toctree-l4").addClass("current");
|
12
|
-
link.closest("li.toctree-l5").addClass("current");
|
13
|
-
}
|
14
|
-
}
|
15
|
-
|
16
|
-
function toggleCurrent(link) {
|
17
|
-
let closest = link.closest("li");
|
18
|
-
closest.siblings("li.current").removeClass("current");
|
19
|
-
closest.siblings().find("li.current").removeClass("current");
|
20
|
-
closest.find("> ul li.current").removeClass("current");
|
21
|
-
closest.toggleClass("current");
|
22
|
-
}
|
23
|
-
|
24
|
-
function toc() {
|
25
|
-
$(".wy-menu-vertical li.current").append('<ul class="content-toc"></ul>').html(function() {
|
26
|
-
let level = parseInt(this.dataset.level);
|
27
|
-
let temp = 0;
|
28
|
-
let stack = [$(this).find(".content-toc")];
|
29
|
-
|
30
|
-
$(".document").find("h2,h3,h4,h5,h6").each(function() {
|
31
|
-
let anchor = $("<a/>").addClass("reference internal").text($(this).text()).attr("href", `#${this.id}`);
|
32
|
-
let tagLevel = parseInt(this.tagName.slice(1)) - 1;
|
33
|
-
|
34
|
-
if (tagLevel > temp) {
|
35
|
-
let parent = stack[0].children("li:last")[0];
|
36
|
-
if (parent) {
|
37
|
-
stack.unshift($("<ul/>").appendTo(parent));
|
38
|
-
}
|
39
|
-
} else {
|
40
|
-
stack.splice(0, Math.min(temp - tagLevel, Math.max(stack.length - 1, 0)));
|
41
|
-
}
|
42
|
-
temp = tagLevel;
|
43
|
-
|
44
|
-
$("<li/>").addClass(`toctree-l${level + tagLevel}`).append(anchor).appendTo(stack[0]);
|
45
|
-
});
|
46
|
-
if (!stack[0].html()) {
|
47
|
-
stack[0].remove();
|
48
|
-
}
|
49
|
-
});
|
50
|
-
}
|
51
|
-
|
52
|
-
function set(name, value) {
|
53
|
-
return localStorage.setItem(name, value);
|
54
|
-
}
|
55
|
-
|
56
|
-
function get(name) {
|
57
|
-
return localStorage.getItem(name) || false;
|
58
|
-
}
|
59
|
-
|
60
|
-
function restore() {
|
61
|
-
let scroll = get("scroll");
|
62
|
-
let scrollTime = get("scrollTime");
|
63
|
-
let scrollHost = get("scrollHost");
|
64
|
-
|
65
|
-
if (scroll && scrollTime && scrollHost) {
|
66
|
-
if (scrollHost == location.host && (Date.now() - scrollTime < 6e5)) {
|
67
|
-
$(".wy-side-scroll").scrollTop(scroll);
|
68
|
-
}
|
69
|
-
}
|
70
|
-
$(".wy-side-scroll").scroll(function() {
|
71
|
-
set("scroll", this.scrollTop);
|
72
|
-
set("scrollTime", Date.now());
|
73
|
-
set("scrollHost", location.host);
|
74
|
-
});
|
75
|
-
}
|
76
|
-
|
77
|
-
function highlight() {
|
78
|
-
let text = new URL(location.href).searchParams.get("highlight");
|
79
|
-
let box = ".highlighted-box";
|
80
|
-
|
81
|
-
if (text) {
|
82
|
-
$(".section").find("*").each(function() {
|
83
|
-
try {
|
84
|
-
if (this.outerHTML.match(new RegExp(text, "im"))) {
|
85
|
-
$(this).addClass("highlighted-box");
|
86
|
-
}
|
87
|
-
} catch (e) {
|
88
|
-
debug(e.message);
|
89
|
-
}
|
90
|
-
});
|
91
|
-
$(".section").find(box).each(function() {
|
92
|
-
if (($(this).find(box).length > 0)) {
|
93
|
-
$(this).removeClass(box);
|
94
|
-
}
|
95
|
-
});
|
96
|
-
}
|
97
|
-
}
|
98
|
-
|
99
|
-
anchors.add();
|
100
|
-
toc();
|
101
|
-
initialize(location.pathname);
|
102
|
-
restore();
|
103
|
-
highlight();
|
104
|
-
|
105
|
-
/* nested ul */
|
106
|
-
$(".wy-menu-vertical ul").siblings("a").each(function() {
|
107
|
-
let link = $(this);
|
108
|
-
let expand = $('<span class="toctree-expand"></span>');
|
109
|
-
|
110
|
-
expand.on("click", function(e) {
|
111
|
-
e.stopPropagation();
|
112
|
-
toggleCurrent(link);
|
113
|
-
return false;
|
114
|
-
});
|
115
|
-
link.prepend(expand);
|
116
|
-
});
|
117
|
-
|
118
|
-
/* admonition */
|
119
|
-
$(".admonition-title").each(function() {
|
120
|
-
$(this).html(ui.admonition[$(this).attr("ui")]);
|
121
|
-
});
|
122
|
-
|
123
|
-
/* bind */
|
124
|
-
$(document).on("click", '[data-toggle="wy-nav-top"]', function() {
|
125
|
-
$('[data-toggle="wy-nav-shift"]').toggleClass("shift");
|
126
|
-
$('[data-toggle="rst-versions"]').toggleClass("shift");
|
127
|
-
});
|
128
|
-
$(document).on("click", ".wy-menu-vertical .current ul li a", function() {
|
129
|
-
$('[data-toggle="wy-nav-shift"]').removeClass("shift");
|
130
|
-
$('[data-toggle="rst-versions"]').toggleClass("shift");
|
131
|
-
toggleCurrent($(this));
|
132
|
-
});
|
133
|
-
$(document).on("scroll", function() {
|
134
|
-
let start = $(this).scrollTop() + 5;
|
135
|
-
let items = [];
|
136
|
-
|
137
|
-
$(".document").find("h1,h2,h3,h4,h5,h6").each(function() {
|
138
|
-
items.push({
|
139
|
-
offset: $(this).offset().top,
|
140
|
-
id: this.id,
|
141
|
-
level: parseInt(this.tagName.slice(1))
|
142
|
-
});
|
143
|
-
});
|
144
|
-
for (let i = 0; i < items.length; i++) {
|
145
|
-
if (start > items[i].offset) {
|
146
|
-
if (i < items.length - 1) {
|
147
|
-
if (start < items[i + 1].offset) {
|
148
|
-
if (items[i].level == 1) {
|
149
|
-
initialize(location.pathname);
|
150
|
-
} else {
|
151
|
-
initialize("#" + items[i].id);
|
152
|
-
}
|
153
|
-
}
|
154
|
-
} else {
|
155
|
-
initialize("#" + items[i].id);
|
156
|
-
}
|
157
|
-
}
|
158
|
-
}
|
159
|
-
});
|
160
|
-
$(document).on("click", '[data-toggle="rst-current-version"]', function() {
|
161
|
-
$('[data-toggle="rst-versions"]').toggleClass("shift-up");
|
162
|
-
});
|
163
|
-
$(window).bind("resize", function() {
|
164
|
-
requestAnimationFrame(function() {});
|
165
|
-
});
|
166
|
-
$(window).bind("hashchange", () => initialize(location.hash || location.pathname));
|
167
|
-
});
|