jekyll-rtd-theme 1.1.3 → 2.0.0.pre.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -12
- data/_includes/addons/analytics.liquid +5 -2
- data/_includes/addons/github.liquid +16 -4
- data/_includes/assets/sw.caches.js +43 -0
- data/_includes/breadcrumbs.liquid +20 -36
- data/_includes/extend/toctree.liquid +6 -15
- data/_includes/footer.liquid +31 -32
- data/_includes/reset/defaults.liquid +4 -36
- data/_includes/reset/workdir.liquid +1 -14
- data/_includes/safe/shortcodes.liquid +9 -0
- data/_includes/shortcodes/danger.liquid +7 -0
- data/_includes/shortcodes/mermaid.liquid +1 -0
- data/_includes/shortcodes/note.liquid +7 -0
- data/_includes/shortcodes/tip.liquid +7 -0
- data/_includes/shortcodes/warning.liquid +7 -0
- data/_includes/toctree.liquid +7 -6
- data/_layouts/default.liquid +99 -141
- data/_layouts/plugins/compress.liquid +13 -10
- data/_layouts/plugins/extension.liquid +30 -22
- data/_sass/@primer/base/base.scss +90 -0
- data/_sass/@primer/base/index.scss +6 -0
- data/_sass/@primer/base/kbd.scss +21 -0
- data/_sass/@primer/base/normalize.scss +423 -0
- data/_sass/@primer/base/typography-base.scss +100 -0
- data/_sass/@primer/breadcrumb/breadcrumb.scss +28 -0
- data/_sass/@primer/breadcrumb/index.scss +3 -0
- data/_sass/@primer/buttons/button-group.scss +91 -0
- data/_sass/@primer/buttons/button.scss +296 -0
- data/_sass/@primer/buttons/index.scss +4 -0
- data/_sass/@primer/buttons/misc.scss +205 -0
- data/_sass/@primer/forms/form-control.scss +278 -0
- data/_sass/@primer/forms/form-group.scss +279 -0
- data/_sass/@primer/forms/form-select.scss +38 -0
- data/_sass/@primer/forms/form-validation.scss +369 -0
- data/_sass/@primer/forms/index.scss +7 -0
- data/_sass/@primer/forms/input-group.scss +53 -0
- data/_sass/@primer/forms/radio-group.scss +43 -0
- data/_sass/@primer/markdown/blob-csv.scss +31 -0
- data/_sass/@primer/markdown/code.scss +73 -0
- data/_sass/@primer/markdown/headings.scss +72 -0
- data/_sass/@primer/markdown/images.scss +131 -0
- data/_sass/@primer/markdown/index.scss +8 -0
- data/_sass/@primer/markdown/lists.scss +76 -0
- data/_sass/@primer/markdown/markdown-body.scss +99 -0
- data/_sass/@primer/markdown/tables.scss +38 -0
- data/_sass/@primer/support/index.scss +11 -0
- data/_sass/@primer/support/mixins/buttons.scss +184 -0
- data/_sass/@primer/support/mixins/layout.scss +55 -0
- data/_sass/@primer/support/mixins/misc.scss +32 -0
- data/_sass/@primer/support/mixins/typography.scss +88 -0
- data/_sass/@primer/support/variables/color-system.scss +243 -0
- data/_sass/@primer/support/variables/colors.scss +55 -0
- data/_sass/@primer/support/variables/layout.scss +149 -0
- data/_sass/@primer/support/variables/misc.scss +42 -0
- data/_sass/@primer/support/variables/typography.scss +43 -0
- data/_sass/@primer/utilities/animations.scss +187 -0
- data/_sass/@primer/utilities/borders.scss +184 -0
- data/_sass/@primer/utilities/box-shadow.scss +25 -0
- data/_sass/@primer/utilities/colors.scss +185 -0
- data/_sass/@primer/utilities/details.scss +34 -0
- data/_sass/@primer/utilities/flexbox.scss +121 -0
- data/_sass/@primer/utilities/index.scss +14 -0
- data/_sass/@primer/utilities/layout.scss +134 -0
- data/_sass/@primer/utilities/margin.scss +68 -0
- data/_sass/@primer/utilities/padding.scss +59 -0
- data/_sass/@primer/utilities/typography.scss +325 -0
- data/_sass/@primer/utilities/visibility-display.scss +82 -0
- data/_sass/_font-face.scss +65 -0
- data/_sass/_icons.scss +53 -0
- data/_sass/_layout.scss +76 -0
- data/_sass/_reset.scss +21 -0
- data/_sass/_root.scss +9 -0
- data/_sass/_variables.scss +29 -0
- data/_sass/class/addons-wrap.scss +39 -0
- data/_sass/class/container.scss +11 -0
- data/_sass/class/content-wrap.scss +4 -0
- data/_sass/class/header.scss +10 -0
- data/_sass/class/highlight.scss +214 -0
- data/_sass/class/markdown-body.scss +49 -0
- data/_sass/class/sidebar-wrap.scss +72 -0
- data/_sass/class/title.scss +13 -0
- data/_sass/theme.scss +29 -0
- data/assets/404.liquid +2 -4
- data/assets/css/theme.min.css +1 -0
- data/assets/css/theme.scss +4 -0
- data/assets/js/mermaid.min.js +6 -5
- data/assets/js/search.js +90 -0
- data/assets/js/theme.js +228 -1
- data/assets/js/theme.min.js +1 -0
- data/assets/robots.liquid +1 -1
- data/assets/search.liquid +5 -12
- data/assets/sitemap.liquid +1 -1
- data/assets/sw.caches.liquid +8 -0
- metadata +80 -54
- data/_includes/addons.liquid +0 -24
- data/_includes/addons/i18n.liquid +0 -13
- data/_includes/addons/plugins.liquid +0 -6
- data/_includes/album.liquid +0 -7
- data/_includes/assets/common.js +0 -62
- data/_includes/assets/custom.js +0 -0
- data/_includes/assets/custom.scss +0 -0
- data/_includes/assets/search.js +0 -76
- data/_includes/i18n/en.liquid +0 -29
- data/_includes/i18n/es.liquid +0 -29
- data/_includes/i18n/fr.liquid +0 -29
- data/_includes/i18n/it.liquid +0 -29
- data/_includes/i18n/ja.liquid +0 -29
- data/_includes/i18n/ko.liquid +0 -29
- data/_includes/i18n/ru.liquid +0 -29
- data/_includes/i18n/sv.liquid +0 -29
- data/_includes/i18n/zh-cn.liquid +0 -29
- data/_includes/reset/i18n.liquid +0 -31
- data/_includes/reset/languages.liquid +0 -110
- data/_sass/_album.scss +0 -19
- data/_sass/_embed.scss +0 -23
- data/_sass/fluid.scss +0 -7
- data/_sass/jekyll-rtd-theme.scss +0 -128
- data/assets/css/rougify/base16.css +0 -1
- data/assets/css/rougify/base16.dark.css +0 -1
- data/assets/css/rougify/base16.light.css +0 -1
- data/assets/css/rougify/base16.monokai.css +0 -1
- data/assets/css/rougify/base16.monokai.dark.css +0 -1
- data/assets/css/rougify/base16.monokai.light.css +0 -1
- data/assets/css/rougify/base16.solarized.css +0 -1
- data/assets/css/rougify/base16.solarized.dark.css +0 -1
- data/assets/css/rougify/base16.solarized.light.css +0 -1
- data/assets/css/rougify/bw.css +0 -1
- data/assets/css/rougify/colorful.css +0 -1
- data/assets/css/rougify/github.css +0 -1
- data/assets/css/rougify/gruvbox.css +0 -1
- data/assets/css/rougify/gruvbox.dark.css +0 -1
- data/assets/css/rougify/gruvbox.light.css +0 -1
- data/assets/css/rougify/igorpro.css +0 -1
- data/assets/css/rougify/magritte.css +0 -1
- data/assets/css/rougify/molokai.css +0 -1
- data/assets/css/rougify/monokai.css +0 -1
- data/assets/css/rougify/monokai.sublime.css +0 -1
- data/assets/css/rougify/pastie.css +0 -1
- data/assets/css/rougify/thankful_eyes.css +0 -1
- data/assets/css/rougify/tulip.css +0 -1
- data/assets/css/theme.css +0 -4
- data/assets/js/anchor.min.js +0 -9
- data/assets/js/html5shiv.min.js +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15185d69e5df3312de8226fdf843da12d6f1cbc754a0b439c0be998be05fe524
|
4
|
+
data.tar.gz: ede7f10389e609983db0b3429ad717366016205c4c19447fe2db68056596d7b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dc680274eb05e270130ec057f902794f53b622af56dfe222d194d53d0fc90e3598c16d52c0b7cf84b71f53406d81fd480be150f06c54ee3228a9fbafae49037
|
7
|
+
data.tar.gz: 611d1d5a0752e19bb708b55f3f878a1747f447e5348f7b8b98265befe6af025482275b5babfe042e7e7d21cda4140d6a900208fae9ba0f2fe2287a8a6553e70d
|
data/README.md
CHANGED
@@ -1,23 +1,20 @@
|
|
1
1
|
# jekyll-rtd-theme
|
2
|
-
[![](https://github.com/rundocs/jekyll-rtd-theme/workflows/CI/badge.svg)][repository]
|
3
|
-
[![](https://img.shields.io/gem/v/jekyll-rtd-theme)][rubygem]
|
4
|
-
[![](https://img.shields.io/gem/dt/jekyll-rtd-theme)][rubygem]
|
5
|
-
[![](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)][cdn]
|
6
|
-
[![](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme/badge)][codefactor]
|
7
|
-
[![](https://img.shields.io/badge/featured%20on-JekyllThemes-red.svg)](https://jekyll-themes.com)
|
8
|
-
[![](https://badges.gitter.im/rundocs/jekyll-rtd-theme.svg)][gitter]
|
9
2
|
|
10
|
-
|
3
|
+
[![CI](https://github.com/rundocs/jekyll-rtd-theme/workflows/CI/badge.svg)][repository]
|
4
|
+
[![jsDelivr](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)][cdn]
|
11
5
|
|
12
|
-
|
6
|
+
Opinionated github flavored documentation theme for open source projects
|
13
7
|
|
14
8
|
## Quick start
|
9
|
+
|
15
10
|
```yml
|
16
11
|
remote_theme: rundocs/jekyll-rtd-theme
|
17
12
|
```
|
13
|
+
|
18
14
|
You can [generate](https://github.com/rundocs/starter-slim/generate) with the same files and folders from [rundocs/starter-slim](https://github.com/rundocs/starter-slim/)
|
19
15
|
|
20
16
|
## Features
|
17
|
+
|
21
18
|
- Automatically generate nested sidebar based on directory
|
22
19
|
- Multi-language supported
|
23
20
|
- Search engine optimized
|
@@ -27,10 +24,17 @@ You can [generate](https://github.com/rundocs/starter-slim/generate) with the sa
|
|
27
24
|
- Just need one file `_config.yml` to configure site
|
28
25
|
|
29
26
|
## Documents
|
30
|
-
For full documentation, please refer to [rundocs.io](https://rundocs.io/), You can also view [the theme related tests documentation](https://rundocs.github.io/jekyll-rtd-theme)
|
31
27
|
|
32
|
-
|
33
|
-
|
28
|
+
For full documentation, please refer to our website ([rundocs.io](https://rundocs.io/)) for details
|
29
|
+
|
30
|
+
### test
|
31
|
+
|
32
|
+
- Latest test document: [rundocs.github.io/jekyll-rtd-theme](https://rundocs.github.io/jekyll-rtd-theme)
|
33
|
+
- Preview debug branch, please refer to [rundocs.github.io/debug](https://rundocs.github.io/debug)
|
34
|
+
|
35
|
+
## The license
|
36
|
+
|
37
|
+
The theme is available as open source under the terms of the MIT License
|
34
38
|
|
35
39
|
[repository]: https://github.com/rundocs/jekyll-rtd-theme
|
36
40
|
[rubygem]: https://rubygems.org/gems/jekyll-rtd-theme
|
@@ -1,8 +1,11 @@
|
|
1
1
|
<dl>
|
2
|
-
<dt>{{
|
2
|
+
<dt>{{ site.data.translate.statistics | default: "Statistics" }}</dt>
|
3
3
|
<dd>
|
4
4
|
<a href="https://github.com/rundocs/analytics" target="_blank">
|
5
|
-
{{
|
5
|
+
{{ site.data.translate.total_visits | default: "Total visits" }}:
|
6
|
+
<span id="counter">
|
7
|
+
<span class="progress"></span>
|
8
|
+
</span>
|
6
9
|
</a>
|
7
10
|
</dd>
|
8
11
|
</dl>
|
@@ -1,6 +1,18 @@
|
|
1
1
|
<dl>
|
2
|
-
<dt>{{
|
3
|
-
<dd
|
4
|
-
|
5
|
-
|
2
|
+
<dt>{{ site.data.translate.github | default: "GitHub" }}</dt>
|
3
|
+
<dd>
|
4
|
+
<a href="{{ site.github.repository_url }}">
|
5
|
+
<i class="fa fa-github"></i> {{ site.data.translate.homepage | default: "HomePage" }}
|
6
|
+
</a>
|
7
|
+
</dd>
|
8
|
+
<dd>
|
9
|
+
<a href="{{ site.github.issues_url }}">
|
10
|
+
<i class="fa fa-question-circle-o"></i> {{ site.data.translate.issues | default: "Issues" }}
|
11
|
+
</a>
|
12
|
+
</dd>
|
13
|
+
<dd>
|
14
|
+
<a href="{{ site.github.zip_url }}">
|
15
|
+
<i class="fa fa-download"></i> {{ site.data.translate.download | default: "Download" }}
|
16
|
+
</a>
|
17
|
+
</dd>
|
6
18
|
</dl>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
self.addEventListener("activate", function (event) {
|
2
|
+
let cacheWhitelist = ["rundocs-{{ version }}"];
|
3
|
+
|
4
|
+
event.waitUntil(
|
5
|
+
caches.keys().then(function (keyList) {
|
6
|
+
return Promise.all(
|
7
|
+
keyList.map(function (key) {
|
8
|
+
if (cacheWhitelist.indexOf(key) === -1) {
|
9
|
+
return caches.delete(key);
|
10
|
+
}
|
11
|
+
})
|
12
|
+
);
|
13
|
+
})
|
14
|
+
);
|
15
|
+
});
|
16
|
+
|
17
|
+
self.addEventListener("fetch", function (e) {
|
18
|
+
if (
|
19
|
+
/^https:\/\/cdn\.jsdelivr\.net\/gh\/rundocs\/jekyll-rtd-theme@.+/.exec(
|
20
|
+
e.request.url
|
21
|
+
)
|
22
|
+
) {
|
23
|
+
e.respondWith(
|
24
|
+
caches.match(e.request).then(function (resp) {
|
25
|
+
if (resp !== undefined) {
|
26
|
+
return resp;
|
27
|
+
} else {
|
28
|
+
return fetch(e.request, {
|
29
|
+
cache: "no-store",
|
30
|
+
})
|
31
|
+
.then(function (resp) {
|
32
|
+
let clone = resp.clone();
|
33
|
+
caches.open("rundocs-{{ version }}").then(function (cache) {
|
34
|
+
cache.put(e.request, clone);
|
35
|
+
});
|
36
|
+
return resp;
|
37
|
+
})
|
38
|
+
.catch(console.log);
|
39
|
+
}
|
40
|
+
})
|
41
|
+
);
|
42
|
+
}
|
43
|
+
});
|
@@ -1,43 +1,27 @@
|
|
1
|
-
<div
|
2
|
-
<ul class="
|
3
|
-
<li>
|
4
|
-
<a href="{{ site.baseurl }}/"
|
1
|
+
<div class="navigation-top d-flex flex-justify-between">
|
2
|
+
<ul class="breadcrumb" role="navigation" aria-label="breadcrumbs navigation">
|
3
|
+
<li class="breadcrumb-item">
|
4
|
+
<a href="{{ site.baseurl }}/" title="{{ site.github.source.branch }}"><i class="fa fa-home"></i></a>
|
5
5
|
</li>
|
6
6
|
{%- case page.url -%}
|
7
|
-
{%- when "/search.html"
|
8
|
-
<li>{{
|
9
|
-
{%- when "/404.html"
|
10
|
-
<li
|
7
|
+
{%- when "/search.html" -%}
|
8
|
+
<li class="breadcrumb-item" aria-current="page">{{ site.data.translate.search | default: "Search" }}</li>
|
9
|
+
{%- when "/404.html" -%}
|
10
|
+
<li class="breadcrumb-item" aria-current="page">404</li>
|
11
11
|
{%- else -%}
|
12
12
|
{%- assign blocks = page.path | split: "/" -%}
|
13
|
-
{%-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
{%- capture href -%}
|
22
|
-
{{ site.baseurl }}/{% for block in blocks limit: forloop.index %}{{ block | append: "/" }}{% endfor %}
|
23
|
-
{%- endcapture %}
|
24
|
-
<li>
|
25
|
-
<a href="{{ href }}">
|
26
|
-
{%- if block == lang -%}
|
27
|
-
{{ block }}
|
28
|
-
{%- else -%}
|
29
|
-
{{ block | capitalize }}
|
30
|
-
{%- endif -%}
|
31
|
-
</a><i class="fa fa-angle-double-right"></i>
|
32
|
-
</li>
|
33
|
-
{%- endif -%}
|
13
|
+
{%- for block in blocks -%}
|
14
|
+
<li class="breadcrumb-item" {% if forloop.last %}aria-current{% endif %}>
|
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>
|
19
|
+
{%- endif -%}
|
20
|
+
</li>
|
34
21
|
{%- endfor -%}
|
35
|
-
{%- endcase
|
36
|
-
{%- if site.edit and site.github_metadata != false -%}
|
37
|
-
<li class="wy-breadcrumbs-aside">
|
38
|
-
<a href="{{ github_edit_link }}" class="fa fa-edit" target="_blank"></a>
|
39
|
-
</li>
|
40
|
-
{%- endif -%}
|
22
|
+
{%- endcase -%}
|
41
23
|
</ul>
|
42
|
-
<
|
24
|
+
<a class="edit" href="{% github_edit_link %}" title="{{ site.data.translate.edit | default: 'Edit on GitHub'}}" target="_blank">
|
25
|
+
<i class="fa fa-edit"></i>
|
26
|
+
</a>
|
43
27
|
</div>
|
@@ -2,15 +2,12 @@
|
|
2
2
|
|
3
3
|
{% comment %} display the directory name {% endcomment %}
|
4
4
|
{%- assign dir = site_pages | where: "url", workdir | first -%}
|
5
|
-
|
6
|
-
{% comment %} current in language directory (level-1) {% endcomment %}
|
7
|
-
{%- assign workdir_level = workdir_level | minus: 1 -%}
|
8
|
-
{%- endif -%}
|
5
|
+
|
9
6
|
{%- if workdir_level == 2 %}
|
10
7
|
{% comment %} display the root sub-directory as "p.caption" {% endcomment %}
|
11
|
-
<p class="caption
|
8
|
+
<p class="caption text-uppercase no-wrap px-2 mb-0">{{ dir.title | default: dir.url }}</p>
|
12
9
|
{%- else %}
|
13
|
-
<a class="
|
10
|
+
<a class="d-flex" href="{{ dir.url | relative_url }}">{{ dir.title | default: dir.url }}</a>
|
14
11
|
{%- endif -%}
|
15
12
|
|
16
13
|
<ul>
|
@@ -20,12 +17,9 @@
|
|
20
17
|
{%- capture current -%}
|
21
18
|
{%- if page.url == item.url %}current{% endif -%}
|
22
19
|
{%- endcapture %}
|
23
|
-
{%- if site_lang != lang -%}
|
24
|
-
{%- assign level = level | minus: 1 -%}
|
25
|
-
{%- endif -%}
|
26
20
|
|
27
|
-
<li class="
|
28
|
-
<a class="
|
21
|
+
<li class="toc level-{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
|
22
|
+
<a class="d-flex {{ current }}" href="{{ item.url | relative_url }}">
|
29
23
|
{%- if item.sort and site.show_sorted != false -%}
|
30
24
|
{{ item.sort }}. {{ item.title | default: item.url }}
|
31
25
|
{%- else -%}
|
@@ -38,9 +32,6 @@
|
|
38
32
|
{% comment %} list dirs {% endcomment %}
|
39
33
|
{%- for workdir in workdir_dirs -%}
|
40
34
|
{%- assign level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 2 %}
|
41
|
-
{
|
42
|
-
{%- assign level = level | minus: 1 -%}
|
43
|
-
{%- endif -%}
|
44
|
-
<li class="toctree-l{{ level }}">{% include extend/toctree.liquid %}</li>
|
35
|
+
<li class="toc level-{{ level }}">{% include extend/toctree.liquid %}</li>
|
45
36
|
{%- endfor -%}
|
46
37
|
</ul>
|
data/_includes/footer.liquid
CHANGED
@@ -1,37 +1,36 @@
|
|
1
|
-
|
1
|
+
{% comment %} prev and next {% endcomment %}
|
2
|
+
{%- if page.url != "/search.html" and page.url != "/404.html" -%}
|
2
3
|
{%- if next or prev -%}
|
3
|
-
<div class="
|
4
|
-
|
5
|
-
|
6
|
-
{{
|
7
|
-
|
8
|
-
|
9
|
-
{%- if prev -%}
|
10
|
-
<a href="{{ prev.url | relative_url }}" class="btn btn-neutral float-left" title="{{ prev.title }}" accesskey="p" rel="prev">
|
11
|
-
<span class="fa fa-arrow-circle-left"></span> {{ __previous -}}
|
12
|
-
</a>
|
13
|
-
{%- endif -%}
|
14
|
-
</div>
|
15
|
-
{%- endif -%}
|
16
|
-
<hr>
|
17
|
-
{%- if site.copyright -%}
|
18
|
-
<div role="contentinfo" class="copyright">
|
19
|
-
<p>
|
20
|
-
<i class="fa fa-copyright"></i> {{ __copyright }}
|
21
|
-
{% if site.copyright.since -%}
|
22
|
-
{{ site.copyright.since | append: "-" }}
|
4
|
+
<div class="navigation-bottom d-flex flex-justify-between py-3" role="navigation" aria-label="footer navigation">
|
5
|
+
<div class="prev">
|
6
|
+
{%- if prev -%}
|
7
|
+
<a href="{{ prev.url | relative_url }}" class="btn" title="{{ prev.title }}" accesskey="p" rel="prev">
|
8
|
+
<i class="fa fa-arrow-circle-left"></i> {{ site.data.translate.previous | default: "Previous" }}
|
9
|
+
</a>
|
23
10
|
{%- endif -%}
|
24
|
-
|
25
|
-
|
26
|
-
{
|
27
|
-
<
|
28
|
-
{{
|
29
|
-
</
|
11
|
+
</div>
|
12
|
+
<div class="next">
|
13
|
+
{%- if next -%}
|
14
|
+
<a href="{{ next.url | relative_url }}" class="btn" title="{{ next.title }}" accesskey="n" rel="next">
|
15
|
+
{{ site.data.translate.next | default: "Next" }} <i class="fa fa-arrow-circle-right"></i>
|
16
|
+
</a>
|
30
17
|
{%- endif -%}
|
31
|
-
</
|
18
|
+
</div>
|
32
19
|
</div>
|
33
20
|
{%- endif -%}
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
21
|
+
{%- endif -%}
|
22
|
+
|
23
|
+
<hr>
|
24
|
+
|
25
|
+
<div class="copyright text-center text-gray" role="contentinfo">
|
26
|
+
<i class="fa fa-copyright"></i>
|
27
|
+
{%- if site.rundocs.since %}{{ site.rundocs.since }}-{% endif -%}
|
28
|
+
{{- site.time | date: "%Y" }},
|
29
|
+
<a class="text-gray" href="{{ site.github.owner_url }}" target="_blank">
|
30
|
+
{{ site.github.owner_name }}
|
31
|
+
</a>
|
32
|
+
{{ site.data.translate.revision | default: "Revision" }}
|
33
|
+
<a class="text-gray" href="{{ site.github.repository_url }}/commit/{{ site.github.build_revision }}" title="{{ site.github.build_revision }}" target="_blank">
|
34
|
+
{{ site.github.build_revision | slice: 0, 7 }}
|
35
|
+
</a>
|
36
|
+
</div>
|
@@ -1,17 +1,9 @@
|
|
1
1
|
{%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
|
2
|
-
{%- assign version = "
|
3
|
-
{%- assign addons = "github, i18n, plugins, analytics" | split: ", " -%}
|
2
|
+
{%- assign version = "2.0.0-beta" -%}
|
4
3
|
|
5
4
|
{%- assign schema_date = page.date | default: site.time | date_to_xmlschema -%}
|
6
5
|
{%- assign schema_modi = site.time | date_to_xmlschema -%}
|
7
|
-
{%- assign schema_surl = page.url | absolute_url |
|
8
|
-
|
9
|
-
{% comment %} scss {% endcomment %}
|
10
|
-
{%- capture site_scss -%}
|
11
|
-
@import "jekyll-rtd-theme.scss";
|
12
|
-
{% if site.fluid %}@import "fluid.scss";{% endif %}
|
13
|
-
{% include assets/custom.scss %} {{ site.scss }}
|
14
|
-
{%- endcapture -%}
|
6
|
+
{%- assign schema_surl = page.url | absolute_url | xml_escape -%}
|
15
7
|
|
16
8
|
{% comment %} cdn {% endcomment %}
|
17
9
|
{%- if site.debug -%}
|
@@ -20,28 +12,7 @@
|
|
20
12
|
{%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
|
21
13
|
{%- endif -%}
|
22
14
|
|
23
|
-
{% comment %} github-metadata {% endcomment %}
|
24
|
-
{%- if site.github_metadata != false -%}
|
25
|
-
{%- assign author = site.author | default: site.github.owner_name -%}
|
26
|
-
{%- assign branch = site.github.source.branch -%}
|
27
|
-
{%- assign commit = site.github.build_revision | slice: 0, 7 -%}
|
28
|
-
{%- assign repository_url = site.github.repository_url -%}
|
29
|
-
{%- assign issues_url = site.github.issues_url -%}
|
30
|
-
{%- assign zip_url = site.github.zip_url -%}
|
31
|
-
{%- capture github_edit_link %}{% github_edit_link %}{% endcapture -%}
|
32
|
-
{%- else -%}
|
33
|
-
{%- assign author = site.author -%}
|
34
|
-
{%- assign branch = "" -%}
|
35
|
-
{%- assign commit = "" -%}
|
36
|
-
{%- assign repository_url = "" -%}
|
37
|
-
{%- assign issues_url = "" -%}
|
38
|
-
{%- assign zip_url = "" -%}
|
39
|
-
{%- assign github_edit_link = "" -%}
|
40
|
-
{%- assign addons = "i18n, plugins, analytics" | split: ", " -%}
|
41
|
-
{%- endif -%}
|
42
|
-
|
43
15
|
{%- include reset/site_pages.liquid %}
|
44
|
-
{%- include reset/i18n.liquid -%}
|
45
16
|
|
46
17
|
{% comment %} title {% endcomment %}
|
47
18
|
{%- case page.url -%}
|
@@ -58,11 +29,8 @@
|
|
58
29
|
{% comment %} content {% endcomment %}
|
59
30
|
{%- assign content = content
|
60
31
|
| replace: '’', "'"
|
61
|
-
| replace:
|
62
|
-
|
63
|
-
| replace: "</code></pre>", "</pre>"
|
64
|
-
| replace: '<code class="language-plaintext highlighter-rouge">', '<code class="literal">'
|
65
|
-
| replace: "<table>", '<table class="docutils align-default">' -%}
|
32
|
+
| replace: "highlighter-rouge", "highlighter-rouge notranslate" -%}
|
33
|
+
|
66
34
|
|
67
35
|
{% comment %} prev and next {% endcomment %}
|
68
36
|
{%- assign workdir_files = site_files | where_exp: "item", "item.dir == page.dir" -%}
|
@@ -1,13 +1,6 @@
|
|
1
1
|
{% comment %} Start from the language chapter(eg: en-us) or root(/) {% endcomment %}
|
2
2
|
{%- assign workdir = include.workdir | default: "/" -%}
|
3
3
|
|
4
|
-
{%- if page.dir != "/" -%}
|
5
|
-
{%- assign chapter = page.dir | remove_first: "/" | split: "/" | first -%}
|
6
|
-
{%- if languages contains chapter -%}
|
7
|
-
{%- capture workdir %}/{{ chapter }}/{% endcapture -%}
|
8
|
-
{%- endif -%}
|
9
|
-
{%- endif -%}
|
10
|
-
|
11
4
|
{%- assign workdir_level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
|
12
5
|
{%- assign workdir_files = site_files | where_exp: "item", "item.dir == workdir" -%}
|
13
6
|
|
@@ -19,13 +12,7 @@
|
|
19
12
|
{%- assign dir = item.dir | replace: workdir, temp | split: "@@" | first -%}
|
20
13
|
{% comment %} In the current subdirectory {% endcomment %}
|
21
14
|
{%- if workdir == dir -%}
|
22
|
-
{
|
23
|
-
{%- if workdir == "/" -%}
|
24
|
-
{%- assign language = item.dir | replace: "/", "" -%}
|
25
|
-
{%- unless languages contains language %}{{ item.dir }}|{% endunless -%}
|
26
|
-
{%- else -%}
|
27
|
-
{{ item.dir }}|
|
28
|
-
{%- endif -%}
|
15
|
+
{{ item.dir }}|
|
29
16
|
{%- endif -%}
|
30
17
|
{%- endif -%}
|
31
18
|
{%- endfor -%}
|
@@ -0,0 +1 @@
|
|
1
|
+
<div class="mermaid overflow-x-auto">{{ codes }}</div>
|