jekyll-rtd-theme 2.0.0 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +45 -14
- data/_includes/addons/analytics.liquid +2 -2
- data/_includes/assets/sw.caches.js +3 -7
- data/_includes/class/_breadcrumbs.liquid +1 -1
- data/_includes/class/_toctree.liquid +3 -3
- data/_includes/class/content-wrap.liquid +2 -2
- data/_includes/class/sidebar-wrap.liquid +3 -3
- data/_includes/extend/list.liquid +4 -4
- data/_includes/extend/toctree.liquid +4 -4
- data/_includes/list.liquid +3 -3
- data/_includes/{head → node}/links.liquid +8 -0
- data/_includes/{head → node}/metadata.liquid +0 -0
- data/_includes/{head → node}/script.extension.liquid +0 -0
- data/_includes/{head → node}/script.liquid +6 -3
- data/_includes/{head → node}/script.schema.liquid +0 -0
- data/_includes/{head → node}/title.liquid +0 -0
- data/_includes/reset/content.liquid +5 -0
- data/_includes/reset/defaults.liquid +11 -0
- data/_includes/reset/description.liquid +6 -0
- data/_includes/{rest → reset}/i18n.liquid +0 -0
- data/_includes/reset/navigation.liquid +20 -0
- data/_includes/{rest → reset}/site_pages.liquid +0 -0
- data/_includes/{rest → reset}/tabs.liquid +0 -0
- data/_includes/reset/title.liquid +18 -0
- data/_includes/reset/variables.liquid +31 -0
- data/_includes/reset/version.liquid +1 -0
- data/_includes/{rest → reset}/workdir.liquid +0 -0
- data/_includes/shortcodes/danger.liquid +2 -2
- data/_includes/shortcodes/note.liquid +2 -2
- data/_includes/shortcodes/tip.liquid +2 -2
- data/_includes/shortcodes/warning.liquid +2 -2
- data/_layouts/default.liquid +9 -10
- data/_layouts/plugins/extension.liquid +2 -3
- data/_sass/@primer/{base → css/base}/base.scss +0 -0
- data/_sass/@primer/{base → css/base}/index.scss +0 -0
- data/_sass/@primer/{base → css/base}/kbd.scss +0 -0
- data/_sass/@primer/{base → css/base}/normalize.scss +0 -0
- data/_sass/@primer/{base → css/base}/typography-base.scss +0 -0
- data/_sass/@primer/{breadcrumb → css/breadcrumb}/breadcrumb.scss +0 -0
- data/_sass/@primer/{breadcrumb → css/breadcrumb}/index.scss +0 -0
- data/_sass/@primer/{buttons → css/buttons}/button-group.scss +0 -0
- data/_sass/@primer/{buttons → css/buttons}/button.scss +0 -0
- data/_sass/@primer/{buttons → css/buttons}/index.scss +0 -0
- data/_sass/@primer/{buttons → css/buttons}/misc.scss +0 -0
- data/_sass/@primer/{forms → css/forms}/form-control.scss +6 -3
- data/_sass/@primer/{forms → css/forms}/form-group.scss +0 -0
- data/_sass/@primer/{forms → css/forms}/form-select.scss +0 -0
- data/_sass/@primer/{forms → css/forms}/form-validation.scss +0 -0
- data/_sass/@primer/{forms → css/forms}/index.scss +0 -0
- data/_sass/@primer/{forms → css/forms}/input-group.scss +0 -0
- data/_sass/@primer/{forms → css/forms}/radio-group.scss +0 -0
- data/_sass/@primer/css/loaders/index.scss +2 -0
- data/_sass/@primer/css/loaders/loaders.scss +21 -0
- data/_sass/@primer/{markdown → css/markdown}/blob-csv.scss +0 -0
- data/_sass/@primer/{markdown → css/markdown}/code.scss +0 -0
- data/_sass/@primer/{markdown → css/markdown}/headings.scss +0 -0
- data/_sass/@primer/{markdown → css/markdown}/images.scss +0 -0
- data/_sass/@primer/{markdown → css/markdown}/index.scss +0 -0
- data/_sass/@primer/{markdown → css/markdown}/lists.scss +1 -0
- data/_sass/@primer/{markdown → css/markdown}/markdown-body.scss +0 -0
- data/_sass/@primer/{markdown → css/markdown}/tables.scss +0 -0
- data/_sass/@primer/{support → css/support}/index.scss +0 -0
- data/_sass/@primer/{support → css/support}/mixins/buttons.scss +0 -0
- data/_sass/@primer/{support → css/support}/mixins/layout.scss +0 -0
- data/_sass/@primer/{support → css/support}/mixins/misc.scss +0 -0
- data/_sass/@primer/{support → css/support}/mixins/typography.scss +0 -0
- data/_sass/@primer/{support → css/support}/variables/color-system.scss +0 -0
- data/_sass/@primer/{support → css/support}/variables/colors.scss +0 -0
- data/_sass/@primer/{support → css/support}/variables/layout.scss +0 -0
- data/_sass/@primer/{support → css/support}/variables/misc.scss +1 -0
- data/_sass/@primer/{support → css/support}/variables/typography.scss +0 -0
- data/_sass/@primer/{utilities → css/utilities}/animations.scss +0 -0
- data/_sass/@primer/{utilities → css/utilities}/borders.scss +6 -3
- data/_sass/@primer/{utilities → css/utilities}/box-shadow.scss +0 -0
- data/_sass/@primer/{utilities → css/utilities}/colors.scss +0 -0
- data/_sass/@primer/{utilities → css/utilities}/details.scss +0 -0
- data/_sass/@primer/{utilities → css/utilities}/flexbox.scss +3 -0
- data/_sass/@primer/{utilities → css/utilities}/index.scss +0 -0
- data/_sass/@primer/{utilities → css/utilities}/layout.scss +42 -25
- data/_sass/@primer/{utilities → css/utilities}/margin.scss +0 -0
- data/_sass/@primer/{utilities → css/utilities}/padding.scss +0 -0
- data/_sass/@primer/{utilities → css/utilities}/typography.scss +0 -0
- data/_sass/@primer/{utilities → css/utilities}/visibility-display.scss +0 -0
- data/_sass/_font-face.scss +7 -6
- data/_sass/_icons.scss +5 -0
- data/_sass/_variables.scss +1 -1
- data/_sass/class/admonition.scss +6 -0
- data/_sass/class/markdown-body.scss +25 -0
- data/_sass/class/sidebar-wrap.scss +8 -0
- data/_sass/material-design-lite/_color-definitions.scss +378 -0
- data/_sass/material-design-lite/_functions.scss +19 -0
- data/_sass/material-design-lite/_mixins.scss +301 -0
- data/_sass/material-design-lite/_variables.scss +612 -0
- data/_sass/theme.scss +10 -7
- data/assets/404.liquid +1 -1
- data/assets/css/theme.min.css +1 -1
- data/assets/js/theme.js +246 -244
- data/assets/js/theme.min.js +1 -1
- data/assets/pages.liquid +1 -1
- data/assets/search.liquid +2 -2
- data/assets/sitemap.liquid +1 -1
- data/assets/sw.caches.liquid +1 -1
- metadata +74 -63
- data/_includes/head/custom.liquid +0 -19
- data/_includes/rest/defaults.liquid +0 -69
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de113ba870917abb9b9ebe794243fee857482bfd8f537f69725e3b7485c9cb08
|
|
4
|
+
data.tar.gz: 55860f67065f64c2706311774cefe8f4b5c586275252940ec28c954874ecec38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6383d8a918ca354d8ba5000b3a7eb9869f3ec24396230fa823ca818bfc7c173d08fc614ce5b84da57ff885df2ad1cd653d098aa4bd4ed786578188c651b15487
|
|
7
|
+
data.tar.gz: 7f65f1bdbbf80c1a79cc0f368155ff4bf9ec8c432982e47c2c7019e5487f1c689907887d5f62444327ee5c0c235757a6b6d1628e16485b70cd0f9a13a1c85f21
|
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
# jekyll-rtd-theme
|
|
2
2
|
|
|
3
|
-

