jekyll-rtd-theme 1.1.5 → 2.0.0
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/README.md +48 -29
- data/_includes/addons/analytics.liquid +5 -12
- data/_includes/addons/github.liquid +19 -4
- data/_includes/assets/sw.caches.js +38 -28
- data/_includes/class/_breadcrumbs.liquid +33 -0
- data/_includes/class/_footer.liquid +41 -0
- data/_includes/{toctree.liquid → class/_toctree.liquid} +4 -7
- data/_includes/class/addons-wrap.liquid +26 -0
- data/_includes/class/content-wrap.liquid +20 -0
- data/_includes/class/sidebar-wrap.liquid +18 -0
- data/_includes/extend/list.liquid +4 -4
- data/_includes/extend/toctree.liquid +12 -17
- data/_includes/head/custom.liquid +19 -0
- data/_includes/head/links.liquid +16 -0
- data/_includes/head/metadata.liquid +21 -0
- data/_includes/head/script.extension.liquid +29 -0
- data/_includes/head/script.liquid +16 -0
- data/_includes/head/script.schema.liquid +27 -0
- data/_includes/head/title.liquid +1 -0
- data/_includes/list.liquid +2 -2
- data/_includes/rest/defaults.liquid +69 -0
- data/_includes/rest/i18n.liquid +1 -0
- data/_includes/{reset → rest}/site_pages.liquid +0 -0
- data/_includes/{extend → rest}/tabs.liquid +0 -0
- data/_includes/{reset → rest}/workdir.liquid +1 -15
- data/_includes/shortcodes/danger.liquid +9 -0
- data/_includes/shortcodes/mermaid.liquid +1 -0
- data/_includes/shortcodes/note.liquid +9 -0
- data/_includes/shortcodes/tip.liquid +9 -0
- data/_includes/shortcodes/warning.liquid +9 -0
- data/_layouts/default.liquid +22 -240
- data/_layouts/plugins/compress.liquid +13 -10
- data/_layouts/plugins/extension.liquid +32 -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 +57 -0
- data/_sass/_layout.scss +75 -0
- data/_sass/_reset.scss +13 -0
- data/_sass/_root.scss +9 -0
- data/_sass/_variables.scss +32 -0
- data/_sass/class/addons-wrap.scss +39 -0
- data/_sass/class/admonition.scss +47 -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 +63 -0
- data/_sass/class/sidebar-wrap.scss +92 -0
- data/_sass/class/title.scss +12 -0
- data/_sass/theme.scss +30 -0
- data/assets/404.liquid +3 -3
- data/assets/css/theme.min.css +1 -0
- data/assets/css/theme.scss +4 -0
- data/assets/js/mermaid.min.js +5 -5
- data/assets/js/theme.js +290 -1
- data/assets/js/theme.min.js +1 -0
- data/assets/pages.liquid +1 -1
- data/assets/search.liquid +5 -21
- data/assets/sitemap.liquid +1 -1
- data/assets/sw.caches.liquid +1 -1
- metadata +94 -57
- 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 -94
- data/_includes/assets/search.js +0 -76
- data/_includes/breadcrumbs.liquid +0 -43
- data/_includes/footer.liquid +0 -37
- 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/defaults.liquid +0 -86
- 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: c7edf3a08d7fcdb1e47fc9908c848c566c7cf6e9d3cdd40ec5460f7b2f6dbc76
|
|
4
|
+
data.tar.gz: ee4a7e4bfffc1c4474c7c66603d8a99fae38700be2cf73d902659a7fc7846fb2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38a9a3d37323615eae67b06231f384a3d872ea85face47c7fe0ebe26043adde70fb2ab209c458a50d08f41acbe1cbd4d3edabe79c2fac82600d5ae6017d41a3c
|
|
7
|
+
data.tar.gz: dd8344fcf25d95be4f321a0627c90c012c6370d24ede3f96234818fc5857f673960c10753cf16215c007784d60ff81d91ab09ba6b3c525fcb2668804bab54296
|
data/README.md
CHANGED
|
@@ -1,39 +1,58 @@
|
|
|
1
1
|
# jekyll-rtd-theme
|
|
2
|
-
[][repository]
|
|
3
|
-
[][rubygem]
|
|
4
|
-
[][rubygem]
|
|
5
|
-
[][cdn]
|
|
6
|
-
[][codefactor]
|
|
7
|
-
[](https://jekyll-themes.com)
|
|
8
|
-
[][gitter]
|
|
9
2
|
|
|
10
|
-
|
|
3
|
+

|
|
4
|
+

|
|
11
5
|
|
|
12
|
-
|
|
6
|
+
Opinionated github flavored standard document theme for open source projects, with few options, just use it!
|
|
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
|
-
##
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
16
|
+
## Options
|
|
17
|
+
|
|
18
|
+
```yml
|
|
19
|
+
title: Your awesome title
|
|
20
|
+
lang: en
|
|
21
|
+
description: Write an awesome description for your new site here
|
|
22
|
+
|
|
23
|
+
# plugin options
|
|
24
|
+
readme_index:
|
|
25
|
+
with_frontmatter: true
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# optional settings
|
|
29
|
+
meta:
|
|
30
|
+
key1: value1
|
|
31
|
+
key2: value2
|
|
32
|
+
.
|
|
33
|
+
.
|
|
34
|
+
.
|
|
35
|
+
|
|
36
|
+
google:
|
|
37
|
+
gtag:
|
|
38
|
+
adsense:
|
|
39
|
+
|
|
40
|
+
mermaid:
|
|
41
|
+
custom: # mermaid link
|
|
42
|
+
initialize: # mermaid options
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# optional plugins
|
|
46
|
+
plugins:
|
|
47
|
+
- jemoji
|
|
48
|
+
- jekyll-avatar
|
|
49
|
+
- jekyll-mentions
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Waiting
|
|
53
|
+
|
|
54
|
+
Document writing specifications, please refer to [rundocs.io](https://rundocs.io) for details
|
|
55
|
+
|
|
56
|
+
## The license
|
|
57
|
+
|
|
58
|
+
The theme is available as open source under the terms of the MIT License
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
<dl>
|
|
2
|
-
<dt>{{
|
|
2
|
+
<dt>{{ __.statistics | default: "Statistics" }}</dt>
|
|
3
3
|
<dd>
|
|
4
4
|
<a href="https://github.com/rundocs/analytics" target="_blank">
|
|
5
|
-
{{
|
|
5
|
+
{{ __.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>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
$(document).ready(function() {
|
|
12
|
-
let analytics = new URL("https://rundocs-analytics.glitch.me/collect?v={{ version }}&lang={{ lang }}");
|
|
13
|
-
analytics.searchParams.append("user_lang", navigator.language);
|
|
14
|
-
analytics.searchParams.append("host", location.host);
|
|
15
|
-
analytics.searchParams.append("platform", navigator.platform);
|
|
16
|
-
$.getJSON(analytics.toString(), (data) => $("#counter").html(data.count));
|
|
17
|
-
});
|
|
18
|
-
</script>
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
<dl>
|
|
2
|
-
<dt>{{
|
|
3
|
-
<dd
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<dt>{{ __.github | default: "GitHub" }}</dt>
|
|
3
|
+
<dd>
|
|
4
|
+
<a href="{{ docs.repository_url }}" title="{{ __.stars | default: 'Stars' }}: {{ rest.stargazers_count }}">
|
|
5
|
+
<i class="fa fa-github"></i>
|
|
6
|
+
{{ __.homepage | default: "Homepage" }}
|
|
7
|
+
</a>
|
|
8
|
+
</dd>
|
|
9
|
+
<dd>
|
|
10
|
+
<a href="{{ docs.issues_url }}" title="{{ __.open_issues | default: 'Open issues' }}: {{ rest.open_issues }}">
|
|
11
|
+
<i class="fa fa-question-circle-o"></i>
|
|
12
|
+
{{ __.issues | default: "Issues" }}
|
|
13
|
+
</a>
|
|
14
|
+
</dd>
|
|
15
|
+
<dd>
|
|
16
|
+
<a href="{{ docs.zip_url }}" title="{{ __.size | default: 'Size' }}: {{ rest.size }} Kb">
|
|
17
|
+
<i class="fa fa-download"></i>
|
|
18
|
+
{{ __.download | default: "Download" }}
|
|
19
|
+
</a>
|
|
20
|
+
</dd>
|
|
6
21
|
</dl>
|
|
@@ -1,33 +1,43 @@
|
|
|
1
|
-
self.addEventListener("activate", function(event) {
|
|
2
|
-
|
|
1
|
+
self.addEventListener("activate", function (event) {
|
|
2
|
+
let cacheWhitelist = ["rundocs-{{ version }}"];
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
11
|
})
|
|
12
|
-
|
|
12
|
+
);
|
|
13
|
+
})
|
|
14
|
+
);
|
|
13
15
|
});
|
|
14
16
|
|
|
15
|
-
self.addEventListener("fetch", function(e) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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;
|
|
30
37
|
})
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
})
|
|
38
|
+
.catch(console.log);
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
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 class="no-underline" href="{{ site.baseurl }}/">
|
|
5
|
+
<i class="fa fa-home"></i>
|
|
6
|
+
</a>
|
|
7
|
+
</li>
|
|
8
|
+
{%- case page.url -%}
|
|
9
|
+
{%- when "/search.html" -%}
|
|
10
|
+
<li class="breadcrumb-item" aria-current="page">
|
|
11
|
+
{{ __.search | default: "Search" }}
|
|
12
|
+
</li>
|
|
13
|
+
{%- when "/404.html" -%}
|
|
14
|
+
<li class="breadcrumb-item" aria-current="page">
|
|
15
|
+
404
|
|
16
|
+
</li>
|
|
17
|
+
{%- else -%}
|
|
18
|
+
{%- assign blocks = page.path | split: "/" -%}
|
|
19
|
+
{%- for block in blocks -%}
|
|
20
|
+
<li class="breadcrumb-item" {% if forloop.last %}aria-current="page"{% endif %}>
|
|
21
|
+
{%- if forloop.last -%}
|
|
22
|
+
{{ page.name }}
|
|
23
|
+
{%- else -%}
|
|
24
|
+
<a href="{{ site.baseurl }}/{% for block in blocks limit: forloop.index %}{{ block }}/{% endfor %}">{{ block }}</a>
|
|
25
|
+
{%- endif -%}
|
|
26
|
+
</li>
|
|
27
|
+
{%- endfor -%}
|
|
28
|
+
{%- endcase -%}
|
|
29
|
+
</ul>
|
|
30
|
+
<a class="edit" href="{% github_edit_link %}" title="{{ __.edit | default: 'Edit on GitHub'}}" target="_blank">
|
|
31
|
+
<i class="fa fa-edit"></i>
|
|
32
|
+
</a>
|
|
33
|
+
</div>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{% comment %} prev and next {% endcomment %}
|
|
2
|
+
{%- if page.url != "/search.html" and page.url != "/404.html" -%}
|
|
3
|
+
{%- if next or prev -%}
|
|
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> {{ __.previous | default: "Previous" }}
|
|
9
|
+
</a>
|
|
10
|
+
{%- endif -%}
|
|
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
|
+
{{ __.next | default: "Next" }} <i class="fa fa-arrow-circle-right"></i>
|
|
16
|
+
</a>
|
|
17
|
+
{%- endif -%}
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
{%- endif -%}
|
|
21
|
+
{%- endif -%}
|
|
22
|
+
|
|
23
|
+
<hr>
|
|
24
|
+
|
|
25
|
+
<div class="copyright text-center text-gray" role="contentinfo">
|
|
26
|
+
<i class="fa fa-copyright"></i>
|
|
27
|
+
{%- assign created_time = rest_created_at | date: "%Y" -%}
|
|
28
|
+
{%- assign updated_time = rest_updated_at | date: "%Y" -%}
|
|
29
|
+
{%- if created_time == updated_time -%}
|
|
30
|
+
{{ created_time }},
|
|
31
|
+
{%- else -%}
|
|
32
|
+
{{ created_time }}-{{ updated_time }},
|
|
33
|
+
{%- endif %}
|
|
34
|
+
<a class="text-gray" href="{{ docs.owner_url }}" target="_blank">
|
|
35
|
+
{{ author }}
|
|
36
|
+
</a>
|
|
37
|
+
{{ __.revision | default: "Revision" }}
|
|
38
|
+
<a class="text-gray" href="{{ docs.repository_url }}/commit/{{ docs.build_revision }}" title="{{ docs.build_revision }}" target="_blank">
|
|
39
|
+
{{ docs.build_revision | slice: 0, 7 }}
|
|
40
|
+
</a>
|
|
41
|
+
</div>
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
{%- include
|
|
1
|
+
{%- include rest/workdir.liquid %}
|
|
2
2
|
|
|
3
3
|
{% comment %} list the root files {% endcomment %}
|
|
4
4
|
<ul>
|
|
5
5
|
{%- for item in workdir_files -%}
|
|
6
6
|
{%- assign level = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
|
|
7
|
-
{%- if site_lang != lang -%}
|
|
8
|
-
{%- assign level = level | minus: 1 -%}
|
|
9
|
-
{%- endif -%}
|
|
10
7
|
{%- capture current -%}
|
|
11
8
|
{%- if page.url == item.url %}current{% endif -%}
|
|
12
9
|
{%- endcapture %}
|
|
13
|
-
<li class="
|
|
14
|
-
<a class="
|
|
15
|
-
{%- if item.sort
|
|
10
|
+
<li class="toc level-{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
|
|
11
|
+
<a class="d-flex flex-items-baseline {{ current }}" href="{{ item.url | relative_url }}">
|
|
12
|
+
{%- if item.sort -%}
|
|
16
13
|
{{ item.sort }}. {{ item.title | default: item.url }}
|
|
17
14
|
{%- else -%}
|
|
18
15
|
{{ item.title | default: item.url }}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<div class="addons-wrap d-flex flex-column overflow-y-auto">
|
|
2
|
+
<div class="status d-flex flex-justify-between p-2">
|
|
3
|
+
<div class="title p-1">
|
|
4
|
+
<i class="fa fa-book"></i> {{ site.title }}
|
|
5
|
+
</div>
|
|
6
|
+
<div class="branch p-1">
|
|
7
|
+
<span class="name">
|
|
8
|
+
{{ docs.source.branch }}
|
|
9
|
+
</span>
|
|
10
|
+
<i class="fa fa-caret-down"></i>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="addons d-flex flex-column height-full p-2 d-none">
|
|
14
|
+
{%- assign items = "github, analytics" | split: ", " -%}
|
|
15
|
+
{% for item in items -%}
|
|
16
|
+
{% include addons/{{ item }}.liquid %}
|
|
17
|
+
{% endfor -%}
|
|
18
|
+
<hr>
|
|
19
|
+
<div class="generator f6 pb-2">
|
|
20
|
+
Built with
|
|
21
|
+
<a href="https://github.com/rundocs/jekyll-rtd-theme" target="_blank" title="{% if site.remote_theme %}remote{% endif %} theme v{{ version }}">jekyll-rtd-theme</a>
|
|
22
|
+
provided by
|
|
23
|
+
<a href="https://rundocs.io" target="_blank">RunDocs</a>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<div class="content-wrap">
|
|
2
|
+
<div class="header d-flex flex-justify-between p-2 hide-lg hide-xl" aria-label="top navigation">
|
|
3
|
+
<button id="toggle" class="btn-octicon p-2 m-0 text-white" type="button">
|
|
4
|
+
<i class="fa fa-bars"></i>
|
|
5
|
+
</button>
|
|
6
|
+
<div class="title flex-1 no-underline d-flex flex-justify-center">
|
|
7
|
+
<a class="h4 py-1 px-2 rounded-1" href="{{ site.baseurl }}/">{{ site.title }}</a>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="content p-3 p-sm-5">
|
|
11
|
+
{% include class/_breadcrumbs.liquid %}
|
|
12
|
+
<hr>
|
|
13
|
+
<div role="main" itemscope="itemscope" itemtype="http://schema.org/Article">
|
|
14
|
+
<div class="markdown-body" itemprop="articleBody">
|
|
15
|
+
{{ content }}
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
{% include class/_footer.liquid %}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<div class="sidebar-wrap overflow-hidden">
|
|
2
|
+
<div class="sidebar height-full overflow-y-scroll overflow-x-hidden">
|
|
3
|
+
<div class="header d-flex flex-column p-3 text-center">
|
|
4
|
+
<div class="title pb-1 no-underline">
|
|
5
|
+
<a class="h4 py-1 px-2 rounded-1" href="{{ site.baseurl }}/" title="{{ site.description }}">
|
|
6
|
+
<i class="fa fa-home"></i> {{ site.title }}
|
|
7
|
+
</a>
|
|
8
|
+
</div>
|
|
9
|
+
<span class="version text-gray">{{ docs.latest_release.name }}</span>
|
|
10
|
+
<form class="search pt-2" action="{{ site.baseurl }}/search.html" method="get" autocomplete="off">
|
|
11
|
+
<input class="form-control input-block input-sm" type="text" name="q" placeholder="{{ __.search_docs | default: 'Search docs...' }}">
|
|
12
|
+
</form>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="toctree py-2" data-spy="affix" role="navigation" aria-label="main navigation">
|
|
15
|
+
{% include class/_toctree.liquid %}
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{%- include
|
|
2
|
-
{%- include
|
|
1
|
+
{%- include rest/site_pages.liquid -%}
|
|
2
|
+
{%- include rest/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 rest/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 rest/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,16 +1,17 @@
|
|
|
1
|
-
{%- include
|
|
1
|
+
{%- include rest/workdir.liquid %}
|
|
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
|
-
<
|
|
8
|
+
<a class="caption d-block text-uppercase no-wrap px-2" href="{{ dir.url | relative_url }}">
|
|
9
|
+
{{ dir.title | default: dir.url }}
|
|
10
|
+
</a>
|
|
12
11
|
{%- else %}
|
|
13
|
-
<a class="
|
|
12
|
+
<a class="d-flex flex-items-baseline" href="{{ dir.url | relative_url }}">
|
|
13
|
+
{{ dir.title | default: dir.url }}
|
|
14
|
+
</a>
|
|
14
15
|
{%- endif -%}
|
|
15
16
|
|
|
16
17
|
<ul>
|
|
@@ -20,13 +21,10 @@
|
|
|
20
21
|
{%- capture current -%}
|
|
21
22
|
{%- if page.url == item.url %}current{% endif -%}
|
|
22
23
|
{%- endcapture %}
|
|
23
|
-
{%- if site_lang != lang -%}
|
|
24
|
-
{%- assign level = level | minus: 1 -%}
|
|
25
|
-
{%- endif -%}
|
|
26
24
|
|
|
27
|
-
<li class="
|
|
28
|
-
<a class="
|
|
29
|
-
{%- if item.sort
|
|
25
|
+
<li class="toc level-{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
|
|
26
|
+
<a class="d-flex flex-items-baseline {{ current }}" href="{{ item.url | relative_url }}">
|
|
27
|
+
{%- if item.sort -%}
|
|
30
28
|
{{ item.sort }}. {{ item.title | default: item.url }}
|
|
31
29
|
{%- else -%}
|
|
32
30
|
{{ item.title | default: item.url }}
|
|
@@ -38,9 +36,6 @@
|
|
|
38
36
|
{% comment %} list dirs {% endcomment %}
|
|
39
37
|
{%- for workdir in workdir_dirs -%}
|
|
40
38
|
{%- 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>
|
|
39
|
+
<li class="toc level-{{ level }}">{% include extend/toctree.liquid %}</li>
|
|
45
40
|
{%- endfor -%}
|
|
46
41
|
</ul>
|