jekyll-rtd-theme 2.0.5 → 2.0.10
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 +33 -24
- data/_includes/README.md +9 -0
- data/_includes/common/assets/data.liquid +3 -0
- data/_includes/common/assets/robots.liquid +4 -0
- data/_includes/common/assets/sitemap.liquid +12 -0
- data/_includes/{assets → common/assets}/sw.caches.js +3 -3
- data/_includes/common/core/_list.liquid +15 -0
- data/_includes/common/core/list.liquid +10 -0
- data/_includes/common/google_adsense.liquid +3 -0
- data/_includes/common/google_gtag.liquid +11 -0
- data/_includes/common/links.liquid +26 -0
- data/_includes/common/mermaid.liquid +10 -0
- data/_includes/common/metadata.liquid +12 -0
- data/_includes/common/opengraph.liquid +8 -0
- data/_includes/{reset → common/rest}/content.liquid +1 -0
- data/_includes/common/rest/defaults.liquid +7 -0
- data/_includes/{reset → common/rest}/description.liquid +0 -0
- data/_includes/{reset → common/rest}/i18n.liquid +0 -0
- data/_includes/{reset/navigation.liquid → common/rest/nav.liquid} +1 -1
- data/_includes/{reset → common/rest}/site_pages.liquid +0 -0
- data/_includes/{reset → common/rest}/tabs.liquid +0 -0
- data/_includes/{reset → common/rest}/title.liquid +0 -0
- data/_includes/{reset → common/rest}/variables.liquid +13 -12
- data/_includes/{reset → common/rest}/workdir.liquid +0 -0
- data/_includes/{node/script.schema.liquid → common/schema.liquid} +0 -0
- data/_includes/{node → common}/script.liquid +0 -8
- data/_includes/{node → common}/title.liquid +0 -0
- data/_includes/common/twitter_cards.liquid +6 -0
- data/_includes/list.liquid +1 -10
- data/_includes/rest/defaults.liquid +2 -0
- data/_includes/rest/script.liquid +7 -0
- data/_includes/rest/styles.liquid +5 -0
- data/_includes/shortcodes/danger.liquid +2 -2
- data/_includes/shortcodes/mermaid.liquid +3 -1
- data/_includes/shortcodes/note.liquid +2 -2
- data/_includes/shortcodes/tip.liquid +2 -2
- data/_includes/shortcodes/warning.liquid +1 -1
- data/_includes/{extend/toctree.liquid → templates/_toctree.liquid} +2 -2
- data/_includes/templates/addons.liquid +43 -0
- data/_includes/{class/_breadcrumbs.liquid → templates/breadcrumbs.liquid} +1 -1
- data/_includes/{class/content-wrap.liquid → templates/content.liquid} +4 -4
- data/_includes/{class/_footer.liquid → templates/footer.liquid} +24 -11
- data/_includes/{class/sidebar-wrap.liquid → templates/sidebar.liquid} +1 -1
- data/_includes/{class/_toctree.liquid → templates/toctree.liquid} +2 -2
- data/_layouts/default.liquid +19 -18
- data/_layouts/{plugins → tasks}/compress.liquid +1 -1
- data/_layouts/{plugins/extension.liquid → tasks/shortcodes.liquid} +2 -2
- data/_sass/_direction.scss +107 -0
- data/_sass/_layout.scss +4 -3
- data/_sass/_rest.scss +26 -0
- data/_sass/_variables.scss +8 -6
- data/_sass/{class/addons-wrap.scss → core/addons.scss} +0 -0
- data/_sass/{class → core}/container.scss +1 -1
- data/_sass/{class/content-wrap.scss → core/content.scss} +0 -0
- data/_sass/{class → core}/header.scss +0 -0
- data/_sass/{class/markdown-body.scss → core/markdown.scss} +51 -26
- data/_sass/{class/sidebar-wrap.scss → core/sidebar.scss} +3 -3
- data/_sass/{class → core}/title.scss +0 -0
- data/_sass/{class/admonition.scss → core/toasts.scss} +3 -3
- data/_sass/lib/@primer/css/base/README.md +24 -0
- data/_sass/{@primer → lib/@primer}/css/base/base.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/base/index.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/base/kbd.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/base/normalize.scss +1 -0
- data/_sass/{@primer → lib/@primer}/css/base/typography-base.scss +0 -0
- data/_sass/lib/@primer/css/breadcrumb/README.md +24 -0
- data/_sass/{@primer → lib/@primer}/css/breadcrumb/breadcrumb.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/breadcrumb/index.scss +0 -0
- data/_sass/lib/@primer/css/buttons/README.md +24 -0
- data/_sass/{@primer → lib/@primer}/css/buttons/button-group.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/buttons/button.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/buttons/index.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/buttons/misc.scss +0 -0
- data/_sass/lib/@primer/css/forms/README.md +24 -0
- data/_sass/{@primer → lib/@primer}/css/forms/form-control.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/forms/form-group.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/forms/form-select.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/forms/form-validation.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/forms/index.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/forms/input-group.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/forms/radio-group.scss +0 -0
- data/_sass/lib/@primer/css/loaders/README.md +24 -0
- data/_sass/{@primer → lib/@primer}/css/loaders/index.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/loaders/loaders.scss +0 -0
- data/_sass/lib/@primer/css/markdown/README.md +24 -0
- data/_sass/{@primer → lib/@primer}/css/markdown/blob-csv.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/markdown/code.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/markdown/headings.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/markdown/images.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/markdown/index.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/markdown/lists.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/markdown/markdown-body.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/markdown/tables.scss +0 -0
- data/_sass/lib/@primer/css/support/README.md +24 -0
- data/_sass/{@primer → lib/@primer}/css/support/index.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/support/mixins/buttons.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/support/mixins/layout.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/support/mixins/misc.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/support/mixins/typography.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/support/variables/color-system.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/support/variables/colors.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/support/variables/layout.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/support/variables/misc.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/support/variables/typography.scss +0 -0
- data/_sass/lib/@primer/css/utilities/README.md +24 -0
- data/_sass/{@primer → lib/@primer}/css/utilities/animations.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/utilities/borders.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/utilities/box-shadow.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/utilities/colors.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/utilities/details.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/utilities/flexbox.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/utilities/index.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/utilities/layout.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/utilities/margin.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/utilities/padding.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/utilities/typography.scss +0 -0
- data/_sass/{@primer → lib/@primer}/css/utilities/visibility-display.scss +0 -0
- data/_sass/lib/font-awesome/_icons.scss +2139 -0
- data/_sass/lib/font-awesome/_variables.scss +799 -0
- data/_sass/{material-design-lite → lib/material-design-lite}/_color-definitions.scss +0 -0
- data/_sass/{material-design-lite → lib/material-design-lite}/_functions.scss +0 -0
- data/_sass/{material-design-lite → lib/material-design-lite}/_mixins.scss +0 -0
- data/_sass/{material-design-lite → lib/material-design-lite}/_variables.scss +0 -0
- data/_sass/{class/highlight.scss → lib/rouge/github.scss} +0 -0
- data/_sass/theme.scss +25 -21
- data/assets/404.liquid +1 -1
- data/assets/css/theme.min.css +1 -1
- data/assets/data.liquid +6 -0
- data/assets/images/apple-touch-icon-300x300.jpg +0 -0
- data/assets/images/favicon-16x16.png +0 -0
- data/assets/images/favicon-32x32.png +0 -0
- data/assets/images/favicon-96x96.png +0 -0
- data/assets/{favicon.liquid → images/favicon.liquid} +7 -4
- data/assets/js/mermaid.min.js +5 -5
- data/assets/js/theme.js +1 -6
- data/assets/js/theme.min.js +1 -1
- data/assets/robots.liquid +1 -4
- data/assets/search.liquid +1 -1
- data/assets/sitemap.liquid +2 -13
- data/assets/sw.caches.liquid +3 -3
- metadata +126 -108
- data/_includes/addons/analytics.liquid +0 -11
- data/_includes/addons/github.liquid +0 -21
- data/_includes/assets/custom.js +0 -0
- data/_includes/assets/custom.scss +0 -0
- data/_includes/class/addons-wrap.liquid +0 -26
- data/_includes/extend/list.liquid +0 -15
- data/_includes/extra/footer.html +0 -0
- data/_includes/extra/head.html +0 -0
- data/_includes/node/links.liquid +0 -24
- data/_includes/node/metadata.liquid +0 -21
- data/_includes/node/script.extension.liquid +0 -29
- data/_includes/reset/defaults.liquid +0 -11
- data/_includes/reset/version.liquid +0 -1
- data/_sass/_icons.scss +0 -62
- data/_sass/_reset.scss +0 -13
- data/assets/pages.liquid +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12353811eacbf4378796c0318fbaf537b7fdac63f737395d529c53ce129d4190
|
|
4
|
+
data.tar.gz: e70e90269735276e5514d097966cf6a0ef20b7381a44d272d1e29d41cb3c943e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2d2b4c98f5eb9dbd6782505259dc9f59bb1273e27e9a2a6c37f2922f4b0a6eb1470a01612303cd16f811c7f7d9d145fdff35b6c1fca1f84aaf1cf189a2e4992
|
|
7
|
+
data.tar.gz: 9f204037d08ece1891e1f5275c0d17ef00144245d5e60d2fbe1c23562e51e820502056583e1f4e44399be016c57b2e09c142cd22b10c9133ff654190967e6371
|
data/README.md
CHANGED
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
# jekyll-rtd-theme
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|