|
|
3
|
+

|
|
4
4
|

|
|
5
5
|
|
|
6
|
-
Opinionated github flavored standard document theme for open source projects, with few options,
|
|
6
|
+
Opinionated github flavored standard document theme for open source projects, with few options, but everything!
|
|
7
|
+
|
|
8
|
+
## What it does?
|
|
9
|
+
|
|
10
|
+
This theme is inspired by [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme) and refactored with:
|
|
11
|
+
|
|
12
|
+
- [github-pages](https://github.com/github/pages-gem)
|
|
13
|
+
- [@primer/css](https://github.com/primer/css)
|
|
14
|
+
|
|
15
|
+
Give you a native GitHub experience and solved the issue of open source project documentation site
|
|
16
|
+
|
|
17
|
+
- No need to learn other programming languages for building documentation
|
|
18
|
+
- No need to care about the site SEO
|
|
19
|
+
- Markdown syntax extended
|
|
20
|
+
- Native support for mermaid chart plugin
|
|
7
21
|
|
|
8
22
|
## Quick start
|
|
9
23
|
|
|
@@ -17,21 +31,16 @@ You can [generate](https://github.com/rundocs/starter-slim/generate) with the sa
|
|
|
17
31
|
|
|
18
32
|
```yml
|
|
19
33
|
title: Your awesome title
|
|
20
|
-
lang: en
|
|
34
|
+
lang: # default: en
|
|
21
35
|
description: Write an awesome description for your new site here
|
|
22
36
|
|
|
23
|
-
# plugin options
|
|
24
37
|
readme_index:
|
|
25
38
|
with_frontmatter: true
|
|
26
39
|
|
|
27
|
-
|
|
28
|
-
# optional settings
|
|
40
|
+
## optional settings ##
|
|
29
41
|
meta:
|
|
30
42
|
key1: value1
|
|
31
43
|
key2: value2
|
|
32
|
-
.
|
|
33
|
-
.
|
|
34
|
-
.
|
|
35
44
|
|
|
36
45
|
google:
|
|
37
46
|
gtag:
|
|
@@ -39,17 +48,39 @@ google:
|
|
|
39
48
|
|
|
40
49
|
mermaid:
|
|
41
50
|
custom: # mermaid link
|
|
42
|
-
initialize: # mermaid options
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
initialize: # mermaid options, default: {}
|
|
52
|
+
|
|
53
|
+
# also available via file: _include/assets/custom.scss
|
|
54
|
+
scss:
|
|
55
|
+
|
|
56
|
+
# also available via file: _include/assets/custom.js
|
|
57
|
+
script:
|
|
58
|
+
|
|
59
|
+
# also available via file: _data/translate.yml
|
|
60
|
+
translate:
|
|
61
|
+
# shortcodes
|
|
62
|
+
danger:
|
|
63
|
+
note:
|
|
64
|
+
tip:
|
|
65
|
+
warning:
|
|
66
|
+
# 404
|
|
67
|
+
not_found:
|
|
68
|
+
# search
|
|
69
|
+
searching:
|
|
70
|
+
search:
|
|
71
|
+
search_docs:
|
|
72
|
+
search_results:
|
|
73
|
+
search_results_found: # the "#" in this translate will replaced with results size!
|
|
74
|
+
search_results_not_found:
|
|
75
|
+
|
|
76
|
+
## optional plugins ##
|
|
46
77
|
plugins:
|
|
47
78
|
- jemoji
|
|
48
79
|
- jekyll-avatar
|
|
49
80
|
- jekyll-mentions
|
|
50
81
|
```
|
|
51
82
|
|
|
52
|
-
##
|
|
83
|
+
## Writing
|
|
53
84
|
|
|
54
85
|
Document writing specifications, please refer to [rundocs.io](https://rundocs.io) for details
|
|
55
86
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<dl>
|
|
2
2
|
<dt>{{ __.statistics | default: "Statistics" }}</dt>
|
|
3
3
|
<dd>
|
|
4
|
-
<a href="https://github.com/rundocs/analytics" target="_blank">
|
|
4
|
+
<a href="https://github.com/rundocs/analytics" rel="noreferrer" target="_blank">
|
|
5
5
|
{{ __.total_visits | default: "Total visits" }}:
|
|
6
6
|
<span id="counter">
|
|
7
|
-
<span class="
|
|
7
|
+
<span class="AnimatedEllipsis"></span>
|
|
8
8
|
</span>
|
|
9
9
|
</a>
|
|
10
10
|
</dd>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
self.addEventListener("activate", function (event) {
|
|
2
|
-
|
|
2
|
+
const current = ["rundocs-{{ version }}"];
|
|
3
3
|
|
|
4
4
|
event.waitUntil(
|
|
5
5
|
caches.keys().then(function (keyList) {
|
|
6
6
|
return Promise.all(
|
|
7
7
|
keyList.map(function (key) {
|
|
8
|
-
if (
|
|
8
|
+
if (current.indexOf(key) === -1) {
|
|
9
9
|
return caches.delete(key);
|
|
10
10
|
}
|
|
11
11
|
})
|
|
@@ -15,11 +15,7 @@ self.addEventListener("activate", function (event) {
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
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
|
-
) {
|
|
18
|
+
if (e.request.url.match("rundocs/jekyll-rtd-theme@{{ version }}")) {
|
|
23
19
|
e.respondWith(
|
|
24
20
|
caches.match(e.request).then(function (resp) {
|
|
25
21
|
if (resp !== undefined) {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
{%- endfor -%}
|
|
28
28
|
{%- endcase -%}
|
|
29
29
|
</ul>
|
|
30
|
-
<a class="edit" href="{% github_edit_link %}" title="{{ __.edit | default: 'Edit on GitHub'}}" target="_blank">
|
|
30
|
+
<a class="edit" href="{% github_edit_link %}" title="{{ __.edit | default: 'Edit on GitHub'}}" rel="noreferrer" target="_blank">
|
|
31
31
|
<i class="fa fa-edit"></i>
|
|
32
32
|
</a>
|
|
33
33
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{%- include
|
|
1
|
+
{%- include reset/workdir.liquid %}
|
|
2
2
|
|
|
3
3
|
{% comment %} list the root files {% endcomment %}
|
|
4
4
|
<ul>
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
<li class="toc level-{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
|
|
11
11
|
<a class="d-flex flex-items-baseline {{ current }}" href="{{ item.url | relative_url }}">
|
|
12
12
|
{%- if item.sort -%}
|
|
13
|
-
{{ item.sort }}. {{ item.title | default: item.
|
|
13
|
+
{{ item.sort }}. {{ item.title | default: item.name }}
|
|
14
14
|
{%- else -%}
|
|
15
|
-
{{ item.title | default: item.
|
|
15
|
+
{{ item.title | default: item.name }}
|
|
16
16
|
{%- endif -%}
|
|
17
17
|
</a>
|
|
18
18
|
</li>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<button id="toggle" class="btn-octicon p-2 m-0 text-white" type="button">
|
|
4
4
|
<i class="fa fa-bars"></i>
|
|
5
5
|
</button>
|
|
6
|
-
<div class="title flex-1
|
|
7
|
-
<a class="h4 py-1 px-2 rounded-1" href="{{ site.baseurl }}/">{{ site.title }}</a>
|
|
6
|
+
<div class="title flex-1 d-flex flex-justify-center">
|
|
7
|
+
<a class="h4 no-underline py-1 px-2 rounded-1" href="{{ site.baseurl }}/">{{ site.title }}</a>
|
|
8
8
|
</div>
|
|
9
9
|
</div>
|
|
10
10
|
<div class="content p-3 p-sm-5">
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<div class="sidebar-wrap overflow-hidden">
|
|
2
2
|
<div class="sidebar height-full overflow-y-scroll overflow-x-hidden">
|
|
3
3
|
<div class="header d-flex flex-column p-3 text-center">
|
|
4
|
-
<div class="title pb-1
|
|
5
|
-
<a class="h4 py-1 px-2 rounded-1" href="{{ site.baseurl }}/" title="{{ site.description }}">
|
|
4
|
+
<div class="title pb-1">
|
|
5
|
+
<a class="h4 no-underline py-1 px-2 rounded-1" href="{{ site.baseurl }}/" title="{{ site.description }}">
|
|
6
6
|
<i class="fa fa-home"></i> {{ site.title }}
|
|
7
7
|
</a>
|
|
8
8
|
</div>
|
|
9
|
-
<span class="version
|
|
9
|
+
<span class="version">{{ docs.latest_release.name }}</span>
|
|
10
10
|
<form class="search pt-2" action="{{ site.baseurl }}/search.html" method="get" autocomplete="off">
|
|
11
11
|
<input class="form-control input-block input-sm" type="text" name="q" placeholder="{{ __.search_docs | default: 'Search docs...' }}">
|
|
12
12
|
</form>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{%- include
|
|
2
|
-
{%- include
|
|
1
|
+
{%- include reset/site_pages.liquid -%}
|
|
2
|
+
{%- include reset/workdir.liquid -%}
|
|
3
3
|
|
|
4
4
|
{%- assign base = page.dir | append: "temp/" | split: "/" | size -%}
|
|
5
5
|
{%- assign size = workdir_level | minus: base -%}
|
|
6
6
|
{%- assign size_p1 = size | plus: 1 -%}
|
|
7
7
|
|
|
8
8
|
{%- assign dir = site_pages | where: "url", workdir | first %}
|
|
9
|
-
{% include
|
|
9
|
+
{% include reset/tabs.liquid size=size %}- [{{ dir.title | default: dir.url }}]({{ dir.url | relative_url }})
|
|
10
10
|
|
|
11
11
|
{%- for item in workdir_files %}
|
|
12
|
-
{% include
|
|
12
|
+
{% include reset/tabs.liquid size=size_p1 %}- [{{ item.title | default: item.name }}]({{ item.url | relative_url }})
|
|
13
13
|
{%- endfor -%}
|
|
14
14
|
|
|
15
15
|
{%- for workdir in workdir_dirs %}{% include extend/list.liquid %}{% endfor -%}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{%- include
|
|
1
|
+
{%- include reset/workdir.liquid %}
|
|
2
2
|
|
|
3
3
|
{% comment %} display the directory name {% endcomment %}
|
|
4
4
|
{%- assign dir = site_pages | where: "url", workdir | first -%}
|
|
5
5
|
|
|
6
6
|
{%- if workdir_level == 2 %}
|
|
7
7
|
{% comment %} display the root sub-directory as "p.caption" {% endcomment %}
|
|
8
|
-
<a class="caption d-block text-uppercase no-wrap px-2" href="{{ dir.url | relative_url }}">
|
|
8
|
+
<a class="caption d-block text-uppercase no-wrap px-2 py-0" href="{{ dir.url | relative_url }}">
|
|
9
9
|
{{ dir.title | default: dir.url }}
|
|
10
10
|
</a>
|
|
11
11
|
{%- else %}
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
<li class="toc level-{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
|
|
26
26
|
<a class="d-flex flex-items-baseline {{ current }}" href="{{ item.url | relative_url }}">
|
|
27
27
|
{%- if item.sort -%}
|
|
28
|
-
{{ item.sort }}. {{ item.title | default: item.
|
|
28
|
+
{{ item.sort }}. {{ item.title | default: item.name }}
|
|
29
29
|
{%- else -%}
|
|
30
|
-
{{ item.title | default: item.
|
|
30
|
+
{{ item.title | default: item.name }}
|
|
31
31
|
{%- endif -%}
|
|
32
32
|
</a>
|
|
33
33
|
</li>
|
data/_includes/list.liquid
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{%- include
|
|
2
|
-
{%- include
|
|
1
|
+
{%- include reset/site_pages.liquid -%}
|
|
2
|
+
{%- include reset/workdir.liquid workdir=page.dir -%}
|
|
3
3
|
|
|
4
4
|
{%- for item in workdir_files %}
|
|
5
|
-
- [{{ item.title | default: item.
|
|
5
|
+
- [{{ item.title | default: item.name }}]({{ item.url | relative_url }})
|
|
6
6
|
{%- endfor -%}
|
|
7
7
|
|
|
8
8
|
{%- if include.all -%}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
{%- comment %} dns-prefetch {% endcomment %}
|
|
2
|
+
<link rel="dns-prefetch" href="https://rundocs-analytics.glitch.me">
|
|
3
|
+
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
|
4
|
+
|
|
1
5
|
{%- comment %} canonical link {% endcomment %}
|
|
2
6
|
<link rel="canonical" href="{{ schema_surl }}">
|
|
3
7
|
|
|
@@ -12,5 +16,9 @@
|
|
|
12
16
|
{% comment %} theme {% endcomment %}
|
|
13
17
|
<link rel="stylesheet" href="{{ cdn }}/assets/css/theme{% if site.debug.dist != false %}.min{% endif %}.css">
|
|
14
18
|
|
|
19
|
+
{%- if custom_scss.size > 0 -%}
|
|
20
|
+
<style>{{ custom_scss | scssify | strip_newlines }}</style>
|
|
21
|
+
{%- endif -%}
|
|
22
|
+
|
|
15
23
|
{% comment %} icon {% endcomment %}
|
|
16
24
|
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/favicon.svg">
|
|
File without changes
|
|
File without changes
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
window.ui = {
|
|
3
|
+
collect: new URL("{{ collect }}?v={{ version }}&lang={{ lang }}"),
|
|
3
4
|
title: "{{ site.title }}",
|
|
4
|
-
lang: "{{ site.lang }}",
|
|
5
|
-
version: "{{ version }}",
|
|
6
5
|
baseurl: "{{ site.baseurl }}",
|
|
7
6
|
i18n: {
|
|
8
|
-
search_docs: "{{ __.search_docs | default: 'Search Docs' }}",
|
|
9
7
|
search_results: "{{ __.search_results | default: 'Search Results' }}",
|
|
10
8
|
search_results_found: "{{ __.search_results_found | default: 'Search finished, found # page(s) matching the search query.' }}",
|
|
11
9
|
search_results_not_found: "{{ __.search_results_not_found | default: 'Your search did not match any documents, please make sure that all characters are spelled correctly!' }}"
|
|
@@ -13,4 +11,9 @@
|
|
|
13
11
|
};
|
|
14
12
|
</script>
|
|
15
13
|
<script src="{{ cdn }}/assets/js/jquery.min.js"></script>
|
|
14
|
+
|
|
15
|
+
{%- if custom_script.size > 0 -%}
|
|
16
|
+
<script>{{ custom_script }}</script>
|
|
17
|
+
{%- endif -%}
|
|
18
|
+
|
|
16
19
|
<script src="{{ cdn }}/assets/js/theme{% if site.debug.dist != false %}.min{% endif %}.js"></script>
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{%- include reset/site_pages.liquid -%}
|
|
2
|
+
{%- include reset/i18n.liquid -%}
|
|
3
|
+
{%- include reset/version.liquid -%}
|
|
4
|
+
|
|
5
|
+
{%- include reset/variables.liquid -%}
|
|
6
|
+
|
|
7
|
+
{%- include reset/content.liquid -%}
|
|
8
|
+
|
|
9
|
+
{%- include reset/navigation.liquid -%}
|
|
10
|
+
{%- include reset/title.liquid -%}
|
|
11
|
+
{%- include reset/description.liquid -%}
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{%- include reset/workdir.liquid workdir=page.dir -%}
|
|
2
|
+
|
|
3
|
+
{% comment %} prev and next {% endcomment %}
|
|
4
|
+
{%- assign index = 0 -%}
|
|
5
|
+
{%- for item in workdir_files %}
|
|
6
|
+
{%- if item.url == page.url %}
|
|
7
|
+
{%- assign index = forloop.index -%}
|
|
8
|
+
{%- endif %}
|
|
9
|
+
{%- endfor -%}
|
|
10
|
+
|
|
11
|
+
{%- for item in workdir_files -%}
|
|
12
|
+
{%- assign index_prev = index | minus: 1 -%}
|
|
13
|
+
{%- assign index_next = index | plus: 1 -%}
|
|
14
|
+
{%- if forloop.index == index_prev -%}
|
|
15
|
+
{%- assign prev = item -%}
|
|
16
|
+
{%- endif %}
|
|
17
|
+
{%- if forloop.index == index_next -%}
|
|
18
|
+
{%- assign next = item -%}
|
|
19
|
+
{%- endif %}
|
|
20
|
+
{%- endfor -%}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{%- case page.url -%}
|
|
2
|
+
{%- when "/" -%}
|
|
3
|
+
{%- assign title = site.title
|
|
4
|
+
| append: " · "
|
|
5
|
+
| append: site.description | truncate: 110 -%}
|
|
6
|
+
{%- when "/search.html" -%}
|
|
7
|
+
{%- assign title = __.search | default: "Search"
|
|
8
|
+
| append: " · "
|
|
9
|
+
| append: site.title | truncate: 110 -%}
|
|
10
|
+
{%- when "/404.html" -%}
|
|
11
|
+
{%- assign title = "404"
|
|
12
|
+
| append: " · "
|
|
13
|
+
| append: site.title | truncate: 110 -%}
|
|
14
|
+
{%- else -%}
|
|
15
|
+
{%- assign title = page.title | default: page.name
|
|
16
|
+
| append: " · "
|
|
17
|
+
| append: site.title | truncate: 110 -%}
|
|
18
|
+
{%- endcase -%}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{%- comment %} variables {% endcomment -%}
|
|
2
|
+
{%- assign collect = "https://rundocs-analytics.glitch.me/collect" -%}
|
|
3
|
+
{%- assign docs = site.github -%}
|
|
4
|
+
{%- assign rest = docs.public_repositories | where: "html_url", docs.repository_url | first -%}
|
|
5
|
+
|
|
6
|
+
{%- assign rest_created_at = rest.created_at | default: site.time -%}
|
|
7
|
+
{%- assign rest_updated_at = rest.updated_at | default: site.time -%}
|
|
8
|
+
|
|
9
|
+
{%- assign lang = site.lang | default: "en" -%}
|
|
10
|
+
{%- assign author = docs.owner.name | default: docs.owner_name -%}
|
|
11
|
+
|
|
12
|
+
{%- comment %} schema {% endcomment -%}
|
|
13
|
+
{%- assign schema_date = page.date | default: rest_created_at | date_to_xmlschema -%}
|
|
14
|
+
{%- assign schema_modi = site.time | date_to_xmlschema -%}
|
|
15
|
+
{%- assign schema_surl = page.url | absolute_url | xml_escape -%}
|
|
16
|
+
|
|
17
|
+
{% comment %} debug {% endcomment %}
|
|
18
|
+
{%- if site.debug -%}
|
|
19
|
+
{%- assign cdn = site.baseurl -%}
|
|
20
|
+
{%- else -%}
|
|
21
|
+
{%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
|
|
22
|
+
{%- endif -%}
|
|
23
|
+
|
|
24
|
+
{% comment %} custom {% endcomment %}
|
|
25
|
+
{%- capture custom_scss -%}
|
|
26
|
+
{%- include assets/custom.scss -%} {{- site.scss -}}
|
|
27
|
+
{%- endcapture -%}
|
|
28
|
+
|
|
29
|
+
{%- capture custom_script -%}
|
|
30
|
+
{%- include assets/custom.js -%} {{- site.script -}}
|
|
31
|
+
{%- endcapture -%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{%- assign version = "2.0.5" -%}
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<div class="admonition danger
|
|
1
|
+
<div class="admonition danger mb-4">
|
|
2
2
|
<div class="title px-2 py-1">
|
|
3
3
|
<i class="fa fa-exclamation-circle"></i>
|
|
4
4
|
{{ __.danger | default: "Danger" }}
|
|
5
5
|
</div>
|
|
6
|
-
<div class="content
|
|
6
|
+
<div class="content px-2 py-3">
|
|
7
7
|
{{ codes | markdownify | strip_newlines -}}
|
|
8
8
|
</div>
|
|
9
9
|
</div>
|