jekyll-rtd-theme 1.0.2 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -18
- data/_includes/addons.liquid +3 -9
- data/_includes/addons/analytics.liquid +8 -0
- data/_includes/addons/{source/github.liquid → github.liquid} +0 -0
- data/_includes/addons/{source/i18n.liquid → i18n.liquid} +0 -0
- data/_includes/addons/{source/plugins.liquid → plugins.liquid} +0 -0
- data/_includes/album.liquid +1 -1
- data/_includes/assets/common.js +10 -3
- data/_includes/assets/search.js +4 -8
- data/_includes/breadcrumbs.liquid +1 -1
- data/_includes/extend/list.liquid +2 -2
- data/_includes/extend/toctree.liquid +14 -7
- data/_includes/footer.liquid +5 -5
- data/_includes/i18n/en.liquid +1 -1
- data/_includes/i18n/es.liquid +29 -0
- data/_includes/i18n/ru.liquid +29 -0
- data/_includes/i18n/sv.liquid +29 -0
- data/_includes/list.liquid +1 -1
- data/_includes/reset/defaults.liquid +40 -32
- data/_includes/reset/workdir.liquid +2 -2
- data/_includes/toctree.liquid +7 -2
- data/_layouts/default.liquid +119 -26
- data/_sass/site.scss +15 -1
- data/assets/404.liquid +1 -1
- data/assets/{favicon.svg → favicon.liquid} +6 -1
- data/assets/js/html5shiv.min.js +4 -0
- data/assets/{pages.json → pages.liquid} +0 -0
- data/assets/robots.liquid +9 -0
- data/assets/search.liquid +2 -2
- data/assets/sitemap.liquid +17 -0
- metadata +17 -20
- data/_includes/addons/analytics/baidu.liquid +0 -18
- data/_includes/addons/analytics/cnzz.liquid +0 -4
- data/_includes/addons/analytics/google.liquid +0 -32
- data/_includes/addons/comments/disqus.liquid +0 -10
- data/_includes/addons/seo/og.liquid +0 -7
- data/_includes/addons/seo/schema.liquid +0 -10
- data/_includes/addons/source/analytics.liquid +0 -14
- data/_includes/reset/schema.liquid +0 -6
- data/assets/robots.txt +0 -9
- data/assets/sitemap.xml +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 195022eba0c5f3fcb99d247278f0fa8da67c554ba16829f1475d6b6bcc5ca482
|
4
|
+
data.tar.gz: 8c2081bea527becb525f1e0ec86959942e179ff49ea4ef63bbcf151e59460c88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 539cf3a199ff035b039598609d880cd07dd6834f1c653e56f4bf4061a2989232d7b43719f35fe843ab2a0b11e6da6d7da53646b2fe81610d68ba17ce7160f3dd
|
7
|
+
data.tar.gz: d51f6474b9f776573eb16e2a599862b6fbb890a97c2c7ac8c5e62737861f3139162828246e052f899a801b063550eca190ec6e6cabeae48b526dafb0d690b248
|
data/README.md
CHANGED
@@ -8,36 +8,28 @@
|
|
8
8
|
|
9
9
|
Just another documentation theme compatible with GitHub Pages, based on sphinx_rtd_theme
|
10
10
|
|
11
|
-
![]
|
11
|
+
![](https://user-images.githubusercontent.com/68011645/89026666-ad3a8680-d35b-11ea-9f4b-d3fe26ae12ed.png)
|
12
12
|
|
13
|
-
##
|
14
|
-
-
|
13
|
+
## Features
|
14
|
+
- Automatically generate sidebar based on directory
|
15
15
|
- Only need one file `_config.yml` to configure site
|
16
|
-
-
|
17
|
-
- Compatible with GitHub Pages.
|
18
|
-
- Optimized for search engines with support for Open Graph data.
|
19
|
-
- Optimized for search engines with `robots.txt` and `sitemap.xml`.
|
20
|
-
- Search engine (RegExp supported)
|
21
|
-
- Commenting support
|
22
|
-
- Google,Baidu,CNZZ Analytics support.
|
16
|
+
- Search engine optimized
|
23
17
|
- Multi-language supported
|
24
|
-
-
|
18
|
+
- Document search (RegExp supported)
|
19
|
+
- Support third-party comments
|
20
|
+
- Google, Baidu, CNZZ Analytics supported
|
25
21
|
|
26
22
|
## Roadmap
|
27
|
-
See the [open issues]
|
23
|
+
See the [open issues](https://github.com/rundocs/jekyll-rtd-theme/issues) for a list of proposed features (and known issues)
|
28
24
|
|
29
25
|
## Documents
|
30
|
-
|
26
|
+
You can view theme related [tests](https://rundocs.github.io/jekyll-rtd-theme), For full documentation, please refer to [https://rundocs.io](https://rundocs.io)
|
31
27
|
|
32
28
|
## The License
|
33
|
-
The theme is available as open source under the terms of the [MIT License]
|
29
|
+
The theme is available as open source under the terms of the [MIT License](https://github.com/rundocs/jekyll-rtd-theme/blob/master/LICENSE).
|
34
30
|
|
35
31
|
|
36
32
|
[repository]: https://github.com/rundocs/jekyll-rtd-theme
|
37
|
-
[issues]: https://github.com/rundocs/jekyll-rtd-theme/issues
|
38
|
-
[license]: https://github.com/rundocs/jekyll-rtd-theme/blob/master/LICENSE
|
39
|
-
[site]: https://jekyll-rtd-theme.rundocs.io
|
40
33
|
[rubygem]: https://rubygems.org/gems/jekyll-rtd-theme
|
41
34
|
[cdn]: https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme/
|
42
35
|
[codefactor]: https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme
|
43
|
-
[demo]: https://user-images.githubusercontent.com/68011645/88376699-87980500-cdd0-11ea-8900-7bab8c811bc9.png
|
data/_includes/addons.liquid
CHANGED
@@ -1,20 +1,14 @@
|
|
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">
|
14
8
|
{%- assign items = site.addons | default: addons -%}
|
15
9
|
{% for item in items -%}
|
16
10
|
{%- if addons contains item -%}
|
17
|
-
{% include addons/
|
11
|
+
{% include addons/{{ item }}.liquid %}
|
18
12
|
{%- endif -%}
|
19
13
|
{% endfor -%}
|
20
14
|
<hr>
|
File without changes
|
File without changes
|
File without changes
|
data/_includes/album.liquid
CHANGED
data/_includes/assets/common.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
$(document).ready(function() {
|
2
|
+
let analytics = new URL("https://rundocs-analytics.glitch.me/collect?v={{ version }}&lang={{ lang }}");
|
2
3
|
let highlight = new URL(location.href).searchParams.get("highlight");
|
3
4
|
|
4
5
|
SphinxRtdTheme.Navigation.reset = function() {
|
@@ -23,7 +24,7 @@ $(document).ready(function() {
|
|
23
24
|
$(this).addClass("highlighted-box");
|
24
25
|
}
|
25
26
|
} catch (e) {
|
26
|
-
|
27
|
+
feedback(["highlight", e.message]);
|
27
28
|
}
|
28
29
|
});
|
29
30
|
$(".section").find(".highlighted-box").each(function() {
|
@@ -33,8 +34,14 @@ $(document).ready(function() {
|
|
33
34
|
});
|
34
35
|
}
|
35
36
|
for (let item in ui.admonition) {
|
36
|
-
|
37
|
-
|
37
|
+
$(`.language-${item}`).each(function() {
|
38
|
+
$(this).replaceWith(`<div class="admonition ${item}"><p class="admonition-title">${ui.admonition[item]}</p><p>${$(this).html()}</p></div>`);
|
39
|
+
});
|
38
40
|
}
|
39
41
|
anchors.add();
|
42
|
+
|
43
|
+
analytics.searchParams.append("user_lang", navigator.language);
|
44
|
+
analytics.searchParams.append("host", location.host);
|
45
|
+
analytics.searchParams.append("platform", navigator.platform);
|
46
|
+
$.getJSON(analytics.toString(), (data) => $("#counter").html(data.count));
|
40
47
|
});
|
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
|
});
|
@@ -6,10 +6,10 @@
|
|
6
6
|
{%- assign size_p1 = size | plus: 1 -%}
|
7
7
|
|
8
8
|
{%- assign dir = site_pages | where: "url", workdir | first %}
|
9
|
-
{% include extend/tabs.liquid size=size %}- [{{ dir.title | default: dir.url }}]({{
|
9
|
+
{% include extend/tabs.liquid size=size %}- [{{ dir.title | default: dir.url }}]({{ dir.url | relative_url }})
|
10
10
|
|
11
11
|
{%- for item in workdir_files %}
|
12
|
-
{% include extend/tabs.liquid size=size_p1 %}- [{{ item.title | default: item.url }}]({{
|
12
|
+
{% include extend/tabs.liquid size=size_p1 %}- [{{ item.title | default: item.url }}]({{ item.url | relative_url }})
|
13
13
|
{%- endfor -%}
|
14
14
|
|
15
15
|
{%- for workdir in workdir_dirs %}{% include extend/list.liquid %}{% endfor -%}
|
@@ -1,18 +1,22 @@
|
|
1
1
|
{%- include reset/workdir.liquid %}
|
2
2
|
|
3
|
+
{% comment %} display the directory name {% endcomment %}
|
3
4
|
{%- assign dir = site_pages | where: "url", workdir | first -%}
|
4
5
|
{%- if site_lang != lang -%}
|
6
|
+
{% comment %} current in language directory (level-1) {% endcomment %}
|
5
7
|
{%- assign workdir_level = workdir_level | minus: 1 -%}
|
6
8
|
{%- endif -%}
|
7
9
|
{%- if workdir_level == 2 %}
|
10
|
+
{% comment %} display the root sub-directory as "p.caption" {% endcomment %}
|
8
11
|
<p class="caption"><span class="caption-text">{{ dir.title | default: dir.url }}</span></p>
|
9
12
|
{%- else %}
|
10
|
-
<a class="reference internal" href="{{
|
13
|
+
<a class="reference internal" href="{{ dir.url | relative_url }}">{{ dir.title | default: dir.url }}</a>
|
11
14
|
{%- endif -%}
|
12
15
|
|
13
16
|
<ul>
|
17
|
+
{% comment %} list file {% endcomment %}
|
14
18
|
{%- for item in workdir_files -%}
|
15
|
-
{%- assign level = item.dir | append: "temp/" | split: "/" | size | minus:
|
19
|
+
{%- assign level = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 1 -%}
|
16
20
|
{%- capture current -%}
|
17
21
|
{%- if page.url == item.url %}current{% endif -%}
|
18
22
|
{%- endcapture %}
|
@@ -21,16 +25,19 @@
|
|
21
25
|
{%- endif -%}
|
22
26
|
|
23
27
|
<li class="toctree-l{{ level }} {{ current }}">
|
24
|
-
<a class="reference internal {{ current }}" href="{{
|
28
|
+
<a class="reference internal {{ current }}" href="{{ item.url | relative_url }}">
|
25
29
|
{%- if item.sort and site.show_sorted != false -%}
|
26
|
-
{{ item.sort }}.
|
27
|
-
{%-
|
28
|
-
|
30
|
+
{{ item.sort }}. {{ item.title | default: item.url }}
|
31
|
+
{%- else -%}
|
32
|
+
{{ item.title | default: item.url }}
|
33
|
+
{%- endif -%}
|
29
34
|
</a>
|
30
35
|
</li>
|
31
36
|
{%- endfor -%}
|
37
|
+
|
38
|
+
{% comment %} list dirs {% endcomment %}
|
32
39
|
{%- for workdir in workdir_dirs -%}
|
33
|
-
{%- assign level = workdir | append: "temp/" | split: "/" | size | minus:
|
40
|
+
{%- assign level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 2 %}
|
34
41
|
{%- if site_lang != lang -%}
|
35
42
|
{%- assign level = level | minus: 1 -%}
|
36
43
|
{%- endif -%}
|
data/_includes/footer.liquid
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
{%- if next or prev -%}
|
3
3
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
4
4
|
{%- if next -%}
|
5
|
-
<a href="{{
|
5
|
+
<a href="{{ next.url | relative_url }}" class="btn btn-neutral float-right" title="{{ next.title }}" accesskey="n" rel="next">
|
6
6
|
{{- __next }} <span class="fa fa-arrow-circle-right"></span>
|
7
7
|
</a>
|
8
8
|
{%- endif -%}
|
9
9
|
{%- if prev -%}
|
10
|
-
<a href="{{
|
10
|
+
<a href="{{ prev.url | relative_url }}" class="btn btn-neutral float-left" title="{{ prev.title }}" accesskey="p" rel="prev">
|
11
11
|
<span class="fa fa-arrow-circle-left"></span> {{ __previous -}}
|
12
12
|
</a>
|
13
13
|
{%- endif -%}
|
@@ -23,7 +23,7 @@
|
|
23
23
|
{%- endif -%}
|
24
24
|
{{ site.time | date: "%Y" }},
|
25
25
|
{{ author }}
|
26
|
-
{% if site.copyright.revision -%}
|
26
|
+
{% if site.copyright.revision and site.github_metadata != false -%}
|
27
27
|
<span class="commit">
|
28
28
|
{{ __revision }} <code>{{ commit }}</code>
|
29
29
|
</span>
|
@@ -31,7 +31,7 @@
|
|
31
31
|
</p>
|
32
32
|
</div>
|
33
33
|
{%- endif -%}
|
34
|
-
<div role="contentinfo" class="copyright
|
35
|
-
Powered by <a href="https://rundocs.io">rundocs.io</a>
|
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
36
|
</div>
|
37
37
|
</footer>
|
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 %} Spanish {% endcomment %}
|
2
|
+
{%- assign __github = "Github" -%}
|
3
|
+
{%- assign __homepage = "Página principal" -%}
|
4
|
+
{%- assign __issues = "Cuestiones" -%}
|
5
|
+
{%- assign __download = "Descargar" -%}
|
6
|
+
{%- assign __plugins = "Complementos temáticos" -%}
|
7
|
+
{%- assign __translations = "Traducciones" -%}
|
8
|
+
{%- assign __statistics = "Estadísticas" -%}
|
9
|
+
{%- assign __total_visits = "Visitas totales:" -%}
|
10
|
+
|
11
|
+
{%- assign __note = "Observaciones" -%}
|
12
|
+
{%- assign __tip = "Consejos" -%}
|
13
|
+
{%- assign __warning = "Advertencia" -%}
|
14
|
+
{%- assign __danger = "Peligro" -%}
|
15
|
+
|
16
|
+
{%- assign __next = "Siguiente página" -%}
|
17
|
+
{%- assign __previous = "Pagina anterior" -%}
|
18
|
+
{%- assign __copyright = "Derechos de autor" -%}
|
19
|
+
{%- assign __revision = "Revisión" -%}
|
20
|
+
|
21
|
+
{%- assign __404 = "404" -%}
|
22
|
+
{%- assign __not_found = "¡Esta página aún no existe!" -%}
|
23
|
+
|
24
|
+
{%- assign __searching = "Buscando" -%}
|
25
|
+
{%- assign __search = "Buscar" -%}
|
26
|
+
{%- assign __search_docs = "Buscar documentos" -%}
|
27
|
+
{%- assign __search_results = "Resultados de la búsqueda" -%}
|
28
|
+
{%- assign __search_results_found = "Búsqueda finalizada, se encontraron # páginas que coinciden con la consulta de búsqueda." -%}
|
29
|
+
{%- assign __search_results_not_found = "Su búsqueda no coincide con ningún documento, asegúrese de que todos los caracteres estén escritos correctamente." -%}
|
@@ -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 = "По вашему запросу не найдено ни одного документа, убедитесь, что все символы написаны правильно!" -%}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{% comment %} Swedish {% endcomment %}
|
2
|
+
{%- assign __github = "Github" -%}
|
3
|
+
{%- assign __homepage = "Hemsida" -%}
|
4
|
+
{%- assign __issues = "frågor" -%}
|
5
|
+
{%- assign __download = "Ladda ner" -%}
|
6
|
+
{%- assign __plugins = "Tema Plugins" -%}
|
7
|
+
{%- assign __translations = "översättningar" -%}
|
8
|
+
{%- assign __statistics = "Statistik" -%}
|
9
|
+
{%- assign __total_visits = "Totalt antal besök:" -%}
|
10
|
+
|
11
|
+
{%- assign __note = "Anmärkningar" -%}
|
12
|
+
{%- assign __tip = "tips" -%}
|
13
|
+
{%- assign __warning = "Varning" -%}
|
14
|
+
{%- assign __danger = "Fara" -%}
|
15
|
+
|
16
|
+
{%- assign __next = "Nästa sida" -%}
|
17
|
+
{%- assign __previous = "Föregående sida" -%}
|
18
|
+
{%- assign __copyright = "upphovsrätt" -%}
|
19
|
+
{%- assign __revision = "Revision" -%}
|
20
|
+
|
21
|
+
{%- assign __404 = "404" -%}
|
22
|
+
{%- assign __not_found = "Den här sidan finns inte ännu!" -%}
|
23
|
+
|
24
|
+
{%- assign __searching = "Sökande" -%}
|
25
|
+
{%- assign __search = "Sök" -%}
|
26
|
+
{%- assign __search_docs = "Sök i dokument" -%}
|
27
|
+
{%- assign __search_results = "sökresultat" -%}
|
28
|
+
{%- assign __search_results_found = "Sökningen är klar, hittade # sida (er) som matchar sökfrågan." -%}
|
29
|
+
{%- assign __search_results_not_found = "Din sökning matchade inga dokument, se till att alla tecken stavas korrekt!" -%}
|
data/_includes/list.liquid
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
{%- include reset/workdir.liquid workdir=page.dir -%}
|
3
3
|
|
4
4
|
{%- for item in workdir_files %}
|
5
|
-
- [{{ item.title | default: item.url }}]({{
|
5
|
+
- [{{ item.title | default: item.url }}]({{ item.url | relative_url }})
|
6
6
|
{%- endfor -%}
|
7
7
|
|
8
8
|
{%- if include.all -%}
|
@@ -1,50 +1,58 @@
|
|
1
1
|
{%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
|
2
|
-
{%- assign version = "1.
|
2
|
+
{%- assign version = "1.1.1" -%}
|
3
3
|
{%- assign addons = "github, i18n, plugins, analytics" | split: ", " -%}
|
4
4
|
|
5
|
-
{%-
|
6
|
-
{%-
|
7
|
-
{%-
|
5
|
+
{%- assign schema_date = page.date | default: site.time | date_to_xmlschema -%}
|
6
|
+
{%- assign schema_modi = site.time | date_to_xmlschema -%}
|
7
|
+
{%- assign schema_surl = page.url | absolute_url | replace: 'http://', 'https://' | xml_escape -%}
|
8
8
|
|
9
|
-
{% comment %}
|
10
|
-
{%- if jekyll.environment != "production" -%}
|
11
|
-
{%- assign author = site.author | default: "[author]" -%}
|
12
|
-
{%- assign branch = "[branch]" -%}
|
13
|
-
{%- assign commit = "[commit]" -%}
|
14
|
-
{%- assign repository_url = "#" -%}
|
15
|
-
{%- assign issues_url = "#" -%}
|
16
|
-
{%- assign zip_url = "#" -%}
|
17
|
-
{%- assign github_edit_link = "#" -%}
|
18
|
-
{%- else -%}
|
19
|
-
{%- assign author = site.author | default: site.github.owner_name -%}
|
20
|
-
{%- assign branch = site.github.source.branch -%}
|
21
|
-
{%- assign commit = site.github.build_revision | slice: 0, 7 -%}
|
22
|
-
{%- assign repository_url = site.github.repository_url -%}
|
23
|
-
{%- assign issues_url = site.github.issues_url -%}
|
24
|
-
{%- assign zip_url = site.github.zip_url -%}
|
25
|
-
{%- capture github_edit_link %}{% github_edit_link %}{% endcapture -%}
|
26
|
-
{%- endif -%}
|
27
|
-
|
28
|
-
{% comment %} scss and script {% endcomment %}
|
9
|
+
{% comment %} scss {% endcomment %}
|
29
10
|
{%- capture site_scss -%}
|
30
11
|
@import "site.scss";
|
31
|
-
{
|
32
|
-
@import "fluid.scss";
|
33
|
-
{% endif -%}
|
12
|
+
{% if site.fluid %}@import "fluid.scss";{% endif %}
|
34
13
|
{% include assets/custom.scss %} {{ site.scss }}
|
35
14
|
{%- endcapture -%}
|
36
15
|
|
37
|
-
{
|
38
|
-
{% include assets/common.js %}
|
39
|
-
{% include assets/custom.js %} {{ site.script }}
|
40
|
-
{%- endcapture -%}
|
41
|
-
|
16
|
+
{% comment %} cdn {% endcomment %}
|
42
17
|
{%- if site.debug -%}
|
43
18
|
{%- assign cdn = site.baseurl -%}
|
44
19
|
{%- else -%}
|
45
20
|
{%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
|
46
21
|
{%- endif -%}
|
47
22
|
|
23
|
+
{% comment %} github-metadata {% endcomment %}
|
24
|
+
{%- if site.github_metadata != false -%}
|
25
|
+
{%- if jekyll.environment == "production" -%}
|
26
|
+
{%- assign author = site.author | default: site.github.owner_name -%}
|
27
|
+
{%- assign branch = site.github.source.branch -%}
|
28
|
+
{%- assign commit = site.github.build_revision | slice: 0, 7 -%}
|
29
|
+
{%- assign repository_url = site.github.repository_url -%}
|
30
|
+
{%- assign issues_url = site.github.issues_url -%}
|
31
|
+
{%- assign zip_url = site.github.zip_url -%}
|
32
|
+
{%- capture github_edit_link %}{% github_edit_link %}{% endcapture -%}
|
33
|
+
{%- else -%}
|
34
|
+
{%- assign author = site.author | default: "[author]" -%}
|
35
|
+
{%- assign branch = "[branch]" -%}
|
36
|
+
{%- assign commit = "[commit]" -%}
|
37
|
+
{%- assign repository_url = "#" -%}
|
38
|
+
{%- assign issues_url = "#" -%}
|
39
|
+
{%- assign zip_url = "#" -%}
|
40
|
+
{%- assign github_edit_link = "#" -%}
|
41
|
+
{%- endif -%}
|
42
|
+
{%- else -%}
|
43
|
+
{%- assign author = site.author | default: "[author]" -%}
|
44
|
+
{%- assign branch = "" -%}
|
45
|
+
{%- assign commit = "" -%}
|
46
|
+
{%- assign repository_url = "" -%}
|
47
|
+
{%- assign issues_url = "" -%}
|
48
|
+
{%- assign zip_url = "" -%}
|
49
|
+
{%- assign github_edit_link = "" -%}
|
50
|
+
{%- assign addons = "i18n, plugins, analytics" | split: ", " -%}
|
51
|
+
{%- endif -%}
|
52
|
+
|
53
|
+
{%- include reset/site_pages.liquid %}
|
54
|
+
{%- include reset/i18n.liquid -%}
|
55
|
+
|
48
56
|
{% comment %} title {% endcomment %}
|
49
57
|
{%- case page.url -%}
|
50
58
|
{%- when "/" -%}
|
@@ -8,12 +8,12 @@
|
|
8
8
|
{%- endif -%}
|
9
9
|
{%- endif -%}
|
10
10
|
|
11
|
-
{%- assign workdir_level = workdir | append: "temp/" | split: "/" | size
|
11
|
+
{%- assign workdir_level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
|
12
12
|
{%- assign workdir_files = site_files | where_exp: "item", "item.dir == workdir" -%}
|
13
13
|
|
14
14
|
{%- capture items -%}
|
15
15
|
{%- for item in site_dirs -%}
|
16
|
-
{%- assign current_m1 = item.dir | append: "temp/" | split: "/" | size | minus:
|
16
|
+
{%- assign current_m1 = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 1 -%}
|
17
17
|
{%- if workdir_level == current_m1 -%}
|
18
18
|
{%- assign temp = workdir | append: "@@" -%}
|
19
19
|
{%- assign dir = item.dir | replace: workdir, temp | split: "@@" | first -%}
|
data/_includes/toctree.liquid
CHANGED
@@ -1,17 +1,22 @@
|
|
1
1
|
{%- include reset/workdir.liquid %}
|
2
2
|
|
3
|
+
{% comment %} list the root files {% endcomment %}
|
3
4
|
<ul>
|
4
5
|
{%- for item in workdir_files -%}
|
5
|
-
{%- assign level = item.dir | append: "temp/" | split: "/" | size
|
6
|
+
{%- assign level = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
|
7
|
+
{%- if site_lang != lang -%}
|
8
|
+
{%- assign level = level | minus: 1 -%}
|
9
|
+
{%- endif -%}
|
6
10
|
{%- capture current -%}
|
7
11
|
{%- if page.url == item.url %}current{% endif -%}
|
8
12
|
{%- endcapture %}
|
9
13
|
<li class="toctree-l{{ level }} {{ current }}">
|
10
|
-
<a class="reference internal {{ current }}" href="{{
|
14
|
+
<a class="reference internal {{ current }}" href="{{ item.url | relative_url }}">
|
11
15
|
{{ item.title | default: item.url }}
|
12
16
|
</a>
|
13
17
|
</li>
|
14
18
|
{%- endfor %}
|
15
19
|
</ul>
|
16
20
|
|
21
|
+
{% comment %} list the root dirs {% endcomment %}
|
17
22
|
{%- for workdir in workdir_dirs %}{% include extend/toctree.liquid %}{% endfor -%}
|
data/_layouts/default.liquid
CHANGED
@@ -19,35 +19,82 @@ 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
|
-
<
|
22
|
+
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
23
|
+
<title>{{ title | truncate: 110 }}</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 }}">
|
26
42
|
<meta name="revised" content="{{ commit }}">
|
27
43
|
<meta name="generator" content="jekyll-rtd-theme v{{ version }}">
|
28
|
-
<!--
|
44
|
+
<!-- meta-ogp -->
|
45
|
+
{% comment %} https://ogp.me {% endcomment %}
|
46
|
+
<meta property="og:title" content="{{ title }}">
|
47
|
+
<meta property="og:description" content="{{ description }}">
|
48
|
+
<meta property="og:locale" content="{{ lang }}">
|
49
|
+
<meta property="og:url" content="{{ schema_surl }}">
|
50
|
+
<meta property="og:type" content="article">
|
51
|
+
<meta property="article:author" content="{{ author }}">
|
52
|
+
<meta property="article:published_time" content="{{ schema_date }}">
|
53
|
+
<meta property="article:modified_time" content="{{ schema_modi }}">
|
54
|
+
<!-- meta-custom -->
|
29
55
|
{% for meta in site.meta -%}
|
30
56
|
<meta name="{{ meta.first }}" content="{{ meta.last }}">
|
31
57
|
{% endfor -%}
|
32
|
-
<!-- og -->
|
33
|
-
{% include addons/seo/og.liquid %}
|
34
58
|
<!-- schema -->
|
35
|
-
|
59
|
+
<script type="application/ld+json">
|
60
|
+
{
|
61
|
+
"@context": "https://schema.org",
|
62
|
+
"@type": "Article",
|
63
|
+
"mainEntityOfPage": {
|
64
|
+
"@type": "WebPage",
|
65
|
+
"@id": "{{ schema_surl }}"
|
66
|
+
},
|
67
|
+
"headline": "{{ title | truncate: 110 }}",
|
68
|
+
"image": [{% for image in page.images %}"{{ image }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
|
69
|
+
"author": {
|
70
|
+
"@type": "Person",
|
71
|
+
"name": "{{ author }}"
|
72
|
+
},
|
73
|
+
"datePublished": "{{ schema_date }}",
|
74
|
+
"dateModified": "{{ schema_modi }}",
|
75
|
+
"publisher": {
|
76
|
+
"@type": "Organization",
|
77
|
+
"name": "RunDocs",
|
78
|
+
"logo": {
|
79
|
+
"@type": "ImageObject",
|
80
|
+
"url": "https://rundocs.io/logo.png"
|
81
|
+
}
|
82
|
+
},
|
83
|
+
"description": "{{ description }}"
|
84
|
+
}
|
85
|
+
</script>
|
36
86
|
<!-- link -->
|
37
|
-
{
|
38
|
-
|
39
|
-
{
|
40
|
-
{%- if next -%}
|
41
|
-
<link rel="next" href="{{ next.url | absolute_url | xml_escape }}">
|
42
|
-
{%- endif -%}
|
43
|
-
<link rel="canonical" href="{{ schema_url }}">
|
87
|
+
<link rel="canonical" href="{{ schema_surl }}">
|
88
|
+
{% if prev %}<link rel="prev" href="{{ prev.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
|
89
|
+
{% if next %}<link rel="next" href="{{ next.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
|
44
90
|
<!-- theme -->
|
45
91
|
<link rel="stylesheet" href="{{ cdn }}/assets/css/theme.css">
|
46
92
|
<link rel="stylesheet" href="{{ cdn }}/assets/css/rougify/{{ site.rougify | default: 'github' }}.css">
|
47
93
|
<style>{{ site_scss | scssify }}</style>
|
48
94
|
<!-- icon -->
|
49
|
-
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/
|
95
|
+
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/favicon.svg">
|
50
96
|
<!-- script -->
|
97
|
+
<!--[if lt IE 9]><script src="{{ cdn }}/assets/js/html5shiv.min.js"></script><![endif]-->
|
51
98
|
<script src="{{ cdn }}/assets/js/jquery.min.js"></script>
|
52
99
|
<script>
|
53
100
|
const ui = {
|
@@ -66,7 +113,7 @@ layout: plugins/compress
|
|
66
113
|
|
67
114
|
<body class="wy-body-for-nav">
|
68
115
|
<div class="wy-grid-for-nav">
|
69
|
-
<!--
|
116
|
+
<!-- NAV -->
|
70
117
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
71
118
|
<div class="wy-side-scroll">
|
72
119
|
<div class="wy-side-nav-search">
|
@@ -84,16 +131,13 @@ layout: plugins/compress
|
|
84
131
|
</form>
|
85
132
|
</div>
|
86
133
|
</div>
|
87
|
-
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
88
|
-
{% include toctree.liquid %}
|
89
|
-
</div>
|
134
|
+
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">{% include toctree.liquid %}</div>
|
90
135
|
{%- if site.embed -%}
|
91
|
-
|
92
|
-
<div class="wy-embed">{{ site.embed }}</div>
|
93
|
-
</div>
|
136
|
+
<div class="wy-embed-wrap"><div class="wy-embed">{{ site.embed }}</div></div>
|
94
137
|
{%- endif -%}
|
95
138
|
</div>
|
96
139
|
</nav>
|
140
|
+
|
97
141
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
98
142
|
<!-- MOBILE NAV -->
|
99
143
|
<nav class="wy-nav-top" aria-label="top navigation">
|
@@ -111,7 +155,17 @@ layout: plugins/compress
|
|
111
155
|
<div class="section">{{ content }}</div>
|
112
156
|
{%- endif -%}
|
113
157
|
</div>
|
114
|
-
{%
|
158
|
+
{% comment %} comments {% endcomment %}
|
159
|
+
{% if site.disqus %}
|
160
|
+
<div id="disqus_thread" class="articleComments"></div>
|
161
|
+
<script>
|
162
|
+
(function(script) {
|
163
|
+
script.src = "https://{{ site.disqus }}.disqus.com/embed.js";
|
164
|
+
script.setAttribute("data-timestamp", +new Date());
|
165
|
+
document.head.appendChild(script);
|
166
|
+
})(document.createElement("script"));
|
167
|
+
</script>
|
168
|
+
{% endif %}
|
115
169
|
</div>
|
116
170
|
{% include footer.liquid %}
|
117
171
|
</div>
|
@@ -122,11 +176,50 @@ layout: plugins/compress
|
|
122
176
|
<!-- script -->
|
123
177
|
<script src="{{ cdn }}/assets/js/theme.js"></script>
|
124
178
|
<script src="{{ cdn }}/assets/js/anchor.min.js"></script>
|
125
|
-
<script>
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
179
|
+
<script>
|
180
|
+
{% include assets/common.js %}
|
181
|
+
{% include assets/custom.js %} {{ site.script }}
|
182
|
+
</script>
|
183
|
+
|
184
|
+
{% comment %} Baidu link submit {% endcomment %}
|
185
|
+
{%- if site.baidu.linksubmit -%}
|
186
|
+
<script>
|
187
|
+
(function(script) {
|
188
|
+
script.src = "https://zz.bdstatic.com/linksubmit/push.js";
|
189
|
+
document.head.appendChild(script);
|
190
|
+
})(document.createElement("script"));
|
191
|
+
</script>
|
192
|
+
{%- endif -%}
|
193
|
+
|
194
|
+
{% comment %} Baidu Analytics {% endcomment %}
|
195
|
+
{%- if site.baidu.hm -%}
|
196
|
+
<script>
|
197
|
+
var _hmt = _hmt || [];
|
198
|
+
(function(script) {
|
199
|
+
script.src = "https://hm.baidu.com/hm.js?{{ site.baidu.hm }}";
|
200
|
+
document.head.appendChild(script);
|
201
|
+
})(document.createElement("script"));
|
202
|
+
</script>
|
203
|
+
{%- endif -%}
|
204
|
+
|
205
|
+
{% comment %} CNZZ Analytics {% endcomment %}
|
206
|
+
{%- if site.cnzz -%}
|
207
|
+
<span id="cnzz_stat_icon_{{ site.cnzz }}" style="display: none;"></span>
|
208
|
+
<script async src="https://v1.cnzz.com/z_stat.php?id={{ site.cnzz }}"></script>
|
209
|
+
{%- endif -%}
|
210
|
+
|
211
|
+
{% comment %} Google Analytics {% endcomment %}
|
212
|
+
{%- if site.google.gtag -%}
|
213
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.gtag }}"></script>
|
214
|
+
<script>
|
215
|
+
gtag("config", "{{ site.google.gtag }}");
|
216
|
+
</script>
|
217
|
+
{%- endif -%}
|
218
|
+
|
219
|
+
{% comment %} Google AdSense {% endcomment %}
|
220
|
+
{%- if site.google.adsense -%}
|
221
|
+
<script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
222
|
+
{%- endif -%}
|
130
223
|
</body>
|
131
224
|
|
132
225
|
</html>
|
data/_sass/site.scss
CHANGED
@@ -11,6 +11,20 @@ footer {
|
|
11
11
|
text-align: center;
|
12
12
|
}
|
13
13
|
}
|
14
|
+
/* from glitch */
|
15
|
+
.progress:after {
|
16
|
+
display: inline-block;
|
17
|
+
content: "\2026";
|
18
|
+
width: 0;
|
19
|
+
overflow: hidden;
|
20
|
+
vertical-align: bottom;
|
21
|
+
animation: ellipsis steps(4, end) 1000ms infinite;
|
22
|
+
}
|
23
|
+
@keyframes ellipsis {
|
24
|
+
to {
|
25
|
+
width: 1.25em;
|
26
|
+
}
|
27
|
+
}
|
14
28
|
/* breadcrumbs icon */
|
15
29
|
.fa-angle-double-right {
|
16
30
|
font-size: 13px;
|
@@ -50,7 +64,7 @@ footer {
|
|
50
64
|
font-size: 12px;
|
51
65
|
}
|
52
66
|
/* theme copyright */
|
53
|
-
.
|
67
|
+
.rundocs {
|
54
68
|
display: none;
|
55
69
|
}
|
56
70
|
/* view box of search results */
|
data/assets/404.liquid
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
+
---
|
2
|
+
layout: plugins/compress
|
3
|
+
permalink: /favicon.svg
|
4
|
+
---
|
5
|
+
|
6
|
+
{% comment %} material-design-icons article {% endcomment %}
|
1
7
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#2980b9" width="36px" height="36px">
|
2
8
|
<path d="M0 0h24v24H0z" fill="none"/>
|
3
9
|
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/>
|
4
10
|
</svg>
|
5
|
-
<!-- material-design-icons article -->
|
@@ -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);
|
File without changes
|
data/assets/search.liquid
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
---
|
2
|
-
permalink: /search.html
|
3
2
|
layout: default
|
3
|
+
permalink: /search.html
|
4
4
|
---
|
5
5
|
|
6
6
|
{%- include reset/site_pages.liquid -%}
|
7
7
|
{%- include reset/i18n.liquid -%}
|
8
8
|
|
9
9
|
<div id="search-results">
|
10
|
-
<h2>{{ __searching }}<span
|
10
|
+
<h2>{{ __searching }}<span class="progress"></span></h2>
|
11
11
|
<p class="search-summary"></p>
|
12
12
|
<ul class="search"></ul>
|
13
13
|
</div>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
layout: plugins/compress
|
3
|
+
permalink: /sitemap.xml
|
4
|
+
---
|
5
|
+
|
6
|
+
{%- include reset/site_pages.liquid -%}
|
7
|
+
|
8
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
9
|
+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
10
|
+
{%- for page in site_pages -%}
|
11
|
+
<url>
|
12
|
+
<loc>{{ page.url | absolute_url | replace: "http://", "https://" | xml_escape }}</loc>
|
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
|
+
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
15
|
+
</url>
|
16
|
+
{%- endfor %}
|
17
|
+
</urlset>
|
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.
|
4
|
+
version: 1.1.1
|
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-19 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
|
@@ -34,16 +34,10 @@ files:
|
|
34
34
|
- LICENSE
|
35
35
|
- README.md
|
36
36
|
- _includes/addons.liquid
|
37
|
-
- _includes/addons/analytics
|
38
|
-
- _includes/addons/
|
39
|
-
- _includes/addons/
|
40
|
-
- _includes/addons/
|
41
|
-
- _includes/addons/seo/og.liquid
|
42
|
-
- _includes/addons/seo/schema.liquid
|
43
|
-
- _includes/addons/source/analytics.liquid
|
44
|
-
- _includes/addons/source/github.liquid
|
45
|
-
- _includes/addons/source/i18n.liquid
|
46
|
-
- _includes/addons/source/plugins.liquid
|
37
|
+
- _includes/addons/analytics.liquid
|
38
|
+
- _includes/addons/github.liquid
|
39
|
+
- _includes/addons/i18n.liquid
|
40
|
+
- _includes/addons/plugins.liquid
|
47
41
|
- _includes/album.liquid
|
48
42
|
- _includes/assets/common.js
|
49
43
|
- _includes/assets/custom.js
|
@@ -55,16 +49,18 @@ files:
|
|
55
49
|
- _includes/extend/toctree.liquid
|
56
50
|
- _includes/footer.liquid
|
57
51
|
- _includes/i18n/en.liquid
|
52
|
+
- _includes/i18n/es.liquid
|
58
53
|
- _includes/i18n/fr.liquid
|
59
54
|
- _includes/i18n/it.liquid
|
60
55
|
- _includes/i18n/ja.liquid
|
61
56
|
- _includes/i18n/ko.liquid
|
57
|
+
- _includes/i18n/ru.liquid
|
58
|
+
- _includes/i18n/sv.liquid
|
62
59
|
- _includes/i18n/zh-cn.liquid
|
63
60
|
- _includes/list.liquid
|
64
61
|
- _includes/reset/defaults.liquid
|
65
62
|
- _includes/reset/i18n.liquid
|
66
63
|
- _includes/reset/languages.liquid
|
67
|
-
- _includes/reset/schema.liquid
|
68
64
|
- _includes/reset/site_pages.liquid
|
69
65
|
- _includes/reset/workdir.liquid
|
70
66
|
- _includes/toctree.liquid
|
@@ -116,14 +112,15 @@ files:
|
|
116
112
|
- assets/css/rougify/thankful_eyes.css
|
117
113
|
- assets/css/rougify/tulip.css
|
118
114
|
- assets/css/theme.css
|
119
|
-
- assets/favicon.
|
115
|
+
- assets/favicon.liquid
|
120
116
|
- assets/js/anchor.min.js
|
117
|
+
- assets/js/html5shiv.min.js
|
121
118
|
- assets/js/jquery.min.js
|
122
119
|
- assets/js/theme.js
|
123
|
-
- assets/pages.
|
124
|
-
- assets/robots.
|
120
|
+
- assets/pages.liquid
|
121
|
+
- assets/robots.liquid
|
125
122
|
- assets/search.liquid
|
126
|
-
- assets/sitemap.
|
123
|
+
- assets/sitemap.liquid
|
127
124
|
homepage: https://github.com/rundocs/jekyll-rtd-theme
|
128
125
|
licenses:
|
129
126
|
- MIT
|
@@ -146,5 +143,5 @@ requirements: []
|
|
146
143
|
rubygems_version: 3.1.2
|
147
144
|
signing_key:
|
148
145
|
specification_version: 4
|
149
|
-
summary: Just another
|
146
|
+
summary: Just another jekyll docs theme compatible with GitHub Pages, based on sphinx_rtd_theme
|
150
147
|
test_files: []
|
@@ -1,18 +0,0 @@
|
|
1
|
-
{%- if site.baidu.linksubmit -%}
|
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
|
-
{%- endif -%}
|
9
|
-
|
10
|
-
{%- if site.baidu.hm -%}
|
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
|
-
{%- endif -%}
|
@@ -1,32 +0,0 @@
|
|
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
|
-
{%- 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
|
-
window.dataLayer = window.dataLayer || [];
|
20
|
-
|
21
|
-
function gtag() {
|
22
|
-
dataLayer.push(arguments);
|
23
|
-
}
|
24
|
-
gtag("js", new Date());
|
25
|
-
gtag("config", "{{ site.google.gtag }}");
|
26
|
-
</script>
|
27
|
-
{%- endif -%}
|
28
|
-
|
29
|
-
{%- 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>
|
32
|
-
{%- endif -%}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
{% if site.disqus %}
|
2
|
-
<div id="disqus_thread" class="articleComments"></div>
|
3
|
-
<script>
|
4
|
-
(function(script) {
|
5
|
-
script.src = "https://{{ site.disqus }}.disqus.com/embed.js";
|
6
|
-
script.setAttribute("data-timestamp", +new Date());
|
7
|
-
document.head.appendChild(script);
|
8
|
-
})(document.createElement("script"));
|
9
|
-
</script>
|
10
|
-
{% endif %}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<meta property="og:title" content="{{ title }}">
|
2
|
-
<meta property="og:description" content="{{ description }}">
|
3
|
-
<meta property="og:locale" content="{{ lang }}">
|
4
|
-
<meta property="og:url" content="{{ schema_url }}">
|
5
|
-
<meta property="og:type" content="article">
|
6
|
-
<meta property="article:author" content="{{ author }}">
|
7
|
-
<meta property="article:modified_time" content="{{ schema_lastmod }}">
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<dl>
|
2
|
-
<dt>{{ __statistics }}</dt>
|
3
|
-
<dd>
|
4
|
-
<a href="https://github.com/rundocs/analytics" target="_blank">
|
5
|
-
{{ __total_visits }} <span id="counter"></span> <i class="fa fa-eye"></i>
|
6
|
-
</a>
|
7
|
-
</dd>
|
8
|
-
</dl>
|
9
|
-
|
10
|
-
<script>
|
11
|
-
$(document).ready(function() {
|
12
|
-
$.getJSON("https://rundocs-analytics.glitch.me/analytics?host=" + location.host, (data) => $("#counter").html(data.count));
|
13
|
-
});
|
14
|
-
</script>
|
@@ -1,6 +0,0 @@
|
|
1
|
-
{%- assign schema_url = page.url | absolute_url | xml_escape -%}
|
2
|
-
{%- assign schema_lastmod = page.date | default: site.time | date_to_xmlschema -%}
|
3
|
-
|
4
|
-
{%- assign schema_weight_title = page.title | size | divided_by: 200.0 -%}
|
5
|
-
{%- assign schema_weight_content = page.content | size | divided_by: 1024.0 -%}
|
6
|
-
{%- assign schema_priority = schema_weight_content | plus: schema_weight_title | times: 10 | ceil | divided_by: 10.0 | at_least: 0.1 | at_most: 1.0 -%}
|
data/assets/robots.txt
DELETED
data/assets/sitemap.xml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: plugins/compress
|
3
|
-
permalink: /sitemap.xml
|
4
|
-
---
|
5
|
-
|
6
|
-
{%- include reset/site_pages.liquid -%}
|
7
|
-
|
8
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
9
|
-
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
10
|
-
{%- for page in site_pages -%}
|
11
|
-
{% include reset/schema.liquid %}
|
12
|
-
<url>
|
13
|
-
<loc>{{ schema_url }}</loc>
|
14
|
-
<priority>{{ schema_priority }}</priority>
|
15
|
-
<lastmod>{{ schema_lastmod }}</lastmod>
|
16
|
-
</url>
|
17
|
-
{%- endfor %}
|
18
|
-
</urlset>
|