jekyll-rtd-theme 2.0.1 → 2.0.6
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 +45 -14
- data/_includes/addons/analytics.liquid +1 -1
- data/_includes/assets/sw.caches.js +3 -7
- data/_includes/class/_breadcrumbs.liquid +1 -1
- data/_includes/class/_toctree.liquid +2 -2
- data/_includes/class/content-wrap.liquid +2 -2
- data/_includes/class/sidebar-wrap.liquid +2 -2
- data/_includes/extend/list.liquid +1 -1
- data/_includes/extend/toctree.liquid +2 -2
- data/_includes/list.liquid +1 -1
- data/_includes/node/links.liquid +33 -0
- data/_includes/{head → node}/metadata.liquid +9 -1
- 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 +6 -64
- data/_includes/reset/description.liquid +6 -0
- data/_includes/reset/navigation.liquid +20 -0
- data/_includes/reset/title.liquid +18 -0
- data/_includes/reset/variables.liquid +31 -0
- data/_includes/reset/version.liquid +1 -0
- data/_includes/shortcodes/danger.liquid +3 -3
- data/_includes/shortcodes/mermaid.liquid +1 -1
- data/_includes/shortcodes/note.liquid +3 -3
- data/_includes/shortcodes/tip.liquid +3 -3
- data/_includes/shortcodes/warning.liquid +2 -2
- data/_layouts/default.liquid +8 -9
- data/_layouts/plugins/extension.liquid +1 -2
- 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/{loaders → css/loaders}/index.scss +0 -0
- data/_sass/@primer/{loaders → css/loaders}/loaders.scss +0 -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/_variables.scss +5 -1
- data/_sass/class/markdown-body.scss +49 -4
- data/_sass/class/sidebar-wrap.scss +7 -2
- data/_sass/class/{admonition.scss → toasts.scss} +7 -1
- data/_sass/font-awesome/_icons.scss +2139 -0
- data/_sass/font-awesome/_variables.scss +799 -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/{class/highlight.scss → rouge/github.scss} +0 -0
- data/_sass/theme.scss +14 -11
- data/assets/css/theme.min.css +1 -1
- data/assets/images/apple-touch-icon-300x300.png +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.svg} +2 -7
- data/assets/js/theme.js +246 -244
- data/assets/js/theme.min.js +1 -1
- data/assets/search.liquid +1 -1
- data/assets/sw.caches.liquid +1 -1
- metadata +78 -64
- data/_includes/head/custom.liquid +0 -17
- data/_includes/head/links.liquid +0 -16
- data/_sass/_icons.scss +0 -57
@@ -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.6" -%}
|
@@ -1,9 +1,9 @@
|
|
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
|
-
<div class="content
|
6
|
+
<div class="content px-2 py-3">
|
7
7
|
{{ codes | markdownify | strip_newlines -}}
|
8
8
|
</div>
|
9
9
|
</div>
|
@@ -1 +1 @@
|
|
1
|
-
<div class="mermaid overflow-x-auto">{{ codes }}</div>
|
1
|
+
<div class="mermaid overflow-x-auto p-3 mb-4" data-lang="{{ codes | split: ' ' | first }}">{{ codes }}</div>
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<div class="
|
1
|
+
<div class="toasts note mb-4">
|
2
2
|
<div class="title px-2 py-1">
|
3
|
-
<i class="fa fa-
|
3
|
+
<i class="fa fa-info-circle"></i>
|
4
4
|
{{ __.note | default: "Note" }}
|
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>
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<div class="
|
1
|
+
<div class="toasts tip mb-4">
|
2
2
|
<div class="title px-2 py-1">
|
3
|
-
<i class="fa fa-
|
3
|
+
<i class="fa fa-check-circle"></i>
|
4
4
|
{{ __.tip | default: "Tip" }}
|
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>
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<div class="
|
1
|
+
<div class="toasts warning mb-4">
|
2
2
|
<div class="title px-2 py-1">
|
3
3
|
<i class="fa fa-exclamation-circle"></i>
|
4
4
|
{{ __.warning | default: "Warning" }}
|
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>
|
data/_layouts/default.liquid
CHANGED
@@ -5,17 +5,13 @@ layout: plugins/compress
|
|
5
5
|
{%- include reset/defaults.liquid -%}
|
6
6
|
|
7
7
|
<!DOCTYPE html>
|
8
|
-
<html lang="{{
|
8
|
+
<html lang="{{ lang }}">
|
9
9
|
<head>
|
10
|
-
{%- include
|
10
|
+
{%- include node/metadata.liquid -%}
|
11
11
|
|
12
|
-
{%- include
|
13
|
-
{%- include
|
14
|
-
|
15
|
-
{%- include head/script.schema.liquid -%}
|
16
|
-
{%- include head/script.liquid -%}
|
17
|
-
{%- include head/custom.liquid -%}
|
18
|
-
{%- include head/script.extension.liquid -%}
|
12
|
+
{%- include node/title.liquid -%}
|
13
|
+
{%- include node/links.liquid -%}
|
14
|
+
{%- include node/script.schema.liquid -%}
|
19
15
|
|
20
16
|
{%- include extra/head.html -%}
|
21
17
|
</head>
|
@@ -24,6 +20,9 @@ layout: plugins/compress
|
|
24
20
|
{%- include class/content-wrap.liquid -%}
|
25
21
|
{%- include class/addons-wrap.liquid -%}
|
26
22
|
|
23
|
+
{%- include node/script.liquid -%}
|
24
|
+
{%- include node/script.extension.liquid -%}
|
25
|
+
|
27
26
|
{%- include extra/footer.html -%}
|
28
27
|
</body>
|
29
28
|
</html>
|
@@ -15,9 +15,8 @@
|
|
15
15
|
{%- assign custom = content_block | replace_first: '><code class="language-', "" | replace_first: '">', "<temp/>" | split: "<temp/>" -%}
|
16
16
|
{%- assign lang = custom.first -%}
|
17
17
|
{%- assign codes = custom.last | split: "</code>" | first -%}
|
18
|
-
{%- assign others = custom.last | split: "</code>" | last -%}
|
19
18
|
{%- if shortcodes contains lang -%}
|
20
|
-
{%- include shortcodes/{{ lang }}.liquid -%} {{-
|
19
|
+
{%- include shortcodes/{{ lang }}.liquid -%} {{- pre_blocks.last -}}
|
21
20
|
{%- else -%}
|
22
21
|
<pre{{ pre_blocks.first }}</pre> {{ pre_blocks.last }}
|
23
22
|
{%- endif -%}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -46,9 +46,12 @@ label {
|
|
46
46
|
background-color: #f3f4f6; // custom gray
|
47
47
|
}
|
48
48
|
|
49
|
-
// Ensures inputs don't zoom on mobile but are body-font size on
|
50
|
-
@
|
51
|
-
font-size: $
|
49
|
+
// Ensures inputs don't zoom on mobile iPhone but are body-font size on iPad
|
50
|
+
@supports (-webkit-touch-callout: none) {
|
51
|
+
font-size: $h4-size;
|
52
|
+
@include breakpoint(md) {
|
53
|
+
font-size: $body-font-size;
|
54
|
+
}
|
52
55
|
}
|
53
56
|
}
|
54
57
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -72,6 +72,9 @@
|
|
72
72
|
.rounded#{$variant}-2 {
|
73
73
|
border-radius: $border-radius-2 !important;
|
74
74
|
}
|
75
|
+
.rounded#{$variant}-3 {
|
76
|
+
border-radius: $border-radius-3 !important;
|
77
|
+
}
|
75
78
|
|
76
79
|
@each $edge, $corners in $edges {
|
77
80
|
.rounded#{$variant}-#{$edge}-0 {
|
@@ -82,19 +85,19 @@
|
|
82
85
|
|
83
86
|
.rounded#{$variant}-#{$edge}-1 {
|
84
87
|
@each $corner in $corners {
|
85
|
-
border-#{$corner}-radius: $border-radius
|
88
|
+
border-#{$corner}-radius: $border-radius-1 !important;
|
86
89
|
}
|
87
90
|
}
|
88
91
|
|
89
92
|
.rounded#{$variant}-#{$edge}-2 {
|
90
93
|
@each $corner in $corners {
|
91
|
-
border-#{$corner}-radius: $border-radius !important;
|
94
|
+
border-#{$corner}-radius: $border-radius-2 !important;
|
92
95
|
}
|
93
96
|
}
|
94
97
|
|
95
98
|
.rounded#{$variant}-#{$edge}-3 {
|
96
99
|
@each $corner in $corners {
|
97
|
-
border-#{$corner}-radius: $border-radius
|
100
|
+
border-#{$corner}-radius: $border-radius-3 !important;
|
98
101
|
}
|
99
102
|
}
|
100
103
|
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// Layout
|
2
2
|
// stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before, comment-empty-line-before
|
3
3
|
|
4
|
-
|
4
|
+
/* Position */
|
5
5
|
@each $breakpoint, $variant in $responsive-variants {
|
6
6
|
@include breakpoint($breakpoint) {
|
7
7
|
@each $position in $responsive-positions {
|
@@ -12,21 +12,34 @@
|
|
12
12
|
}
|
13
13
|
}
|
14
14
|
|
15
|
-
/*
|
16
|
-
|
17
|
-
|
18
|
-
}
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
.bottom-0 {
|
25
|
-
|
26
|
-
}
|
27
|
-
|
28
|
-
|
29
|
-
|
15
|
+
/* Final position */
|
16
|
+
@each $breakpoint, $variant in $responsive-variants {
|
17
|
+
@include breakpoint($breakpoint) {
|
18
|
+
.top#{$variant}-0 {
|
19
|
+
top: 0 !important;
|
20
|
+
}
|
21
|
+
.right#{$variant}-0 {
|
22
|
+
right: 0 !important;
|
23
|
+
}
|
24
|
+
.bottom#{$variant}-0 {
|
25
|
+
bottom: 0 !important;
|
26
|
+
}
|
27
|
+
.left#{$variant}-0 {
|
28
|
+
left: 0 !important;
|
29
|
+
}
|
30
|
+
.top#{$variant}-auto {
|
31
|
+
top: auto !important;
|
32
|
+
}
|
33
|
+
.right#{$variant}-auto {
|
34
|
+
right: auto !important;
|
35
|
+
}
|
36
|
+
.bottom#{$variant}-auto {
|
37
|
+
bottom: auto !important;
|
38
|
+
}
|
39
|
+
.left#{$variant}-auto {
|
40
|
+
left: auto !important;
|
41
|
+
}
|
42
|
+
}
|
30
43
|
}
|
31
44
|
|
32
45
|
/* Vertical align middle */
|
@@ -55,15 +68,19 @@
|
|
55
68
|
}
|
56
69
|
|
57
70
|
// Overflow utilities
|
58
|
-
@each $
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
71
|
+
@each $breakpoint, $variant in $responsive-variants {
|
72
|
+
@include breakpoint($breakpoint) {
|
73
|
+
@each $overflow in (visible, hidden, auto, scroll) {
|
74
|
+
.overflow#{$variant}-#{$overflow} {
|
75
|
+
overflow: $overflow !important;
|
76
|
+
}
|
77
|
+
.overflow#{$variant}-x-#{$overflow} {
|
78
|
+
overflow-x: $overflow !important;
|
79
|
+
}
|
80
|
+
.overflow#{$variant}-y-#{$overflow} {
|
81
|
+
overflow-y: $overflow !important;
|
82
|
+
}
|
83
|
+
}
|
67
84
|
}
|
68
85
|
}
|
69
86
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/_sass/_font-face.scss
CHANGED
@@ -36,30 +36,31 @@
|
|
36
36
|
|
37
37
|
@font-face {
|
38
38
|
font-family: "Roboto-Slab";
|
39
|
-
src: url("fonts/Roboto-Slab-Regular.woff2") format("woff2"),
|
40
|
-
url("fonts/Roboto-Slab-Regular.woff") format("woff");
|
41
39
|
font-weight: $font-weight-normal;
|
42
40
|
font-style: normal;
|
43
41
|
font-display: block;
|
42
|
+
src: url("fonts/Roboto-Slab-Regular.woff2") format("woff2"),
|
43
|
+
url("fonts/Roboto-Slab-Regular.woff") format("woff");
|
44
44
|
}
|
45
45
|
|
46
46
|
@font-face {
|
47
47
|
font-family: "Roboto-Slab";
|
48
|
-
src: url("fonts/Roboto-Slab-Bold.woff2") format("woff2"),
|
49
|
-
url("fonts/Roboto-Slab-Bold.woff") format("woff");
|
50
48
|
font-weight: $font-weight-bold;
|
51
49
|
font-style: normal;
|
52
50
|
font-display: block;
|
51
|
+
src: url("fonts/Roboto-Slab-Bold.woff2") format("woff2"),
|
52
|
+
url("fonts/Roboto-Slab-Bold.woff") format("woff");
|
53
53
|
}
|
54
54
|
|
55
55
|
@font-face {
|
56
56
|
font-family: "FontAwesome";
|
57
|
+
font-weight: normal;
|
58
|
+
font-style: normal;
|
59
|
+
font-display: block;
|
57
60
|
src: url("fonts/fontawesome-webfont.eot");
|
58
61
|
src: url("fonts/fontawesome-webfont.eot?#iefix") format("embedded-opentype"),
|
59
62
|
url("fonts/fontawesome-webfont.woff2") format("woff2"),
|
60
63
|
url("fonts/fontawesome-webfont.woff") format("woff"),
|
61
64
|
url("fonts/fontawesome-webfont.ttf") format("truetype"),
|
62
65
|
url("fonts/fontawesome-webfont.svg#fontawesomeregular") format("svg");
|
63
|
-
font-weight: normal;
|
64
|
-
font-style: normal;
|
65
66
|
}
|
data/_sass/_variables.scss
CHANGED
@@ -21,6 +21,10 @@ $theme-link-hover: lighten($blue, 10%);
|
|
21
21
|
$theme-link-visited: lighten($purple, 10%);
|
22
22
|
|
23
23
|
// theme code
|
24
|
+
$theme-code: $theme-black;
|
25
|
+
$theme-code-background: $bg-gray;
|
26
|
+
$theme-code-inline: $theme-red;
|
27
|
+
$theme-code-inline-background: darken($theme-white, 2%);
|
24
28
|
|
25
29
|
// theme mask
|
26
30
|
$theme-mask-white: transparentize($theme-white, 0.9);
|
@@ -29,4 +33,4 @@ $theme-mask-black: transparentize($theme-black, 0.9);
|
|
29
33
|
// theme menu
|
30
34
|
$theme-menu-width: 300px;
|
31
35
|
$theme-menu-background: darken($theme-black, 10%);
|
32
|
-
$theme-menu-active-background: darken($theme-blue,
|
36
|
+
$theme-menu-active-background: darken($theme-blue, 15%);
|