jekyll-rtd-theme 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/addons.liquid +2 -8
- data/_includes/addons/analytics/baidu.liquid +13 -13
- data/_includes/addons/analytics/google.liquid +7 -27
- data/_includes/assets/common.js +1 -1
- data/_includes/assets/search.js +4 -8
- data/_includes/breadcrumbs.liquid +1 -1
- data/_includes/footer.liquid +1 -1
- data/_includes/i18n/en.liquid +1 -1
- data/_includes/i18n/ru.liquid +29 -0
- data/_includes/reset/defaults.liquid +27 -16
- data/_layouts/default.liquid +28 -0
- data/assets/js/html5shiv.min.js +4 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6ab3ca0b72d6b6ae550ce6e421c2c80eb5367ab5e7219c31b565cf0c1c4fe38
|
4
|
+
data.tar.gz: c90717607dab1545b3b6b12376198000f962ba4b8efeca14b355c19b09011583
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59c624650e717629807657c4595356d9cf08b7ff8ffc516430eecb26689d9e64664d0ca7b72b5b4c3420c5b4ce14ea5c9b84c272ff74b8d4bc18720e83252419
|
7
|
+
data.tar.gz: b424b8d443805882799667df8f8a4a7fa99c2046425bf915b2afa2c162d98db4f3e999342999f5411d16580d55613d6b1a5d4551882cadbe97321b106c8f9cc9
|
data/_includes/addons.liquid
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
|
2
2
|
<span class="rst-current-version" data-toggle="rst-current-version">
|
3
|
-
<span class="fa fa-book">
|
4
|
-
|
5
|
-
RunDocs
|
6
|
-
{%- else -%}
|
7
|
-
{{ site.title }}
|
8
|
-
{%- endif -%}
|
9
|
-
</span>
|
10
|
-
{% if site.addons_branch %}v: {{ branch }}{% endif %}
|
3
|
+
<span class="fa fa-book"> {{ site.title }}</span>
|
4
|
+
{% if site.addons_branch and site.github_metadata != false %}v: {{ branch }}{% endif %}
|
11
5
|
<span class="fa fa-caret-down"></span>
|
12
6
|
</span>
|
13
7
|
<div class="rst-other-versions">
|
@@ -1,18 +1,18 @@
|
|
1
1
|
{%- if site.baidu.linksubmit -%}
|
2
|
-
<script>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
</script>
|
2
|
+
<script>
|
3
|
+
(function(script) {
|
4
|
+
script.src = "https://zz.bdstatic.com/linksubmit/push.js";
|
5
|
+
document.head.appendChild(script);
|
6
|
+
})(document.createElement("script"));
|
7
|
+
</script>
|
8
8
|
{%- endif -%}
|
9
9
|
|
10
10
|
{%- if site.baidu.hm -%}
|
11
|
-
<script>
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
</script>
|
11
|
+
<script>
|
12
|
+
var _hmt = _hmt || [];
|
13
|
+
(function(script) {
|
14
|
+
script.src = "https://hm.baidu.com/hm.js?{{ site.baidu.hm }}";
|
15
|
+
document.head.appendChild(script);
|
16
|
+
})(document.createElement("script"));
|
17
|
+
</script>
|
18
18
|
{%- endif -%}
|
@@ -1,32 +1,12 @@
|
|
1
|
-
{%- if site.url contains "rundocs.io" -%}
|
2
|
-
<!-- RunDocs Analytics -->
|
3
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-174262874-1"></script>
|
4
|
-
<script>
|
5
|
-
window.dataLayer = window.dataLayer || [];
|
6
|
-
|
7
|
-
function gtag() {
|
8
|
-
dataLayer.push(arguments);
|
9
|
-
}
|
10
|
-
gtag("js", new Date());
|
11
|
-
gtag("config", "UA-174262874-1");
|
12
|
-
</script>
|
13
|
-
{%- endif -%}
|
14
|
-
|
15
1
|
{%- if site.google.gtag -%}
|
16
|
-
<!-- Google Analytics -->
|
17
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.gtag }}"></script>
|
18
|
-
<script>
|
19
|
-
|
20
|
-
|
21
|
-
function gtag() {
|
22
|
-
dataLayer.push(arguments);
|
23
|
-
}
|
24
|
-
gtag("js", new Date());
|
25
|
-
gtag("config", "{{ site.google.gtag }}");
|
26
|
-
</script>
|
2
|
+
<!-- Google Analytics -->
|
3
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.gtag }}"></script>
|
4
|
+
<script>
|
5
|
+
gtag("config", "{{ site.google.gtag }}");
|
6
|
+
</script>
|
27
7
|
{%- endif -%}
|
28
8
|
|
29
9
|
{%- if site.google.adsense -%}
|
30
|
-
<!-- Google AdSense -->
|
31
|
-
<script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
10
|
+
<!-- Google AdSense -->
|
11
|
+
<script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
32
12
|
{%- endif -%}
|
data/_includes/assets/common.js
CHANGED
data/_includes/assets/search.js
CHANGED
@@ -1,7 +1,3 @@
|
|
1
|
-
function feedback(type, message) {
|
2
|
-
console.log(`feedback: https://github.com/rundocs/jekyll-rtd-theme/issues?q=${type}+${message}`);
|
3
|
-
}
|
4
|
-
|
5
1
|
function search(data) {
|
6
2
|
let text = new URL(location.href).searchParams.get("q");
|
7
3
|
let lang = new URL(location.href).searchParams.get("lang") || ui.lang;
|
@@ -17,7 +13,7 @@ function search(data) {
|
|
17
13
|
$(".search").empty();
|
18
14
|
$(".search-summary").html(i18n[lang].search_results_not_found);
|
19
15
|
$("#search-results h2").html(i18n[lang].search_results);
|
20
|
-
return;
|
16
|
+
return feedback(["search", e.message]);
|
21
17
|
}
|
22
18
|
|
23
19
|
function slice(content, min, max) {
|
@@ -36,7 +32,7 @@ function search(data) {
|
|
36
32
|
}
|
37
33
|
}
|
38
34
|
} catch (e) {
|
39
|
-
feedback("search", e.message);
|
35
|
+
feedback(["search", e.message]);
|
40
36
|
}
|
41
37
|
try {
|
42
38
|
if (page.content) {
|
@@ -44,7 +40,7 @@ function search(data) {
|
|
44
40
|
content = page.content.match(regexp);
|
45
41
|
}
|
46
42
|
} catch (e) {
|
47
|
-
feedback("search", e.message);
|
43
|
+
feedback(["search", e.message]);
|
48
44
|
}
|
49
45
|
if (title || content) {
|
50
46
|
let result = [`<a href="${ui.baseurl}${page.url}?highlight=${text}">${page.title}</a>`];
|
@@ -76,5 +72,5 @@ function search(data) {
|
|
76
72
|
}
|
77
73
|
|
78
74
|
$(document).ready(function() {
|
79
|
-
$.ajax(`${ui.baseurl}/pages.json`).done(search).fail((xhr, message) => feedback("search", message));
|
75
|
+
$.ajax(`${ui.baseurl}/pages.json`).done(search).fail((xhr, message) => feedback(["search", message]));
|
80
76
|
});
|
data/_includes/footer.liquid
CHANGED
data/_includes/i18n/en.liquid
CHANGED
@@ -26,4 +26,4 @@
|
|
26
26
|
{%- assign __search_docs = "Search Docs" -%}
|
27
27
|
{%- assign __search_results = "Search Results" -%}
|
28
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
|
29
|
+
{%- assign __search_results_not_found = "Your search did not match any documents, please make sure that all characters are spelled correctly!" -%}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{% comment %} Russian {% endcomment %}
|
2
|
+
{%- assign __github = "Github" -%}
|
3
|
+
{%- assign __homepage = "домашняя страница" -%}
|
4
|
+
{%- assign __issues = "вопросы" -%}
|
5
|
+
{%- assign __download = "Скачать" -%}
|
6
|
+
{%- assign __plugins = "Плагины тем" -%}
|
7
|
+
{%- assign __translations = "Переводы" -%}
|
8
|
+
{%- assign __statistics = "Статистика" -%}
|
9
|
+
{%- assign __total_visits = "Всего посещений:" -%}
|
10
|
+
|
11
|
+
{%- assign __note = "замечания" -%}
|
12
|
+
{%- assign __tip = "подсказки" -%}
|
13
|
+
{%- assign __warning = "Предупреждение" -%}
|
14
|
+
{%- assign __danger = "Опасность" -%}
|
15
|
+
|
16
|
+
{%- assign __next = "Следующая Страница" -%}
|
17
|
+
{%- assign __previous = "Предыдущая страница" -%}
|
18
|
+
{%- assign __copyright = "авторское право" -%}
|
19
|
+
{%- assign __revision = "пересмотр" -%}
|
20
|
+
|
21
|
+
{%- assign __404 = "404" -%}
|
22
|
+
{%- assign __not_found = "Эта страница еще не существует!" -%}
|
23
|
+
|
24
|
+
{%- assign __searching = "Поиск" -%}
|
25
|
+
{%- assign __search = "Поиск" -%}
|
26
|
+
{%- assign __search_docs = "Искать в Документах" -%}
|
27
|
+
{%- assign __search_results = "результаты поиска" -%}
|
28
|
+
{%- assign __search_results_found = "Поиск завершен, найдено # страниц, соответствующих поисковому запросу." -%}
|
29
|
+
{%- assign __search_results_not_found = "По вашему запросу не найдено ни одного документа, убедитесь, что все символы написаны правильно!" -%}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
{%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
|
2
|
-
{%- assign version = "1.0.
|
2
|
+
{%- assign version = "1.0.3" -%}
|
3
3
|
{%- assign addons = "github, i18n, plugins, analytics" | split: ", " -%}
|
4
4
|
|
5
5
|
{%- include reset/site_pages.liquid %}
|
@@ -7,22 +7,33 @@
|
|
7
7
|
{%- include reset/schema.liquid -%}
|
8
8
|
|
9
9
|
{% comment %} github-metadata {% endcomment %}
|
10
|
-
{%- if
|
11
|
-
{%-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
10
|
+
{%- if site.github_metadata != false -%}
|
11
|
+
{%- if jekyll.environment == "production" -%}
|
12
|
+
{%- assign author = site.author | default: site.github.owner_name -%}
|
13
|
+
{%- assign branch = site.github.source.branch -%}
|
14
|
+
{%- assign commit = site.github.build_revision | slice: 0, 7 -%}
|
15
|
+
{%- assign repository_url = site.github.repository_url -%}
|
16
|
+
{%- assign issues_url = site.github.issues_url -%}
|
17
|
+
{%- assign zip_url = site.github.zip_url -%}
|
18
|
+
{%- capture github_edit_link %}{% github_edit_link %}{% endcapture -%}
|
19
|
+
{%- else -%}
|
20
|
+
{%- assign author = site.author | default: "[author]" -%}
|
21
|
+
{%- assign branch = "[branch]" -%}
|
22
|
+
{%- assign commit = "[commit]" -%}
|
23
|
+
{%- assign repository_url = "#" -%}
|
24
|
+
{%- assign issues_url = "#" -%}
|
25
|
+
{%- assign zip_url = "#" -%}
|
26
|
+
{%- assign github_edit_link = "#" -%}
|
27
|
+
{%- endif -%}
|
18
28
|
{%- else -%}
|
19
|
-
{%- assign author = site.author | default:
|
20
|
-
{%- assign branch =
|
21
|
-
{%- assign commit =
|
22
|
-
{%- assign repository_url =
|
23
|
-
{%- assign issues_url =
|
24
|
-
{%- assign zip_url =
|
25
|
-
{%-
|
29
|
+
{%- assign author = site.author | default: "[author]" -%}
|
30
|
+
{%- assign branch = "" -%}
|
31
|
+
{%- assign commit = "" -%}
|
32
|
+
{%- assign repository_url = "" -%}
|
33
|
+
{%- assign issues_url = "" -%}
|
34
|
+
{%- assign zip_url = "" -%}
|
35
|
+
{%- assign github_edit_link = "" -%}
|
36
|
+
{%- assign addons = "i18n, plugins, analytics" | split: ", " -%}
|
26
37
|
{%- endif -%}
|
27
38
|
|
28
39
|
{% comment %} scss and script {% endcomment %}
|
data/_layouts/default.liquid
CHANGED
@@ -19,7 +19,23 @@ layout: plugins/compress
|
|
19
19
|
<head>
|
20
20
|
<meta charset="utf-8">
|
21
21
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
22
|
+
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
22
23
|
<title>{{ title }}</title>
|
24
|
+
<script>
|
25
|
+
window.dataLayer = window.dataLayer || [];
|
26
|
+
|
27
|
+
function gtag() {
|
28
|
+
dataLayer.push(arguments);
|
29
|
+
}
|
30
|
+
|
31
|
+
function feedback(messages) {
|
32
|
+
gtag("event", "exception", {
|
33
|
+
"description": messages.join(":")
|
34
|
+
});
|
35
|
+
}
|
36
|
+
|
37
|
+
gtag("js", new Date());
|
38
|
+
</script>
|
23
39
|
<!-- meta -->
|
24
40
|
<meta name="description" content="{{ description }}">
|
25
41
|
<meta name="author" content="{{ author }}">
|
@@ -48,6 +64,9 @@ layout: plugins/compress
|
|
48
64
|
<!-- icon -->
|
49
65
|
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
|
50
66
|
<!-- script -->
|
67
|
+
<!--[if lt IE 9]>
|
68
|
+
<script src="{{ cdn }}/assets/js/html5shiv.min.js"></script>
|
69
|
+
<![endif]-->
|
51
70
|
<script src="{{ cdn }}/assets/js/jquery.min.js"></script>
|
52
71
|
<script>
|
53
72
|
const ui = {
|
@@ -62,6 +81,15 @@ layout: plugins/compress
|
|
62
81
|
}
|
63
82
|
};
|
64
83
|
</script>
|
84
|
+
{%- if jekyll.environment == "production" -%}
|
85
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-174262874-1"></script>
|
86
|
+
<script>
|
87
|
+
gtag("set", {
|
88
|
+
"user_id": location.host
|
89
|
+
});
|
90
|
+
gtag("config", "UA-174262874-1");
|
91
|
+
</script>
|
92
|
+
{%- endif -%}
|
65
93
|
</head>
|
66
94
|
|
67
95
|
<body class="wy-body-for-nav">
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/**
|
2
|
+
* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
3
|
+
*/
|
4
|
+
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.3-pre",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b),"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:this,document);
|
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.0.
|
4
|
+
version: 1.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-08-
|
11
|
+
date: 2020-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-pages
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '207'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '207'
|
27
27
|
description:
|
28
28
|
email:
|
29
29
|
- saowang@outlook.com
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- _includes/i18n/it.liquid
|
60
60
|
- _includes/i18n/ja.liquid
|
61
61
|
- _includes/i18n/ko.liquid
|
62
|
+
- _includes/i18n/ru.liquid
|
62
63
|
- _includes/i18n/zh-cn.liquid
|
63
64
|
- _includes/list.liquid
|
64
65
|
- _includes/reset/defaults.liquid
|
@@ -118,6 +119,7 @@ files:
|
|
118
119
|
- assets/css/theme.css
|
119
120
|
- assets/favicon.svg
|
120
121
|
- assets/js/anchor.min.js
|
122
|
+
- assets/js/html5shiv.min.js
|
121
123
|
- assets/js/jquery.min.js
|
122
124
|
- assets/js/theme.js
|
123
125
|
- assets/pages.json
|