jekyll-rtd-theme 1.1.1 → 1.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 195022eba0c5f3fcb99d247278f0fa8da67c554ba16829f1475d6b6bcc5ca482
4
- data.tar.gz: 8c2081bea527becb525f1e0ec86959942e179ff49ea4ef63bbcf151e59460c88
3
+ metadata.gz: 2e823e3b01e51ae8671337a94314e736ab6227762eb7477bf0ae8fbb0d0ad1c3
4
+ data.tar.gz: 222f110766405f9cd0a299dfccde339f04ac85ea82abf8258ca471a3d39353e5
5
5
  SHA512:
6
- metadata.gz: 539cf3a199ff035b039598609d880cd07dd6834f1c653e56f4bf4061a2989232d7b43719f35fe843ab2a0b11e6da6d7da53646b2fe81610d68ba17ce7160f3dd
7
- data.tar.gz: d51f6474b9f776573eb16e2a599862b6fbb890a97c2c7ac8c5e62737861f3139162828246e052f899a801b063550eca190ec6e6cabeae48b526dafb0d690b248
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
@@ -34,8 +34,8 @@ $(document).ready(function() {
34
34
  });
35
35
  }
36
36
  for (let item in ui.admonition) {
37
- $(`.language-${item}`).each(function() {
38
- $(this).replaceWith(`<div class="admonition ${item}"><p class="admonition-title">${ui.admonition[item]}</p><p>${$(this).html()}</p></div>`);
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.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 "site.scss";
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 -%}
@@ -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
- <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
145
- <a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}">{{ site.title }}</a>
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
- <pre{{ block.first }}</pre>{{ block_after }}
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 -%}
@@ -1,10 +1,3 @@
1
- .flex {
2
- display: -webkit-flex;
3
- display: flex;
4
- flex-wrap: wrap;
5
- flex-direction: row;
6
- }
7
-
8
1
  .album {
9
2
  @extend .flex;
10
3
 
@@ -19,7 +12,8 @@
19
12
  }
20
13
 
21
14
  img {
15
+ @extend .shadow-box;
22
16
  width: 100%;
23
17
  }
24
18
  }
25
- }
19
+ }
@@ -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 title margin, not the best method, flex should be better */
57
+ /* mobile button and title */
43
58
  .wy-nav-top {
44
- a {
45
- margin-left: -30px;
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.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-19 00:00:00.000000000 Z
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/site.scss
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