jekyll-rtd-theme 1.1.8 → 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/LICENSE +1 -1
- data/README.md +23 -65
- data/_includes/addons/analytics.liquid +4 -4
- data/_includes/addons/github.liquid +7 -10
- data/_includes/breadcrumbs.liquid +27 -0
- data/_includes/extend/list.liquid +2 -2
- data/_includes/{reset → extend}/tabs.liquid +0 -0
- data/_includes/extend/toctree.liquid +6 -5
- data/_includes/footer.liquid +36 -0
- data/_includes/reset/defaults.liquid +25 -60
- data/_includes/reset/workdir.liquid +1 -0
- data/_includes/safe/shortcodes.liquid +9 -0
- data/_includes/shortcodes/danger.liquid +3 -2
- data/_includes/shortcodes/note.liquid +3 -2
- data/_includes/shortcodes/tip.liquid +3 -2
- data/_includes/shortcodes/warning.liquid +3 -2
- data/_includes/{class/_toctree.liquid → toctree.liquid} +2 -2
- data/_layouts/default.liquid +182 -23
- data/_layouts/plugins/extension.liquid +6 -8
- 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/{highlight.scss → class/highlight.scss} +0 -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 +26 -12
- data/assets/404.liquid +1 -3
- data/assets/css/theme.min.css +1 -4
- 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 +55 -121
- data/assets/js/theme.min.js +1 -1
- data/assets/search.liquid +9 -1
- metadata +74 -25
- data/_includes/assets/custom.js +0 -0
- data/_includes/assets/custom.scss +0 -0
- data/_includes/class/_breadcrumbs.liquid +0 -28
- data/_includes/class/_footer.liquid +0 -38
- data/_includes/class/rst-versions.liquid +0 -22
- data/_includes/class/wy-nav-content.liquid +0 -15
- data/_includes/class/wy-nav-side.liquid +0 -18
- data/_includes/class/wy-nav-top.liquid +0 -8
- data/_includes/extra/footer.html +0 -0
- data/_includes/extra/head.html +0 -0
- data/_includes/node/links.liquid +0 -24
- data/_includes/node/metadata.liquid +0 -21
- data/_includes/node/script.extension.liquid +0 -29
- data/_includes/node/script.liquid +0 -20
- data/_includes/node/script.schema.liquid +0 -27
- data/_includes/node/title.liquid +0 -1
- data/_includes/reset/i18n.liquid +0 -1
data/assets/js/search.js
ADDED
@@ -0,0 +1,90 @@
|
|
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 debug(e.message);
|
17
|
+
}
|
18
|
+
|
19
|
+
function slice(content, min, max) {
|
20
|
+
return content
|
21
|
+
.slice(min, max)
|
22
|
+
.replace(regexp, (match) => `<span class="highlighted">${match}</span>`);
|
23
|
+
}
|
24
|
+
for (page of data) {
|
25
|
+
let [title, content] = [null, null];
|
26
|
+
try {
|
27
|
+
if (page.title) {
|
28
|
+
title = page.title.match(regexp);
|
29
|
+
} else {
|
30
|
+
if (page.url == "/") {
|
31
|
+
page.title = ui.title;
|
32
|
+
} else {
|
33
|
+
page.title = page.url;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
} catch (e) {
|
37
|
+
debug(e.message);
|
38
|
+
}
|
39
|
+
try {
|
40
|
+
if (page.content) {
|
41
|
+
page.content = $("<div/>").html(page.content).text();
|
42
|
+
content = page.content.match(regexp);
|
43
|
+
}
|
44
|
+
} catch (e) {
|
45
|
+
debug(e.message);
|
46
|
+
}
|
47
|
+
if (title || content) {
|
48
|
+
let result = [
|
49
|
+
`<a href="${ui.baseurl}${page.url}?highlight=${text}">${page.title}</a>`,
|
50
|
+
];
|
51
|
+
if (content) {
|
52
|
+
let [min, max] = [content.index - 100, content.index + 100];
|
53
|
+
let [prefix, suffix] = ["...", "..."];
|
54
|
+
|
55
|
+
if (min < 0) {
|
56
|
+
prefix = "";
|
57
|
+
min = 0;
|
58
|
+
}
|
59
|
+
if (max > page.content.length) {
|
60
|
+
suffix = "";
|
61
|
+
max = page.content.length;
|
62
|
+
}
|
63
|
+
result.push(
|
64
|
+
`<p class="context">${prefix}${slice(
|
65
|
+
page.content,
|
66
|
+
min,
|
67
|
+
max
|
68
|
+
)}${suffix}</p>`
|
69
|
+
);
|
70
|
+
}
|
71
|
+
results.push(`<li>${result.join("")}</li>`);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
if (results.length > 0 && text.length > 0) {
|
75
|
+
$(".search").html(results.join(""));
|
76
|
+
$(".search-summary").html(
|
77
|
+
i18n[lang].search_results_found.replace("#", results.length)
|
78
|
+
);
|
79
|
+
} else {
|
80
|
+
$(".search").empty();
|
81
|
+
$(".search-summary").html(i18n[lang].search_results_not_found);
|
82
|
+
}
|
83
|
+
$("#search-results h2").html(i18n[lang].search_results);
|
84
|
+
}
|
85
|
+
|
86
|
+
$(document).ready(function () {
|
87
|
+
$.ajax(`${ui.baseurl}/pages.json`)
|
88
|
+
.done(search)
|
89
|
+
.fail((xhr, message) => debug(message));
|
90
|
+
});
|
data/assets/js/theme.js
CHANGED
@@ -8,106 +8,35 @@ $(document).ready(function () {
|
|
8
8
|
function debug() {
|
9
9
|
console.debug.apply(console, arguments);
|
10
10
|
}
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
let results = [];
|
19
|
-
let regexp = new RegExp();
|
20
|
-
try {
|
21
|
-
regexp = new RegExp(text, "im");
|
22
|
-
} catch (e) {
|
23
|
-
$(".search").empty();
|
24
|
-
$(".search-summary").html(ui.i18n.search_results_not_found);
|
25
|
-
$("#search-results h2").html(ui.i18n.search_results);
|
26
|
-
return debug(e.message);
|
27
|
-
}
|
28
|
-
|
29
|
-
function slice(content, min, max) {
|
30
|
-
return content
|
31
|
-
.slice(min, max)
|
32
|
-
.replace(
|
33
|
-
regexp,
|
34
|
-
(match) => `<span class="highlighted">${match}</span>`
|
35
|
-
);
|
36
|
-
}
|
37
|
-
for (page of data) {
|
38
|
-
let [title, content] = [null, null];
|
39
|
-
try {
|
40
|
-
if (page.title) {
|
41
|
-
title = page.title.match(regexp);
|
42
|
-
} else {
|
43
|
-
if (page.url == "/") {
|
44
|
-
page.title = ui.title;
|
45
|
-
} else {
|
46
|
-
page.title = page.url;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
} catch (e) {
|
50
|
-
debug(e.message);
|
51
|
-
}
|
52
|
-
try {
|
53
|
-
if (page.content) {
|
54
|
-
page.content = $("<div/>").html(page.content).text();
|
55
|
-
content = page.content.match(regexp);
|
56
|
-
}
|
57
|
-
} catch (e) {
|
58
|
-
debug(e.message);
|
59
|
-
}
|
60
|
-
if (title || content) {
|
61
|
-
let result = [
|
62
|
-
`<a href="${ui.baseurl}${page.url}?highlight=${text}">${page.title}</a>`,
|
63
|
-
];
|
64
|
-
if (content) {
|
65
|
-
let [min, max] = [content.index - 100, content.index + 100];
|
66
|
-
let [prefix, suffix] = ["...", "..."];
|
67
|
-
|
68
|
-
if (min < 0) {
|
69
|
-
prefix = "";
|
70
|
-
min = 0;
|
71
|
-
}
|
72
|
-
if (max > page.content.length) {
|
73
|
-
suffix = "";
|
74
|
-
max = page.content.length;
|
75
|
-
}
|
76
|
-
result.push(
|
77
|
-
`<p class="context">${prefix}${slice(
|
78
|
-
page.content,
|
79
|
-
min,
|
80
|
-
max
|
81
|
-
)}${suffix}</p>`
|
82
|
-
);
|
83
|
-
}
|
84
|
-
results.push(`<li>${result.join("")}</li>`);
|
85
|
-
}
|
86
|
-
}
|
87
|
-
if (results.length > 0 && text.length > 0) {
|
88
|
-
$(".search").html(results.join(""));
|
89
|
-
$(".search-summary").html(
|
90
|
-
ui.i18n.search_results_found.replace("#", results.length)
|
91
|
-
);
|
92
|
-
} else {
|
93
|
-
$(".search").empty();
|
94
|
-
$(".search-summary").html(ui.i18n.search_results_not_found);
|
95
|
-
}
|
96
|
-
$("#search-results h2").html(ui.i18n.search_results);
|
97
|
-
}
|
11
|
+
let analytics = new URL(
|
12
|
+
`https://rundocs-analytics.glitch.me/collect?v=${ui.version}&lang=${ui.lang}`
|
13
|
+
);
|
14
|
+
analytics.searchParams.append("user_lang", navigator.language);
|
15
|
+
analytics.searchParams.append("host", location.host);
|
16
|
+
analytics.searchParams.append("platform", navigator.platform);
|
17
|
+
$.getJSON(analytics.toString(), (data) => $("#counter").html(data.count));
|
98
18
|
|
99
19
|
function initialize(name) {
|
100
|
-
let link = $(".
|
20
|
+
let link = $(".toctree").find(`[href="${decodeURI(name)}"]`);
|
21
|
+
|
101
22
|
if (link.length > 0) {
|
102
|
-
$(".
|
23
|
+
$(".toctree .current").removeClass("current");
|
103
24
|
link.addClass("current");
|
104
|
-
link.closest("
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
25
|
+
link.closest(".level-1").parent().addClass("current");
|
26
|
+
for (let i = 1; i <= 11; i++) {
|
27
|
+
link.closest(`.level-${i}`).addClass("current");
|
28
|
+
}
|
29
|
+
/* need debug */
|
30
|
+
$(".toctree a")
|
31
|
+
.children("span")
|
32
|
+
.html(`<i class="fa fa-plus-square-o"></i>`);
|
33
|
+
$(".toctree a.current")
|
34
|
+
.children("span")
|
35
|
+
.html(`<i class="fa fa-minus-square-o"></i>`);
|
110
36
|
}
|
37
|
+
// if(/^#/.test(name) && $(name).length >0){
|
38
|
+
// $(name)[0].scrollIntoView();
|
39
|
+
// }
|
111
40
|
}
|
112
41
|
|
113
42
|
function toggleCurrent(link) {
|
@@ -119,18 +48,18 @@ $(document).ready(function () {
|
|
119
48
|
}
|
120
49
|
|
121
50
|
function toc() {
|
122
|
-
$(".
|
51
|
+
$(".toctree li.current")
|
123
52
|
.append('<ul class="content-toc"></ul>')
|
124
53
|
.html(function () {
|
125
54
|
let level = parseInt(this.dataset.level);
|
126
55
|
let temp = 0;
|
127
56
|
let stack = [$(this).find(".content-toc")];
|
128
57
|
|
129
|
-
$(".
|
58
|
+
$(".markdown-body")
|
130
59
|
.find("h2,h3,h4,h5,h6")
|
131
60
|
.each(function () {
|
132
61
|
let anchor = $("<a/>")
|
133
|
-
.addClass("
|
62
|
+
.addClass("d-flex")
|
134
63
|
.text($(this).text())
|
135
64
|
.attr("href", `#${this.id}`);
|
136
65
|
let tagLevel = parseInt(this.tagName.slice(1)) - 1;
|
@@ -149,7 +78,7 @@ $(document).ready(function () {
|
|
149
78
|
temp = tagLevel;
|
150
79
|
|
151
80
|
$("<li/>")
|
152
|
-
.addClass(`
|
81
|
+
.addClass(`toc level-${level + tagLevel}`)
|
153
82
|
.append(anchor)
|
154
83
|
.appendTo(stack[0]);
|
155
84
|
});
|
@@ -174,10 +103,10 @@ $(document).ready(function () {
|
|
174
103
|
|
175
104
|
if (scroll && scrollTime && scrollHost) {
|
176
105
|
if (scrollHost == location.host && Date.now() - scrollTime < 6e5) {
|
177
|
-
$(".
|
106
|
+
$(".sidebar").scrollTop(scroll);
|
178
107
|
}
|
179
108
|
}
|
180
|
-
$(".
|
109
|
+
$(".sidebar").scroll(function () {
|
181
110
|
set("scroll", this.scrollTop);
|
182
111
|
set("scrollTime", Date.now());
|
183
112
|
set("scrollHost", location.host);
|
@@ -189,7 +118,7 @@ $(document).ready(function () {
|
|
189
118
|
let box = ".highlighted-box";
|
190
119
|
|
191
120
|
if (text) {
|
192
|
-
$(".
|
121
|
+
$(".markdown-body")
|
193
122
|
.find("*")
|
194
123
|
.each(function () {
|
195
124
|
try {
|
@@ -200,7 +129,7 @@ $(document).ready(function () {
|
|
200
129
|
debug(e.message);
|
201
130
|
}
|
202
131
|
});
|
203
|
-
$(".
|
132
|
+
$(".markdown-body")
|
204
133
|
.find(box)
|
205
134
|
.each(function () {
|
206
135
|
if ($(this).find(box).length > 0) {
|
@@ -210,30 +139,20 @@ $(document).ready(function () {
|
|
210
139
|
}
|
211
140
|
}
|
212
141
|
|
213
|
-
let analytics = new URL(
|
214
|
-
`https://rundocs-analytics.glitch.me/collect?v=${ui.version}&lang=${ui.lang}`
|
215
|
-
);
|
216
|
-
analytics.searchParams.append("user_lang", navigator.language);
|
217
|
-
analytics.searchParams.append("host", location.host);
|
218
|
-
analytics.searchParams.append("platform", navigator.platform);
|
219
|
-
$.getJSON(analytics.toString(), (data) => $("#counter").html(data.count));
|
220
|
-
|
221
|
-
if (location.pathname == `${ui.baseurl}/search.html`) {
|
222
|
-
$.ajax(`${ui.baseurl}/pages.json`)
|
223
|
-
.done(search)
|
224
|
-
.fail((xhr, message) => debug(message));
|
225
|
-
}
|
226
142
|
toc();
|
227
143
|
initialize(location.pathname);
|
144
|
+
initialize(location.hash);
|
228
145
|
restore();
|
229
146
|
highlight();
|
230
147
|
|
231
148
|
/* nested ul */
|
232
|
-
$(".
|
149
|
+
$(".toc ul")
|
233
150
|
.siblings("a")
|
234
151
|
.each(function () {
|
235
152
|
let link = $(this);
|
236
|
-
let expand = $(
|
153
|
+
let expand = $(
|
154
|
+
'<span class="toctree-expand"><i class="fa fa-plus-square-o"></i></span>'
|
155
|
+
);
|
237
156
|
|
238
157
|
expand.on("click", function (e) {
|
239
158
|
e.stopPropagation();
|
@@ -243,6 +162,13 @@ $(document).ready(function () {
|
|
243
162
|
link.prepend(expand);
|
244
163
|
});
|
245
164
|
|
165
|
+
/* admonition */
|
166
|
+
$(".admonition-title").each(function () {
|
167
|
+
$(this)
|
168
|
+
.children(".progress")
|
169
|
+
.replaceWith(ui.admonition[$(this).attr("ui")]);
|
170
|
+
});
|
171
|
+
|
246
172
|
/* bind */
|
247
173
|
$(document).on("click", '[data-toggle="wy-nav-top"]', function () {
|
248
174
|
$('[data-toggle="wy-nav-shift"]').toggleClass("shift");
|
@@ -257,7 +183,7 @@ $(document).ready(function () {
|
|
257
183
|
let start = $(this).scrollTop() + 5;
|
258
184
|
let items = [];
|
259
185
|
|
260
|
-
$(".
|
186
|
+
$(".markdown-body")
|
261
187
|
.find("h1,h2,h3,h4,h5,h6")
|
262
188
|
.each(function () {
|
263
189
|
items.push({
|
@@ -282,9 +208,17 @@ $(document).ready(function () {
|
|
282
208
|
}
|
283
209
|
}
|
284
210
|
});
|
285
|
-
$(document).on("click", '[data-toggle="rst-current-version"]', function
|
286
|
-
|
211
|
+
// $(document).on("click", '[data-toggle="rst-current-version"]', function() {
|
212
|
+
// $('[data-toggle="rst-versions"]').toggleClass("shift-up");
|
213
|
+
// });
|
214
|
+
|
215
|
+
$("#toggle").click(function () {
|
216
|
+
$(".sidebar-wrap,.content-wrap,.addons-wrap").toggleClass("shift");
|
287
217
|
});
|
218
|
+
$(".status").click(function () {
|
219
|
+
$(".addons").toggleClass("d-none");
|
220
|
+
});
|
221
|
+
|
288
222
|
$(window).bind("resize", function () {
|
289
223
|
requestAnimationFrame(function () {});
|
290
224
|
});
|
data/assets/js/theme.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(t){var e={};function n(
|
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,10 +4,18 @@ 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>
|
11
10
|
<p class="search-summary"></p>
|
12
11
|
<ul class="search"></ul>
|
13
12
|
</div>
|
13
|
+
|
14
|
+
<script>
|
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 }}"
|
20
|
+
};
|
21
|
+
</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-09-
|
11
|
+
date: 2020-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-pages
|
@@ -35,41 +35,88 @@ files:
|
|
35
35
|
- README.md
|
36
36
|
- _includes/addons/analytics.liquid
|
37
37
|
- _includes/addons/github.liquid
|
38
|
-
- _includes/assets/custom.js
|
39
|
-
- _includes/assets/custom.scss
|
40
38
|
- _includes/assets/sw.caches.js
|
41
|
-
- _includes/
|
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
|
39
|
+
- _includes/breadcrumbs.liquid
|
48
40
|
- _includes/extend/list.liquid
|
41
|
+
- _includes/extend/tabs.liquid
|
49
42
|
- _includes/extend/toctree.liquid
|
50
|
-
- _includes/
|
51
|
-
- _includes/extra/head.html
|
43
|
+
- _includes/footer.liquid
|
52
44
|
- _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
|
59
45
|
- _includes/reset/defaults.liquid
|
60
|
-
- _includes/reset/i18n.liquid
|
61
46
|
- _includes/reset/site_pages.liquid
|
62
|
-
- _includes/reset/tabs.liquid
|
63
47
|
- _includes/reset/workdir.liquid
|
48
|
+
- _includes/safe/shortcodes.liquid
|
64
49
|
- _includes/shortcodes/danger.liquid
|
65
50
|
- _includes/shortcodes/mermaid.liquid
|
66
51
|
- _includes/shortcodes/note.liquid
|
67
52
|
- _includes/shortcodes/tip.liquid
|
68
53
|
- _includes/shortcodes/warning.liquid
|
54
|
+
- _includes/toctree.liquid
|
69
55
|
- _layouts/default.liquid
|
70
56
|
- _layouts/plugins/compress.liquid
|
71
57
|
- _layouts/plugins/extension.liquid
|
72
|
-
- _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
|
73
120
|
- _sass/theme.scss
|
74
121
|
- assets/404.liquid
|
75
122
|
- assets/css/fonts/Roboto-Slab-Bold.woff
|
@@ -90,9 +137,11 @@ files:
|
|
90
137
|
- assets/css/fonts/lato-normal.woff
|
91
138
|
- assets/css/fonts/lato-normal.woff2
|
92
139
|
- assets/css/theme.min.css
|
140
|
+
- assets/css/theme.scss
|
93
141
|
- assets/favicon.liquid
|
94
142
|
- assets/js/jquery.min.js
|
95
143
|
- assets/js/mermaid.min.js
|
144
|
+
- assets/js/search.js
|
96
145
|
- assets/js/theme.js
|
97
146
|
- assets/js/theme.min.js
|
98
147
|
- assets/pages.liquid
|
@@ -115,12 +164,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
164
|
version: '0'
|
116
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
166
|
requirements:
|
118
|
-
- - "
|
167
|
+
- - ">"
|
119
168
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
169
|
+
version: 1.3.1
|
121
170
|
requirements: []
|
122
171
|
rubygems_version: 3.1.2
|
123
172
|
signing_key:
|
124
173
|
specification_version: 4
|
125
|
-
summary:
|
174
|
+
summary: Opinionated github flavored documentation theme for open source projects
|
126
175
|
test_files: []
|
data/_includes/assets/custom.js
DELETED
File without changes
|
File without changes
|
@@ -1,28 +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 | default: "Search" }}</li>
|
9
|
-
{%- when "/404.html" %}
|
10
|
-
<li>404</li>
|
11
|
-
{%- else -%}
|
12
|
-
{%- assign blocks = page.path | split: "/" -%}
|
13
|
-
{%- for block in blocks -%}
|
14
|
-
<li>
|
15
|
-
{%- if forloop.last %}
|
16
|
-
{{ page.name }}
|
17
|
-
{%- else -%}
|
18
|
-
<a href="{{ site.baseurl }}/{% for block in blocks limit: forloop.index %}{{ block }}/{% endfor %}">{{ block }}</a><i class="fa fa-angle-double-right"></i>
|
19
|
-
{%- endif -%}
|
20
|
-
</li>
|
21
|
-
{%- endfor -%}
|
22
|
-
{%- endcase %}
|
23
|
-
<li class="wy-breadcrumbs-aside">
|
24
|
-
<a class="fa fa-edit" href="{% github_edit_link %}" title="{{ __.edit | default: 'Edit on GitHub'}}" target="_blank"></a>
|
25
|
-
</li>
|
26
|
-
</ul>
|
27
|
-
<hr>
|
28
|
-
</div>
|
@@ -1,38 +0,0 @@
|
|
1
|
-
<footer>
|
2
|
-
{%- if page.url != "/search.html" and page.url != "/404.html" -%}
|
3
|
-
{%- if next or prev -%}
|
4
|
-
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
5
|
-
{%- if prev -%}
|
6
|
-
<a href="{{ prev.url | relative_url }}" class="btn btn-neutral float-left" title="{{ prev.title }}" accesskey="p" rel="prev">
|
7
|
-
<span class="fa fa-arrow-circle-left"></span> {{ __.previous | default: "Previous" }}
|
8
|
-
</a>
|
9
|
-
{%- endif -%}
|
10
|
-
{%- if next -%}
|
11
|
-
<a href="{{ next.url | relative_url }}" class="btn btn-neutral float-right" title="{{ next.title }}" accesskey="n" rel="next">
|
12
|
-
{{ __.next | default: "Next" }} <span class="fa fa-arrow-circle-right"></span>
|
13
|
-
</a>
|
14
|
-
{%- endif -%}
|
15
|
-
</div>
|
16
|
-
{%- endif -%}
|
17
|
-
{%- endif -%}
|
18
|
-
<hr>
|
19
|
-
<div role="contentinfo" class="copyright">
|
20
|
-
<p>
|
21
|
-
<i class="fa fa-copyright"></i>
|
22
|
-
{%- assign created_time = rest_created_at | date: "%Y" -%}
|
23
|
-
{%- assign updated_time = rest_updated_at | date: "%Y" -%}
|
24
|
-
{%- if created_time == updated_time -%}
|
25
|
-
{{ created_time }},
|
26
|
-
{%- else -%}
|
27
|
-
{{ created_time }}-{{ updated_time }},
|
28
|
-
{%- endif %}
|
29
|
-
<a href="{{ docs.owner_url }}" target="_blank">
|
30
|
-
{{ author }}
|
31
|
-
</a>
|
32
|
-
{{ __.revision | default: "Revision" }}
|
33
|
-
<a href="{{ docs.repository_url }}/commit/{{ docs.build_revision }}" title="{{ docs.build_revision }}" target="_blank">
|
34
|
-
{{ docs.build_revision | slice: 0, 7 }}
|
35
|
-
</a>
|
36
|
-
</p>
|
37
|
-
</div>
|
38
|
-
</footer>
|
@@ -1,22 +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
|
-
{{ docs.source.branch }}
|
5
|
-
<span class="fa fa-caret-down"></span>
|
6
|
-
</span>
|
7
|
-
<div class="rst-other-versions">
|
8
|
-
{%- assign items = "github, analytics" | split: ", " -%}
|
9
|
-
{% for item in items -%}
|
10
|
-
{% include addons/{{ item }}.liquid %}
|
11
|
-
{% endfor -%}
|
12
|
-
<hr>
|
13
|
-
<small>
|
14
|
-
<span>
|
15
|
-
Built with
|
16
|
-
<a href="https://github.com/rundocs/jekyll-rtd-theme" target="_blank" title="{% if site.remote_theme %}remote{% endif %} theme v{{ version }}">jekyll-rtd-theme</a>
|
17
|
-
provided by
|
18
|
-
<a href="https://rundocs.io" target="_blank">RunDocs</a>
|
19
|
-
</span>
|
20
|
-
</small>
|
21
|
-
</div>
|
22
|
-
</div>
|