|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Just another documentation theme compatible with GitHub Pages
|
|
7
7
|
|
|
8
8
|
## What it does?
|
|
9
9
|
|
|
10
10
|
This theme is inspired by [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme) and refactored with:
|
|
11
11
|
|
|
12
|
-
- [github-pages](https://github.com/github/pages-gem)
|
|
13
12
|
- [@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
|
|
13
|
+
- [github-pages](https://github.com/github/pages-gem) ([dependency versions](https://pages.github.com/versions/))
|
|
21
14
|
|
|
22
15
|
## Quick start
|
|
23
16
|
|
|
@@ -27,20 +20,43 @@ remote_theme: rundocs/jekyll-rtd-theme
|
|
|
27
20
|
|
|
28
21
|
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/)
|
|
29
22
|
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
Documentation that can guide how to create with Github pages, please refer to [rundocs.io](https://rundocs.io) for details
|
|
26
|
+
|
|
27
|
+
## Features
|
|
28
|
+
|
|
29
|
+
- Shortcodes (Toasts card, mermaid)
|
|
30
|
+
- Pages Plugins (emoji, gist, avatar, mentions)
|
|
31
|
+
- Auto generate sidebar
|
|
32
|
+
- [Attribute List Definitions](https://kramdown.gettalong.org/syntax.html#attribute-list-definitions) (Primer/css utilities, Font Awesome 4)
|
|
33
|
+
- Service worker (caches)
|
|
34
|
+
- SEO (404, robots.txt, sitemap.xml)
|
|
35
|
+
- Canonical Link (Open Graph, Twitter Card, Schema data)
|
|
36
|
+
|
|
30
37
|
## Options
|
|
31
38
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
description
|
|
39
|
+
| name | default value | description |
|
|
40
|
+
| ------------- | -------------------- | ----------------- |
|
|
41
|
+
| `title` | repo name | |
|
|
42
|
+
| `description` | repo description | |
|
|
43
|
+
| `url` | user domain or cname | |
|
|
44
|
+
| `baseurl` | repo name | |
|
|
45
|
+
| `lang` | `en` | |
|
|
46
|
+
| `direction` | `auto` | `ltr` or `rtl` |
|
|
47
|
+
| `highlighter` | `rouge` | Cannot be changed |
|
|
36
48
|
|
|
49
|
+
```yml
|
|
50
|
+
# folders sort
|
|
37
51
|
readme_index:
|
|
38
52
|
with_frontmatter: true
|
|
39
53
|
|
|
40
|
-
## optional settings ##
|
|
41
54
|
meta:
|
|
42
55
|
key1: value1
|
|
43
56
|
key2: value2
|
|
57
|
+
.
|
|
58
|
+
.
|
|
59
|
+
.
|
|
44
60
|
|
|
45
61
|
google:
|
|
46
62
|
gtag:
|
|
@@ -50,13 +66,9 @@ mermaid:
|
|
|
50
66
|
custom: # mermaid link
|
|
51
67
|
initialize: # mermaid options, default: {}
|
|
52
68
|
|
|
53
|
-
# also available via file: _include/assets/custom.scss
|
|
54
69
|
scss:
|
|
55
|
-
|
|
56
|
-
# also available via file: _include/assets/custom.js
|
|
57
70
|
script:
|
|
58
71
|
|
|
59
|
-
# also available via file: _data/translate.yml
|
|
60
72
|
translate:
|
|
61
73
|
# shortcodes
|
|
62
74
|
danger:
|
|
@@ -65,6 +77,8 @@ translate:
|
|
|
65
77
|
warning:
|
|
66
78
|
# 404
|
|
67
79
|
not_found:
|
|
80
|
+
# copyright
|
|
81
|
+
revision:
|
|
68
82
|
# search
|
|
69
83
|
searching:
|
|
70
84
|
search:
|
|
@@ -73,17 +87,12 @@ translate:
|
|
|
73
87
|
search_results_found: # the "#" in this translate will replaced with results size!
|
|
74
88
|
search_results_not_found:
|
|
75
89
|
|
|
76
|
-
## optional plugins ##
|
|
77
90
|
plugins:
|
|
78
91
|
- jemoji
|
|
79
92
|
- jekyll-avatar
|
|
80
93
|
- jekyll-mentions
|
|
81
94
|
```
|
|
82
95
|
|
|
83
|
-
## Writing
|
|
84
|
-
|
|
85
|
-
Document writing specifications, please refer to [rundocs.io](https://rundocs.io) for details
|
|
86
|
-
|
|
87
96
|
## The license
|
|
88
97
|
|
|
89
98
|
The theme is available as open source under the terms of the MIT License
|
data/_includes/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{%- include common/rest/site_pages.liquid -%}
|
|
2
|
+
|
|
3
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
4
|
+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
5
|
+
{%- for page in site_pages -%}
|
|
6
|
+
<url>
|
|
7
|
+
<loc>{{ page.url | absolute_url | xml_escape }}</loc>
|
|
8
|
+
<priority>{{ page.content | size | divided_by: 2048.0 | times: 10 | ceil | divided_by: 10.0 | at_least: 0.1 | at_most: 1.0 }}</priority>
|
|
9
|
+
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
|
|
10
|
+
</url>
|
|
11
|
+
{%- endfor %}
|
|
12
|
+
</urlset>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
self.addEventListener("activate", function (event) {
|
|
2
|
-
const current = ["
|
|
2
|
+
const current = ["{{ theme_alias }}"];
|
|
3
3
|
|
|
4
4
|
event.waitUntil(
|
|
5
5
|
caches.keys().then(function (keyList) {
|
|
@@ -15,7 +15,7 @@ self.addEventListener("activate", function (event) {
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
self.addEventListener("fetch", function (e) {
|
|
18
|
-
if (e.request.url.match("
|
|
18
|
+
if (e.request.url.match("{{ theme_alias }}")) {
|
|
19
19
|
e.respondWith(
|
|
20
20
|
caches.match(e.request).then(function (resp) {
|
|
21
21
|
if (resp !== undefined) {
|
|
@@ -26,7 +26,7 @@ self.addEventListener("fetch", function (e) {
|
|
|
26
26
|
})
|
|
27
27
|
.then(function (resp) {
|
|
28
28
|
let clone = resp.clone();
|
|
29
|
-
caches.open("
|
|
29
|
+
caches.open("{{ theme_alias }}").then(function (cache) {
|
|
30
30
|
cache.put(e.request, clone);
|
|
31
31
|
});
|
|
32
32
|
return resp;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{%- include common/rest/site_pages.liquid -%}
|
|
2
|
+
{%- include common/rest/workdir.liquid -%}
|
|
3
|
+
|
|
4
|
+
{%- assign base = page.dir | append: "temp/" | split: "/" | size -%}
|
|
5
|
+
{%- assign size = workdir_level | minus: base -%}
|
|
6
|
+
{%- assign size_p1 = size | plus: 1 -%}
|
|
7
|
+
|
|
8
|
+
{%- assign dir = site_pages | where: "url", workdir | first %}
|
|
9
|
+
{% include common/rest/tabs.liquid size=size %}- [{{ dir.title | default: dir.url }}]({{ dir.url | relative_url }})
|
|
10
|
+
|
|
11
|
+
{%- for item in workdir_files %}
|
|
12
|
+
{% include common/rest/tabs.liquid size=size_p1 %}- [{{ item.title | default: item.name }}]({{ item.url | relative_url }})
|
|
13
|
+
{%- endfor -%}
|
|
14
|
+
|
|
15
|
+
{%- for workdir in workdir_dirs %}{% include common/core/_list.liquid %}{% endfor -%}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{%- include common/rest/site_pages.liquid -%}
|
|
2
|
+
{%- include common/rest/workdir.liquid workdir=page.dir -%}
|
|
3
|
+
|
|
4
|
+
{%- for item in workdir_files %}
|
|
5
|
+
- [{{ item.title | default: item.name }}]({{ item.url | relative_url }})
|
|
6
|
+
{%- endfor -%}
|
|
7
|
+
|
|
8
|
+
{%- if include.all -%}
|
|
9
|
+
{%- for workdir in workdir_dirs %}{% include common/core/_list.liquid %}{% endfor -%}
|
|
10
|
+
{%- endif -%}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{%- if site.google.gtag -%}
|
|
2
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.gtag }}"></script>
|
|
3
|
+
<script>
|
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
|
5
|
+
function gtag() {
|
|
6
|
+
dataLayer.push(arguments);
|
|
7
|
+
}
|
|
8
|
+
gtag("js", new Date());
|
|
9
|
+
gtag("config", "{{ site.google.gtag }}");
|
|
10
|
+
</script>
|
|
11
|
+
{%- endif -%}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{%- comment %} dns-prefetch {% endcomment %}
|
|
2
|
+
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
|
3
|
+
|
|
4
|
+
{%- comment %} canonical link {% endcomment -%}
|
|
5
|
+
{%- if prev -%}
|
|
6
|
+
<link rel="prev" href="{{ prev.url | absolute_url }}">
|
|
7
|
+
{%- endif -%}
|
|
8
|
+
|
|
9
|
+
{%- if next -%}
|
|
10
|
+
<link rel="next" href="{{ next.url | absolute_url }}">
|
|
11
|
+
{%- endif -%}
|
|
12
|
+
|
|
13
|
+
<link rel="canonical" href="{{ schema_surl }}">
|
|
14
|
+
|
|
15
|
+
{%- comment %} favicon icon {% endcomment -%}
|
|
16
|
+
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/images/favicon.svg">
|
|
17
|
+
{%- comment %} alternate {% endcomment -%}
|
|
18
|
+
<link rel="icon" type="image/png" href="{{ site.baseurl }}/assets/images/favicon-16x16.png" sizes="16x16">
|
|
19
|
+
<link rel="icon" type="image/png" href="{{ site.baseurl }}/assets/images/favicon-32x32.png" sizes="32x32">
|
|
20
|
+
<link rel="icon" type="image/png" href="{{ site.baseurl }}/assets/images/favicon-96x96.png" sizes="96x96">
|
|
21
|
+
|
|
22
|
+
{%- comment %} safari {% endcomment -%}
|
|
23
|
+
<link rel="mask-icon" href="{{ site.baseurl }}/assets/images/favicon.svg" color="{{ theme_color }}">
|
|
24
|
+
|
|
25
|
+
{%- comment %} apple-touch-icon {% endcomment -%}
|
|
26
|
+
<link rel="apple-touch-icon" href="{{ site.baseurl }}/assets/images/apple-touch-icon-300x300.jpg">
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{%- if content contains '<code class="language-mermaid">' -%}
|
|
2
|
+
{%- if site.mermaid.custom -%}
|
|
3
|
+
<script src="{{ site.mermaid.custom }}"></script>
|
|
4
|
+
{%- else -%}
|
|
5
|
+
<script src="{{ base }}/assets/js/mermaid.min.js"></script>
|
|
6
|
+
{%- endif %}
|
|
7
|
+
<script>
|
|
8
|
+
mermaid.initialize({% if site.mermaid.initialize %}{{ site.mermaid.initialize | jsonify }}{% else %}{}{% endif %});
|
|
9
|
+
</script>
|
|
10
|
+
{%- endif %}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<meta charset="utf-8">
|
|
2
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=no">
|
|
3
|
+
<meta name="description" content="{{ description }}">
|
|
4
|
+
<meta name="revised" content="{{ docs.build_revision }}">
|
|
5
|
+
<meta name="author" content="{{ author }}">
|
|
6
|
+
<meta name="generator" content="{{ generator }} v{{ version }}">
|
|
7
|
+
|
|
8
|
+
{%- for meta in site.meta -%}
|
|
9
|
+
<meta name="{{ meta.first }}" content="{{ meta.last }}">
|
|
10
|
+
{%- endfor -%}
|
|
11
|
+
|
|
12
|
+
<meta name="theme-color" content="{{ theme_color }}">
|
|
@@ -0,0 +1,8 @@
|
|
|
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_surl }}">
|
|
5
|
+
<meta property="og:type" content="article">
|
|
6
|
+
<meta property="article:author" content="{{ author }}">
|
|
7
|
+
<meta property="article:published_time" content="{{ schema_date }}">
|
|
8
|
+
<meta property="article:modified_time" content="{{ schema_modi }}">
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{%- include common/rest/site_pages.liquid -%}
|
|
2
|
+
{%- include common/rest/i18n.liquid -%}
|
|
3
|
+
{%- include common/rest/variables.liquid -%}
|
|
4
|
+
{%- include common/rest/content.liquid -%}
|
|
5
|
+
{%- include common/rest/nav.liquid -%}
|
|
6
|
+
{%- include common/rest/title.liquid -%}
|
|
7
|
+
{%- include common/rest/description.liquid -%}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
{%- comment %} variables {% endcomment -%}
|
|
2
|
-
{%- assign
|
|
2
|
+
{%- assign version = theme_alias | split: "@" | last -%}
|
|
3
3
|
{%- assign docs = site.github -%}
|
|
4
4
|
{%- assign rest = docs.public_repositories | where: "html_url", docs.repository_url | first -%}
|
|
5
5
|
|
|
6
6
|
{%- assign rest_created_at = rest.created_at | default: site.time -%}
|
|
7
7
|
{%- assign rest_updated_at = rest.updated_at | default: site.time -%}
|
|
8
8
|
|
|
9
|
+
{%- comment %} defaults {% endcomment -%}
|
|
10
|
+
{%- assign direction = site.direction | default: "auto" -%}
|
|
9
11
|
{%- assign lang = site.lang | default: "en" -%}
|
|
10
12
|
{%- assign author = docs.owner.name | default: docs.owner_name -%}
|
|
11
13
|
|
|
14
|
+
{%- capture generator -%}
|
|
15
|
+
{%- if site.remote_theme -%}
|
|
16
|
+
{{- theme_alias | split: "@" | first -}}
|
|
17
|
+
{%- else -%}
|
|
18
|
+
{{- theme_alias | split: "@" | first | split: "/" | last -}}
|
|
19
|
+
{%- endif -%}
|
|
20
|
+
{%- endcapture -%}
|
|
21
|
+
|
|
12
22
|
{%- comment %} schema {% endcomment -%}
|
|
13
23
|
{%- assign schema_date = page.date | default: rest_created_at | date_to_xmlschema -%}
|
|
14
24
|
{%- assign schema_modi = site.time | date_to_xmlschema -%}
|
|
@@ -16,16 +26,7 @@
|
|
|
16
26
|
|
|
17
27
|
{% comment %} debug {% endcomment %}
|
|
18
28
|
{%- if site.debug -%}
|
|
19
|
-
{%- assign
|
|
29
|
+
{%- assign base = site.baseurl -%}
|
|
20
30
|
{%- else -%}
|
|
21
|
-
{%- assign
|
|
31
|
+
{%- assign base = "https://cdn.jsdelivr.net/gh/" | append: theme_alias -%}
|
|
22
32
|
{%- 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 -%}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
window.ui = {
|
|
3
|
-
collect: new URL("{{ collect }}?v={{ version }}&lang={{ lang }}"),
|
|
4
3
|
title: "{{ site.title }}",
|
|
5
4
|
baseurl: "{{ site.baseurl }}",
|
|
6
5
|
i18n: {
|
|
@@ -10,10 +9,3 @@
|
|
|
10
9
|
}
|
|
11
10
|
};
|
|
12
11
|
</script>
|
|
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
|
-
|
|
19
|
-
<script src="{{ cdn }}/assets/js/theme{% if site.debug.dist != false %}.min{% endif %}.js"></script>
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<meta name="twitter:title" content="{{ title }}">
|
|
2
|
+
<meta name="twitter:description" content="{{ description }}">
|
|
3
|
+
<meta name="twitter:card" content="summary">
|
|
4
|
+
<meta name="twitter:site" content="@{{ author }}">
|
|
5
|
+
<meta name="twitter:url" content="{{ schema_surl }}">
|
|
6
|
+
<meta name="twitter:creator" content="@{{ generator }} v{{ version }}">
|
data/_includes/list.liquid
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
{%- include
|
|
2
|
-
{%- include reset/workdir.liquid workdir=page.dir -%}
|
|
3
|
-
|
|
4
|
-
{%- for item in workdir_files %}
|
|
5
|
-
- [{{ item.title | default: item.name }}]({{ item.url | relative_url }})
|
|
6
|
-
{%- endfor -%}
|
|
7
|
-
|
|
8
|
-
{%- if include.all -%}
|
|
9
|
-
{%- for workdir in workdir_dirs %}{% include extend/list.liquid %}{% endfor -%}
|
|
10
|
-
{%- endif -%}
|
|
1
|
+
{%- include common/core/list.liquid -%}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<div class="
|
|
1
|
+
<div class="toasts danger mb-4">
|
|
2
2
|
<div class="title px-2 py-1">
|
|
3
|
-
<i class="fa fa-exclamation-
|
|
3
|
+
<i class="fa fa-exclamation-triangle"></i>
|
|
4
4
|
{{ __.danger | default: "Danger" }}
|
|
5
5
|
</div>
|
|
6
6
|
<div class="content px-2 py-3">
|