jekyll-rtd-theme 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e623e1c2a34e05c520de194e2893323851d344c01638700815240352903369f2
4
- data.tar.gz: e5a5b57710023f64e0767f9e347fbbfe9b39b192975ec4f33293863f9ec6783f
3
+ metadata.gz: bfa6e7cffcb895b7a19f9f904415f281083b74a3578bb9e2679058895719c54a
4
+ data.tar.gz: 144a22891ac23e3fc30dbfc9b2ccfa11c595be2667f0d24de1c034f747086e05
5
5
  SHA512:
6
- metadata.gz: ceed9ba1e1c855a4a38dc5a6a8c78dcdf81922969fd09a450c83443c228f62cf56b2198d516b6452d12c3f1018f2e65e3dc636756f0f8c859e2346b6859eed24
7
- data.tar.gz: 4fb3d3b40f6588d790326d43b187ddf61b275e96600543aaef84521eeb0cfc0063af8a714771cfbb289fa3396862c4bf4400a2efaf8b8d0c0f81e9036e917543
6
+ metadata.gz: 53034a59f804c982e3c36dc863567050dbb8c45bd510c09e6244c9e839d0456df681dfb3e4deb2b1b9a8d3aedb87f7aa2db0f20692aa80fde22e471d21e6b201
7
+ data.tar.gz: fb7a032b4b6f85f82cd9078ba514970fce313cf2b6dbab52689c7de8979ce69da7aa38560ba63cad1c20885e67f6980d749ff776f4f8b51dd66be42a4d918f24
data/README.md CHANGED
@@ -27,10 +27,14 @@ You can [generate](https://github.com/rundocs/starter-slim/generate) with the sa
27
27
  - Just need one file `_config.yml` to configure site
28
28
 
29
29
  ## Documents
30
- For full documentation, please refer to [rundocs.io](https://rundocs.io/), You can also view [the theme related tests documentation](https://rundocs.github.io/jekyll-rtd-theme)
30
+ For full documentation, please refer to our website ([rundocs.io](https://rundocs.io/)) for details
31
31
 
32
- ## License
33
- The theme is available as open source under the terms of the [MIT License](https://github.com/rundocs/jekyll-rtd-theme/blob/master/LICENSE).
32
+ ### test
33
+ - Latest test document: [rundocs.github.io/jekyll-rtd-theme](https://rundocs.github.io/jekyll-rtd-theme)
34
+ - Preview debug branch, please refer to [rundocs.github.io/debug](https://rundocs.github.io/debug)
35
+
36
+ ## The license
37
+ The theme is available as open source under the terms of the MIT License
34
38
 
35
39
  [repository]: https://github.com/rundocs/jekyll-rtd-theme
36
40
  [rubygem]: https://rubygems.org/gems/jekyll-rtd-theme
@@ -1,7 +1,7 @@
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
- {% if site.addons_branch and site.github_metadata != false %}v: {{ branch }}{% endif %}
4
+ {% if site.addons_branch and site.github_metadata != false %}{{ branch }}{% endif %}
5
5
  <span class="fa fa-caret-down"></span>
6
6
  </span>
7
7
  <div class="rst-other-versions">
@@ -9,6 +9,10 @@
9
9
  {% for item in items -%}
10
10
  {%- if addons contains item -%}
11
11
  {% include addons/{{ item }}.liquid %}
12
+ {%- else -%}
13
+ {%- if item.github -%}
14
+ {% include addons/github.liquid items=item.github %}
15
+ {%- endif -%}
12
16
  {%- endif -%}
13
17
  {% endfor -%}
14
18
  <hr>
@@ -1,6 +1,20 @@
1
1
  <dl>
2
2
  <dt>{{ __github }}</dt>
3
- <dd><a href="{{ repository_url }}"><i class="fa fa-github"></i> {{ __homepage }}</a></dd>
4
- <dd><a href="{{ zip_url }}"><i class="fa fa-download"></i> {{ __download }}</a></dd>
5
- <dd><a href="{{ issues_url }}"><i class="fa fa-question-circle-o"></i> {{ __issues }}</a></dd>
3
+ {%- if include.items -%}
4
+ {% for item in include.items -%}
5
+ {% case item %}
6
+ {% when "homepage" %}
7
+ <dd><a href="{{ repository_url }}"><i class="fa fa-github"></i> {{ __homepage }}</a></dd>
8
+ {% when "issues" %}
9
+ <dd><a href="{{ issues_url }}"><i class="fa fa-question-circle-o"></i> {{ __issues }}</a></dd>
10
+ {% when "download" %}
11
+ <dd><a href="{{ zip_url }}"><i class="fa fa-download"></i> {{ __download }}</a></dd>
12
+ {% else %}
13
+ {% endcase %}
14
+ {% endfor -%}
15
+ {%- else -%}
16
+ <dd><a href="{{ repository_url }}"><i class="fa fa-github"></i> {{ __homepage }}</a></dd>
17
+ <dd><a href="{{ issues_url }}"><i class="fa fa-question-circle-o"></i> {{ __issues }}</a></dd>
18
+ <dd><a href="{{ zip_url }}"><i class="fa fa-download"></i> {{ __download }}</a></dd>
19
+ {%- endif -%}
6
20
  </dl>
@@ -129,13 +129,9 @@ $(document).ready(function() {
129
129
  $('[data-toggle="wy-nav-shift"]').removeClass("shift");
130
130
  $('[data-toggle="rst-versions"]').toggleClass("shift");
131
131
  toggleCurrent($(this));
132
-
133
- $("html,body").animate({
134
- scrollTop: $(this.hash).offset().top
135
- }, 500);
136
132
  });
137
133
  $(document).on("scroll", function() {
138
- let start = $(this).scrollTop() + ($(window).height() * 0.382);
134
+ let start = $(this).scrollTop() + 5;
139
135
  let items = [];
140
136
 
141
137
  $(".document").find("h1,h2,h3,h4,h5,h6").each(function() {
@@ -167,5 +163,5 @@ $(document).ready(function() {
167
163
  $(window).bind("resize", function() {
168
164
  requestAnimationFrame(function() {});
169
165
  });
170
- $(window).bind("hashchange", (e) => initialize(location.hash || location.pathname));
166
+ $(window).bind("hashchange", () => initialize(location.hash || location.pathname));
171
167
  });
@@ -1,17 +1,19 @@
1
1
  <footer>
2
- {%- if next or prev -%}
3
- <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
4
- {%- if next -%}
5
- <a href="{{ next.url | relative_url }}" class="btn btn-neutral float-right" title="{{ next.title }}" accesskey="n" rel="next">
6
- {{- __next }} <span class="fa fa-arrow-circle-right"></span>
7
- </a>
8
- {%- endif -%}
9
- {%- if prev -%}
10
- <a href="{{ prev.url | relative_url }}" class="btn btn-neutral float-left" title="{{ prev.title }}" accesskey="p" rel="prev">
11
- <span class="fa fa-arrow-circle-left"></span> {{ __previous -}}
12
- </a>
13
- {%- endif -%}
14
- </div>
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 next -%}
6
+ <a href="{{ next.url | relative_url }}" class="btn btn-neutral float-right" title="{{ next.title }}" accesskey="n" rel="next">
7
+ {{- __next }} <span class="fa fa-arrow-circle-right"></span>
8
+ </a>
9
+ {%- endif -%}
10
+ {%- if prev -%}
11
+ <a href="{{ prev.url | relative_url }}" class="btn btn-neutral float-left" title="{{ prev.title }}" accesskey="p" rel="prev">
12
+ <span class="fa fa-arrow-circle-left"></span> {{ __previous -}}
13
+ </a>
14
+ {%- endif -%}
15
+ </div>
16
+ {%- endif -%}
15
17
  {%- endif -%}
16
18
  <hr>
17
19
  {%- if site.copyright -%}
@@ -1,5 +1,5 @@
1
1
  {%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
2
- {%- assign version = "1.1.6" -%}
2
+ {%- assign version = "1.1.7" -%}
3
3
  {%- assign addons = "github, i18n, plugins, analytics" | split: ", " -%}
4
4
 
5
5
  {%- assign schema_date = page.date | default: site.time | date_to_xmlschema -%}
@@ -63,7 +63,7 @@
63
63
  | replace: "</code></pre>", "</pre>"
64
64
  | replace: '<code class="language-plaintext highlighter-rouge">', '<code class="literal">'
65
65
  | replace: "<dl>", '<dl class="definition">'
66
- | replace: "<table>", '<div class="wy-table-responsive"><table class="docutils align-default">'
66
+ | replace: "<table>", '<div class="wy-table-responsive"><table class="docutils">'
67
67
  | replace: "</table>", '</table></div>' -%}
68
68
 
69
69
  {% comment %} prev and next {% endcomment %}
@@ -129,6 +129,9 @@ layout: plugins/compress
129
129
  {% else %}
130
130
  <a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}" class="icon icon-home"> {{ site.title }}</a>
131
131
  {% endif %}
132
+ {% if site.nav_version and site.github_metadata != false %}
133
+ <div class="version">{{ site.github.latest_release.name }}</div>
134
+ {% endif %}
132
135
  <div role="search">
133
136
  <form id="rtd-search-form" class="wy-form" action="{{ site.baseurl }}/search.html" method="get" autocomplete="off">
134
137
  <input type="text" name="q" placeholder="{{ __search_docs }}...">
@@ -156,8 +159,8 @@ layout: plugins/compress
156
159
  <div class="wy-nav-content">
157
160
  <div class="rst-content">
158
161
  {% include breadcrumbs.liquid %}
159
- <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
160
- <div itemprop="articleBody">
162
+ <div role="main" itemscope="itemscope" itemtype="http://schema.org/Article">
163
+ <div class="document" itemprop="articleBody">
161
164
  {%- if page.url == "/search.html" -%}
162
165
  {{ content }}
163
166
  {%- else -%}
@@ -77,6 +77,24 @@ footer {
77
77
  }
78
78
  }
79
79
  }
80
+ /* fixed toctree-expand icon align */
81
+ .wy-menu-vertical {
82
+ @for $toc_level from 1 through 10 {
83
+ li.toctree-l#{$toc_level}.current li.toctree-l#{$toc_level + 1} > a {
84
+ display: -webkit-flex;
85
+ display: flex;
86
+ align-items: center;
87
+
88
+ span {
89
+ padding-right: 3px;
90
+ }
91
+ }
92
+ }
93
+ }
94
+
95
+ .wy-nav-content {
96
+ max-width: 900px;
97
+ }
80
98
 
81
99
  .rst-content {
82
100
  /* fixed the long list */
@@ -96,6 +114,12 @@ footer {
96
114
  font-family: monospace;
97
115
  font-size: 12px;
98
116
  }
117
+
118
+ blockquote {
119
+ padding: 0 1em;
120
+ color: #6a737d;
121
+ border-left: 0.25em solid #dfe2e5;
122
+ }
99
123
  /* theme copyright */
100
124
  .rundocs {
101
125
  display: none;
@@ -105,8 +129,18 @@ footer {
105
129
  border: 1px solid #f1c40f;
106
130
  }
107
131
  }
108
- /* fixed the last of search results display */
132
+
133
+ .wy-table-responsive {
134
+ table td {
135
+ white-space: initial;
136
+ }
137
+ }
138
+ /* fixed search results */
109
139
  #search-results {
140
+ .context {
141
+ word-break: break-all;
142
+ }
143
+
110
144
  li:last-child {
111
145
  border-bottom: 0;
112
146
  padding-bottom: 0;
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.6
4
+ version: 1.1.7
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-24 00:00:00.000000000 Z
11
+ date: 2020-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-pages