jekyll-rtd-theme 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/_includes/assets/common.js +2 -2
- data/_includes/reset/defaults.liquid +2 -2
- data/_layouts/default.liquid +4 -2
- data/_layouts/plugins/compress.liquid +12 -1
- data/_sass/_album.scss +2 -8
- data/_sass/{site.scss → jekyll-rtd-theme.scss} +31 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e823e3b01e51ae8671337a94314e736ab6227762eb7477bf0ae8fbb0d0ad1c3
|
4
|
+
data.tar.gz: 222f110766405f9cd0a299dfccde339f04ac85ea82abf8258ca471a3d39353e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ded9e6c16623c617ea73684a082742b29bf850f4bf7dab8d99e3ee58cf2dfb6730c97f0a6863b5ad9cb9be71436b119947544f4d610e3e415c9a875792fd0b1
|
7
|
+
data.tar.gz: acdbeaf0a2631fe40d1c08b2c2245ce18af876fcba2304b4b949368476a785629373f6241c419a8776293672531e790385277ad992f24f7e8879737e759d6ddf
|
data/README.md
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
[![](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)][cdn]
|
6
6
|
[![](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme/badge)][codefactor]
|
7
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]
|
8
9
|
|
9
10
|
Just another documentation theme compatible with GitHub Pages, based on sphinx_rtd_theme
|
10
11
|
|
@@ -33,3 +34,4 @@ The theme is available as open source under the terms of the [MIT License](https
|
|
33
34
|
[rubygem]: https://rubygems.org/gems/jekyll-rtd-theme
|
34
35
|
[cdn]: https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme/
|
35
36
|
[codefactor]: https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme
|
37
|
+
[gitter]: https://gitter.im/rundocs/jekyll-rtd-theme?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
|
data/_includes/assets/common.js
CHANGED
@@ -34,8 +34,8 @@ $(document).ready(function() {
|
|
34
34
|
});
|
35
35
|
}
|
36
36
|
for (let item in ui.admonition) {
|
37
|
-
$(
|
38
|
-
$(this).
|
37
|
+
$(".admonition-title").each(function() {
|
38
|
+
$(this).html(ui.admonition[$(this).attr("ui")]);
|
39
39
|
});
|
40
40
|
}
|
41
41
|
anchors.add();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
{%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
|
2
|
-
{%- assign version = "1.1.
|
2
|
+
{%- assign version = "1.1.2" -%}
|
3
3
|
{%- assign addons = "github, i18n, plugins, analytics" | split: ", " -%}
|
4
4
|
|
5
5
|
{%- assign schema_date = page.date | default: site.time | date_to_xmlschema -%}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
{% comment %} scss {% endcomment %}
|
10
10
|
{%- capture site_scss -%}
|
11
|
-
@import "
|
11
|
+
@import "jekyll-rtd-theme.scss";
|
12
12
|
{% if site.fluid %}@import "fluid.scss";{% endif %}
|
13
13
|
{% include assets/custom.scss %} {{ site.scss }}
|
14
14
|
{%- endcapture -%}
|
data/_layouts/default.liquid
CHANGED
@@ -141,8 +141,10 @@ layout: plugins/compress
|
|
141
141
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
142
142
|
<!-- MOBILE NAV -->
|
143
143
|
<nav class="wy-nav-top" aria-label="top navigation">
|
144
|
-
<
|
145
|
-
|
144
|
+
<div class="flex">
|
145
|
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
146
|
+
<a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}">{{ site.title }}</a>
|
147
|
+
</div>
|
146
148
|
</nav>
|
147
149
|
<div class="wy-nav-content">
|
148
150
|
<div class="rst-content">
|
@@ -8,7 +8,18 @@
|
|
8
8
|
{%- if block.size == 1 -%}
|
9
9
|
{{ block_after }}
|
10
10
|
{%- else -%}
|
11
|
-
|
11
|
+
{%- assign blocks = block.first | replace_first: ">", "```<temp>```" | split: "```<temp>```" -%}
|
12
|
+
{%- assign admonitions = "note, tip, warning, danger" | split: ", " -%}
|
13
|
+
{%- assign type = blocks.first | replace: '"', '' | replace: " class=language-", "" -%}
|
14
|
+
{%- comment %} admonitions card {% endcomment -%}
|
15
|
+
{%- if admonitions contains type -%}
|
16
|
+
<div class="admonition {{ type }}">
|
17
|
+
{%- comment %} title will be translated via ui {% endcomment -%}
|
18
|
+
<p class="admonition-title" ui="{{ type }}"><span class="progress"></span></p>{{ blocks.last | markdownify | strip_newlines -}}
|
19
|
+
</div>{{ block_after -}}
|
20
|
+
{%- else -%}
|
21
|
+
<pre{{ block.first }}</pre>{{ block_after -}}
|
22
|
+
{%- endif -%}
|
12
23
|
{%- endif -%}
|
13
24
|
{%- endfor -%}
|
14
25
|
{%- endif -%}
|
data/_sass/_album.scss
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
/* common */
|
2
|
+
.shadow-box {
|
3
|
+
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
|
4
|
+
}
|
5
|
+
|
6
|
+
.flex {
|
7
|
+
display: -webkit-flex;
|
8
|
+
display: flex;
|
9
|
+
flex-wrap: wrap;
|
10
|
+
flex-direction: row;
|
11
|
+
}
|
1
12
|
@import "_album.scss";
|
2
13
|
@import "_embed.scss";
|
3
14
|
/* custom */
|
@@ -11,6 +22,10 @@ footer {
|
|
11
22
|
text-align: center;
|
12
23
|
}
|
13
24
|
}
|
25
|
+
/* admonition add shadow-box */
|
26
|
+
.admonition {
|
27
|
+
@extend .shadow-box;
|
28
|
+
}
|
14
29
|
/* from glitch */
|
15
30
|
.progress:after {
|
16
31
|
display: inline-block;
|
@@ -39,10 +54,23 @@ footer {
|
|
39
54
|
.wy-nav-side {
|
40
55
|
padding-bottom: 3em;
|
41
56
|
}
|
42
|
-
/* mobile
|
57
|
+
/* mobile button and title */
|
43
58
|
.wy-nav-top {
|
44
|
-
|
45
|
-
|
59
|
+
padding: 0;
|
60
|
+
|
61
|
+
.flex {
|
62
|
+
align-items: center;
|
63
|
+
|
64
|
+
i {
|
65
|
+
/* for better touch experience */
|
66
|
+
padding: 10px;
|
67
|
+
font-size: 20px;
|
68
|
+
}
|
69
|
+
|
70
|
+
a {
|
71
|
+
flex: auto;
|
72
|
+
padding-right: 10px;
|
73
|
+
}
|
46
74
|
}
|
47
75
|
}
|
48
76
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-rtd-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- saowang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-pages
|
@@ -69,7 +69,7 @@ files:
|
|
69
69
|
- _sass/_album.scss
|
70
70
|
- _sass/_embed.scss
|
71
71
|
- _sass/fluid.scss
|
72
|
-
- _sass/
|
72
|
+
- _sass/jekyll-rtd-theme.scss
|
73
73
|
- assets/404.liquid
|
74
74
|
- assets/css/fonts/Roboto-Slab-Bold.woff
|
75
75
|
- assets/css/fonts/Roboto-Slab-Bold.woff2
|