jekyll-rtd-theme 1.1.3 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +76 -30
- data/_includes/addons/analytics.liquid +6 -3
- data/_includes/addons/github.liquid +19 -4
- data/_includes/assets/sw.caches.js +43 -0
- data/_includes/class/_breadcrumbs.liquid +28 -0
- data/_includes/class/_footer.liquid +38 -0
- data/_includes/{toctree.liquid → class/_toctree.liquid} +6 -5
- data/_includes/{addons.liquid → class/rst-versions.liquid} +6 -8
- data/_includes/class/wy-nav-content.liquid +15 -0
- data/_includes/class/wy-nav-side.liquid +18 -0
- data/_includes/class/wy-nav-top.liquid +8 -0
- data/_includes/extend/list.liquid +2 -2
- data/_includes/extend/toctree.liquid +1 -11
- data/_includes/extra/footer.html +0 -0
- data/_includes/extra/head.html +0 -0
- data/_includes/node/links.liquid +24 -0
- data/_includes/node/metadata.liquid +21 -0
- data/_includes/node/script.extension.liquid +29 -0
- data/_includes/node/script.liquid +20 -0
- data/_includes/node/script.schema.liquid +27 -0
- data/_includes/node/title.liquid +1 -0
- data/_includes/reset/defaults.liquid +58 -55
- data/_includes/reset/i18n.liquid +1 -31
- data/_includes/{extend → reset}/tabs.liquid +0 -0
- data/_includes/reset/workdir.liquid +1 -15
- data/_includes/shortcodes/danger.liquid +6 -0
- data/_includes/shortcodes/mermaid.liquid +1 -0
- data/_includes/shortcodes/note.liquid +6 -0
- data/_includes/shortcodes/tip.liquid +6 -0
- data/_includes/shortcodes/warning.liquid +6 -0
- data/_layouts/default.liquid +24 -225
- data/_layouts/plugins/compress.liquid +13 -10
- data/_layouts/plugins/extension.liquid +32 -22
- data/_sass/highlight.scss +214 -0
- data/_sass/theme.scss +15 -0
- data/assets/404.liquid +1 -1
- data/assets/css/{theme.css → theme.min.css} +0 -0
- data/assets/js/theme.js +294 -1
- data/assets/js/theme.min.js +1 -0
- data/assets/robots.liquid +1 -1
- data/assets/search.liquid +0 -15
- data/assets/sitemap.liquid +1 -1
- data/assets/sw.caches.liquid +8 -0
- metadata +29 -52
- 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/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/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/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: d69e021f3df96ab3b9714d64e1d216601712e009ddb08aed35d7e7837e4ef86c
|
4
|
+
data.tar.gz: cf6b6baace1113759c0cffc4b1e097ae02f0369ec8d094a52ad500846aba4d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc8d4eb1046e999f051855a27c521a043786df3d5961270fa6e1841d353875e96a02d2e0c0d5d4e329e14ba2448d62ce90fb99b54cb2a93b548bb9eb1f58a01e
|
7
|
+
data.tar.gz: a942afc0ac6fe9511159571c5235814a3579ac7058fd5376fc57588de94a56101bd9f49080122168b710b0db35a7d482990b14a616a0db802c796bfb5cb5d72f
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,39 +1,85 @@
|
|
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)
|
4
|
+
![jsDelivr](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)
|
11
5
|
|
12
|
-
|
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(`v1`) use [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme)'s styles
|
11
|
+
|
12
|
+
Solved the issue of open source project documentation site
|
13
|
+
|
14
|
+
- No need to learn other programming languages for building documentation
|
15
|
+
- No need to care about the site SEO
|
16
|
+
- Native support for mermaid chart plugin
|
13
17
|
|
14
18
|
## Quick start
|
19
|
+
|
15
20
|
```yml
|
16
|
-
remote_theme: rundocs/jekyll-rtd-theme
|
21
|
+
remote_theme: rundocs/jekyll-rtd-theme@v1
|
17
22
|
```
|
23
|
+
|
18
24
|
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
25
|
|
20
|
-
##
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
26
|
+
## Options
|
27
|
+
|
28
|
+
```yml
|
29
|
+
title: Your awesome title
|
30
|
+
lang: # default: en
|
31
|
+
description: Write an awesome description for your new site here
|
32
|
+
|
33
|
+
readme_index:
|
34
|
+
with_frontmatter: true
|
35
|
+
|
36
|
+
## optional settings ##
|
37
|
+
meta:
|
38
|
+
key1: value1
|
39
|
+
key2: value2
|
40
|
+
|
41
|
+
google:
|
42
|
+
gtag:
|
43
|
+
adsense:
|
44
|
+
|
45
|
+
mermaid:
|
46
|
+
custom: # mermaid link
|
47
|
+
initialize: # mermaid options, default: {}
|
48
|
+
|
49
|
+
# also available via file: _include/assets/custom.scss
|
50
|
+
scss:
|
51
|
+
|
52
|
+
# also available via file: _include/assets/custom.js
|
53
|
+
script:
|
54
|
+
|
55
|
+
# also available via file: _data/translate.yml
|
56
|
+
translate:
|
57
|
+
# shortcodes
|
58
|
+
danger:
|
59
|
+
note:
|
60
|
+
tip:
|
61
|
+
warning:
|
62
|
+
# 404
|
63
|
+
not_found:
|
64
|
+
# search
|
65
|
+
searching:
|
66
|
+
search:
|
67
|
+
search_docs:
|
68
|
+
search_results:
|
69
|
+
search_results_found: # the "#" in this translate will replaced with results size!
|
70
|
+
search_results_not_found:
|
71
|
+
|
72
|
+
## optional plugins ##
|
73
|
+
plugins:
|
74
|
+
- jemoji
|
75
|
+
- jekyll-avatar
|
76
|
+
- jekyll-mentions
|
77
|
+
```
|
78
|
+
|
79
|
+
## Waiting
|
80
|
+
|
81
|
+
Document writing specifications, please refer to [rundocs.io](https://rundocs.io) for details
|
82
|
+
|
83
|
+
## The license
|
84
|
+
|
85
|
+
The theme is available as open source under the terms of the MIT License
|
@@ -1,8 +1,11 @@
|
|
1
1
|
<dl>
|
2
|
-
<dt>{{
|
2
|
+
<dt>{{ __.statistics | default: "Statistics" }}</dt>
|
3
3
|
<dd>
|
4
|
-
<a href="https://github.com/rundocs/analytics" target="_blank">
|
5
|
-
{{
|
4
|
+
<a href="https://github.com/rundocs/analytics" rel="noreferrer" target="_blank">
|
5
|
+
{{ __.total_visits | default: "Total visits" }}:
|
6
|
+
<span id="counter">
|
7
|
+
<span class="AnimatedEllipsis"></span>
|
8
|
+
</span>
|
6
9
|
</a>
|
7
10
|
</dd>
|
8
11
|
</dl>
|
@@ -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>
|
@@ -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
|
+
});
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<div role="navigation" aria-label="breadcrumbs navigation">
|
2
|
+
<ul class="wy-breadcrumbs">
|
3
|
+
<li>
|
4
|
+
<a href="{{ site.baseurl }}/" class="icon icon-home"></a><i class="fa fa-angle-double-right"></i>
|
5
|
+
</li>
|
6
|
+
{%- case page.url -%}
|
7
|
+
{%- when "/search.html" %}
|
8
|
+
<li>{{ __.search | default: "Search" }}</li>
|
9
|
+
{%- when "/404.html" %}
|
10
|
+
<li>404</li>
|
11
|
+
{%- else -%}
|
12
|
+
{%- assign blocks = page.path | split: "/" -%}
|
13
|
+
{%- for block in blocks -%}
|
14
|
+
<li>
|
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><i class="fa fa-angle-double-right"></i>
|
19
|
+
{%- endif -%}
|
20
|
+
</li>
|
21
|
+
{%- endfor -%}
|
22
|
+
{%- endcase %}
|
23
|
+
<li class="wy-breadcrumbs-aside">
|
24
|
+
<a class="fa fa-edit" href="{% github_edit_link %}" title="{{ __.edit | default: 'Edit on GitHub'}}" target="_blank"></a>
|
25
|
+
</li>
|
26
|
+
</ul>
|
27
|
+
<hr>
|
28
|
+
</div>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<footer>
|
2
|
+
{%- if page.url != "/search.html" and page.url != "/404.html" -%}
|
3
|
+
{%- if next or prev -%}
|
4
|
+
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
5
|
+
{%- if prev -%}
|
6
|
+
<a href="{{ prev.url | relative_url }}" class="btn btn-neutral float-left" title="{{ prev.title }}" accesskey="p" rel="prev">
|
7
|
+
<span class="fa fa-arrow-circle-left"></span> {{ __.previous | default: "Previous" }}
|
8
|
+
</a>
|
9
|
+
{%- endif -%}
|
10
|
+
{%- if next -%}
|
11
|
+
<a href="{{ next.url | relative_url }}" class="btn btn-neutral float-right" title="{{ next.title }}" accesskey="n" rel="next">
|
12
|
+
{{ __.next | default: "Next" }} <span class="fa fa-arrow-circle-right"></span>
|
13
|
+
</a>
|
14
|
+
{%- endif -%}
|
15
|
+
</div>
|
16
|
+
{%- endif -%}
|
17
|
+
{%- endif -%}
|
18
|
+
<hr>
|
19
|
+
<div role="contentinfo" class="copyright">
|
20
|
+
<p>
|
21
|
+
<i class="fa fa-copyright"></i>
|
22
|
+
{%- assign created_time = rest_created_at | date: "%Y" -%}
|
23
|
+
{%- assign updated_time = rest_updated_at | date: "%Y" -%}
|
24
|
+
{%- if created_time == updated_time -%}
|
25
|
+
{{ created_time }},
|
26
|
+
{%- else -%}
|
27
|
+
{{ created_time }}-{{ updated_time }},
|
28
|
+
{%- endif %}
|
29
|
+
<a href="{{ docs.owner_url }}" target="_blank">
|
30
|
+
{{ author }}
|
31
|
+
</a>
|
32
|
+
{{ __.revision | default: "Revision" }}
|
33
|
+
<a href="{{ docs.repository_url }}/commit/{{ docs.build_revision }}" title="{{ docs.build_revision }}" target="_blank">
|
34
|
+
{{ docs.build_revision | slice: 0, 7 }}
|
35
|
+
</a>
|
36
|
+
</p>
|
37
|
+
</div>
|
38
|
+
</footer>
|
@@ -4,15 +4,16 @@
|
|
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="toctree-l{{ level }} {{ current }}">
|
10
|
+
<li class="toctree-l{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
|
14
11
|
<a class="reference internal {{ current }}" href="{{ item.url | relative_url }}">
|
15
|
-
{
|
12
|
+
{%- if item.sort and site.show_sorted != false -%}
|
13
|
+
{{ item.sort }}. {{ item.title | default: item.url }}
|
14
|
+
{%- else -%}
|
15
|
+
{{ item.title | default: item.url }}
|
16
|
+
{%- endif -%}
|
16
17
|
</a>
|
17
18
|
</li>
|
18
19
|
{%- endfor %}
|
@@ -1,23 +1,21 @@
|
|
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
3
|
<span class="fa fa-book"> {{ site.title }}</span>
|
4
|
-
{
|
4
|
+
{{ docs.source.branch }}
|
5
5
|
<span class="fa fa-caret-down"></span>
|
6
6
|
</span>
|
7
7
|
<div class="rst-other-versions">
|
8
|
-
{%- assign items =
|
8
|
+
{%- assign items = "github, analytics" | split: ", " -%}
|
9
9
|
{% for item in items -%}
|
10
|
-
{
|
11
|
-
{% include addons/{{ item }}.liquid %}
|
12
|
-
{%- endif -%}
|
10
|
+
{% include addons/{{ item }}.liquid %}
|
13
11
|
{% endfor -%}
|
14
12
|
<hr>
|
15
13
|
<small>
|
16
14
|
<span>
|
17
15
|
Built with
|
18
|
-
<a href="https://
|
19
|
-
|
20
|
-
<a href="https://
|
16
|
+
<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>
|
17
|
+
provided by
|
18
|
+
<a href="https://rundocs.io" target="_blank">RunDocs</a>
|
21
19
|
</span>
|
22
20
|
</small>
|
23
21
|
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<div class="wy-nav-content">
|
2
|
+
<div class="rst-content">
|
3
|
+
{% include class/_breadcrumbs.liquid %}
|
4
|
+
<div role="main" itemscope="itemscope" itemtype="http://schema.org/Article">
|
5
|
+
<div class="document" itemprop="articleBody">
|
6
|
+
{%- if page.url == "/search.html" -%}
|
7
|
+
{{ content }}
|
8
|
+
{%- else -%}
|
9
|
+
<div class="section">{{ content }}</div>
|
10
|
+
{%- endif -%}
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
{% include class/_footer.liquid %}
|
14
|
+
</div>
|
15
|
+
</div>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
2
|
+
<div class="wy-side-scroll">
|
3
|
+
<div class="wy-side-nav-search">
|
4
|
+
<a href="{{ site.baseurl }}/" class="icon icon-home">
|
5
|
+
{{ site.title }}
|
6
|
+
</a>
|
7
|
+
<div class="version">{{ docs.latest_release.name }}</div>
|
8
|
+
<div role="search">
|
9
|
+
<form id="rtd-search-form" class="wy-form" action="{{ site.baseurl }}/search.html" method="get" autocomplete="off">
|
10
|
+
<input type="text" name="q" placeholder="{{ __.search_docs | default: 'Search docs...' }}">
|
11
|
+
</form>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
15
|
+
{% include class/_toctree.liquid %}
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</nav>
|
@@ -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
|
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.url }}]({{ item.url | relative_url }})
|
13
13
|
{%- endfor -%}
|
14
14
|
|
15
15
|
{%- for workdir in workdir_dirs %}{% include extend/list.liquid %}{% endfor -%}
|
@@ -2,10 +2,6 @@
|
|
2
2
|
|
3
3
|
{% comment %} display the directory name {% endcomment %}
|
4
4
|
{%- assign dir = site_pages | where: "url", workdir | first -%}
|
5
|
-
{%- if site_lang != lang -%}
|
6
|
-
{% comment %} current in language directory (level-1) {% endcomment %}
|
7
|
-
{%- assign workdir_level = workdir_level | minus: 1 -%}
|
8
|
-
{%- endif -%}
|
9
5
|
{%- if workdir_level == 2 %}
|
10
6
|
{% comment %} display the root sub-directory as "p.caption" {% endcomment %}
|
11
7
|
<p class="caption"><span class="caption-text">{{ dir.title | default: dir.url }}</span></p>
|
@@ -20,11 +16,8 @@
|
|
20
16
|
{%- capture current -%}
|
21
17
|
{%- if page.url == item.url %}current{% endif -%}
|
22
18
|
{%- endcapture %}
|
23
|
-
{%- if site_lang != lang -%}
|
24
|
-
{%- assign level = level | minus: 1 -%}
|
25
|
-
{%- endif -%}
|
26
19
|
|
27
|
-
<li class="toctree-l{{ level }} {{ current }}">
|
20
|
+
<li class="toctree-l{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
|
28
21
|
<a class="reference internal {{ current }}" href="{{ item.url | relative_url }}">
|
29
22
|
{%- if item.sort and site.show_sorted != false -%}
|
30
23
|
{{ item.sort }}. {{ item.title | default: item.url }}
|
@@ -38,9 +31,6 @@
|
|
38
31
|
{% comment %} list dirs {% endcomment %}
|
39
32
|
{%- for workdir in workdir_dirs -%}
|
40
33
|
{%- assign level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 2 %}
|
41
|
-
{%- if site_lang != lang -%}
|
42
|
-
{%- assign level = level | minus: 1 -%}
|
43
|
-
{%- endif -%}
|
44
34
|
<li class="toctree-l{{ level }}">{% include extend/toctree.liquid %}</li>
|
45
35
|
{%- endfor -%}
|
46
36
|
</ul>
|
File without changes
|
File without changes
|
@@ -0,0 +1,24 @@
|
|
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
|
+
|
5
|
+
{%- comment %} canonical link {% endcomment %}
|
6
|
+
<link rel="canonical" href="{{ schema_surl }}">
|
7
|
+
|
8
|
+
{%- if prev -%}
|
9
|
+
<link rel="prev" href="{{ prev.url | absolute_url }}">
|
10
|
+
{%- endif -%}
|
11
|
+
|
12
|
+
{%- if next -%}
|
13
|
+
<link rel="next" href="{{ next.url | absolute_url }}">
|
14
|
+
{%- endif -%}
|
15
|
+
|
16
|
+
{% comment %} theme {% endcomment %}
|
17
|
+
<link rel="stylesheet" href="{{ cdn }}/assets/css/theme.min.css">
|
18
|
+
|
19
|
+
{%- if custom_scss.size > 0 -%}
|
20
|
+
<style>{{ custom_scss | scssify | strip_newlines }}</style>
|
21
|
+
{%- endif -%}
|
22
|
+
|
23
|
+
{% comment %} icon {% endcomment %}
|
24
|
+
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/favicon.svg">
|