jekyll-rtd-theme 1.1.0 → 1.1.1

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: b629411d3d74c24a69ba9ef73ece57bd3c002921eed7f78894dba51b71a24199
4
- data.tar.gz: 5b8f754497e66c35af98199a8f077e207fd259bf29c6e74111aa152b3c6323d1
3
+ metadata.gz: 195022eba0c5f3fcb99d247278f0fa8da67c554ba16829f1475d6b6bcc5ca482
4
+ data.tar.gz: 8c2081bea527becb525f1e0ec86959942e179ff49ea4ef63bbcf151e59460c88
5
5
  SHA512:
6
- metadata.gz: 3fb991c0098234c7d1c551c912d693a583bf84a507817722c38f89ca91b4812aa38919825726a8bf26fd51d81579e1a0e87e7ec3cc3897355edeca2418843e98
7
- data.tar.gz: d717925336199e3242e956b6108d9f36e438cff3f291891b27ffde8385598ed72ef7a010d145e6230125c7492adfd367021c186ddb393779b90809bcb2414d5a
6
+ metadata.gz: 539cf3a199ff035b039598609d880cd07dd6834f1c653e56f4bf4061a2989232d7b43719f35fe843ab2a0b11e6da6d7da53646b2fe81610d68ba17ce7160f3dd
7
+ data.tar.gz: d51f6474b9f776573eb16e2a599862b6fbb890a97c2c7ac8c5e62737861f3139162828246e052f899a801b063550eca190ec6e6cabeae48b526dafb0d690b248
data/README.md CHANGED
@@ -17,13 +17,13 @@ Just another documentation theme compatible with GitHub Pages, based on sphinx_r
17
17
  - Multi-language supported
18
18
  - Document search (RegExp supported)
19
19
  - Support third-party comments
20
- - Google, Baidu, CNZZ Analytics support
20
+ - Google, Baidu, CNZZ Analytics supported
21
21
 
22
22
  ## Roadmap
23
23
  See the [open issues](https://github.com/rundocs/jekyll-rtd-theme/issues) for a list of proposed features (and known issues)
24
24
 
25
25
  ## Documents
26
- You can view theme related [tests](https://jekyll-rtd-theme.rundocs.io), For full documentation, please refer to [https://rundocs.io](https://rundocs.io)
26
+ You can view theme related [tests](https://rundocs.github.io/jekyll-rtd-theme), For full documentation, please refer to [https://rundocs.io](https://rundocs.io)
27
27
 
28
28
  ## The License
29
29
  The theme is available as open source under the terms of the [MIT License](https://github.com/rundocs/jekyll-rtd-theme/blob/master/LICENSE).
@@ -2,13 +2,7 @@
2
2
  <dt>{{ __statistics }}</dt>
3
3
  <dd>
4
4
  <a href="https://github.com/rundocs/analytics" target="_blank">
5
- {{ __total_visits }} <span id="counter"></span> <i class="fa fa-eye"></i>
5
+ {{ __total_visits }} <span id="counter"><span class="progress"></span></span> <i class="fa fa-eye"></i>
6
6
  </a>
7
7
  </dd>
8
8
  </dl>
9
-
10
- <script>
11
- $(document).ready(function() {
12
- $.getJSON("https://rundocs-analytics.glitch.me/analytics?host=" + location.host, (data) => $("#counter").html(data.count));
13
- });
14
- </script>
@@ -1,4 +1,5 @@
1
1
  $(document).ready(function() {
2
+ let analytics = new URL("https://rundocs-analytics.glitch.me/collect?v={{ version }}&lang={{ lang }}");
2
3
  let highlight = new URL(location.href).searchParams.get("highlight");
3
4
 
4
5
  SphinxRtdTheme.Navigation.reset = function() {
@@ -33,8 +34,14 @@ $(document).ready(function() {
33
34
  });
34
35
  }
35
36
  for (let item in ui.admonition) {
36
- let content = $(`.language-${item}`).html();
37
- $(`.language-${item}`).replaceWith(`<div class="admonition ${item}"><p class="admonition-title">${ui.admonition[item]}</p><p>${content}</p></div>`);
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>`);
39
+ });
38
40
  }
39
41
  anchors.add();
42
+
43
+ analytics.searchParams.append("user_lang", navigator.language);
44
+ analytics.searchParams.append("host", location.host);
45
+ analytics.searchParams.append("platform", navigator.platform);
46
+ $.getJSON(analytics.toString(), (data) => $("#counter").html(data.count));
40
47
  });
@@ -1,18 +1,22 @@
1
1
  {%- include reset/workdir.liquid %}
2
2
 
3
+ {% comment %} display the directory name {% endcomment %}
3
4
  {%- assign dir = site_pages | where: "url", workdir | first -%}
4
5
  {%- if site_lang != lang -%}
6
+ {% comment %} current in language directory (level-1) {% endcomment %}
5
7
  {%- assign workdir_level = workdir_level | minus: 1 -%}
6
8
  {%- endif -%}
7
9
  {%- if workdir_level == 2 %}
10
+ {% comment %} display the root sub-directory as "p.caption" {% endcomment %}
8
11
  <p class="caption"><span class="caption-text">{{ dir.title | default: dir.url }}</span></p>
9
12
  {%- else %}
10
13
  <a class="reference internal" href="{{ dir.url | relative_url }}">{{ dir.title | default: dir.url }}</a>
11
14
  {%- endif -%}
12
15
 
13
16
  <ul>
17
+ {% comment %} list file {% endcomment %}
14
18
  {%- for item in workdir_files -%}
15
- {%- assign level = item.dir | append: "temp/" | split: "/" | size | minus: 2 -%}
19
+ {%- assign level = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 1 -%}
16
20
  {%- capture current -%}
17
21
  {%- if page.url == item.url %}current{% endif -%}
18
22
  {%- endcapture %}
@@ -30,8 +34,10 @@
30
34
  </a>
31
35
  </li>
32
36
  {%- endfor -%}
37
+
38
+ {% comment %} list dirs {% endcomment %}
33
39
  {%- for workdir in workdir_dirs -%}
34
- {%- assign level = workdir | append: "temp/" | split: "/" | size | minus: 3 %}
40
+ {%- assign level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 2 %}
35
41
  {%- if site_lang != lang -%}
36
42
  {%- assign level = level | minus: 1 -%}
37
43
  {%- endif -%}
@@ -32,6 +32,6 @@
32
32
  </div>
33
33
  {%- endif -%}
34
34
  <div role="contentinfo" class="copyright rundocs">
35
- <p>Powered by <a href="https://rundocs.io">rundocs.io</a> using the jekyll docs theme <a href="https://jekyll-rtd-theme.rundocs.io">jekyll-rtd-theme</a></p>
35
+ <p>Powered by <a href="https://rundocs.io">rundocs.io</a> using the jekyll docs theme <a href="https://rundocs.github.io/jekyll-rtd-theme">jekyll-rtd-theme</a></p>
36
36
  </div>
37
37
  </footer>
@@ -0,0 +1,29 @@
1
+ {% comment %} Spanish {% endcomment %}
2
+ {%- assign __github = "Github" -%}
3
+ {%- assign __homepage = "Página principal" -%}
4
+ {%- assign __issues = "Cuestiones" -%}
5
+ {%- assign __download = "Descargar" -%}
6
+ {%- assign __plugins = "Complementos temáticos" -%}
7
+ {%- assign __translations = "Traducciones" -%}
8
+ {%- assign __statistics = "Estadísticas" -%}
9
+ {%- assign __total_visits = "Visitas totales:" -%}
10
+
11
+ {%- assign __note = "Observaciones" -%}
12
+ {%- assign __tip = "Consejos" -%}
13
+ {%- assign __warning = "Advertencia" -%}
14
+ {%- assign __danger = "Peligro" -%}
15
+
16
+ {%- assign __next = "Siguiente página" -%}
17
+ {%- assign __previous = "Pagina anterior" -%}
18
+ {%- assign __copyright = "Derechos de autor" -%}
19
+ {%- assign __revision = "Revisión" -%}
20
+
21
+ {%- assign __404 = "404" -%}
22
+ {%- assign __not_found = "¡Esta página aún no existe!" -%}
23
+
24
+ {%- assign __searching = "Buscando" -%}
25
+ {%- assign __search = "Buscar" -%}
26
+ {%- assign __search_docs = "Buscar documentos" -%}
27
+ {%- assign __search_results = "Resultados de la búsqueda" -%}
28
+ {%- assign __search_results_found = "Búsqueda finalizada, se encontraron # páginas que coinciden con la consulta de búsqueda." -%}
29
+ {%- assign __search_results_not_found = "Su búsqueda no coincide con ningún documento, asegúrese de que todos los caracteres estén escritos correctamente." -%}
@@ -0,0 +1,29 @@
1
+ {% comment %} Swedish {% endcomment %}
2
+ {%- assign __github = "Github" -%}
3
+ {%- assign __homepage = "Hemsida" -%}
4
+ {%- assign __issues = "frågor" -%}
5
+ {%- assign __download = "Ladda ner" -%}
6
+ {%- assign __plugins = "Tema Plugins" -%}
7
+ {%- assign __translations = "översättningar" -%}
8
+ {%- assign __statistics = "Statistik" -%}
9
+ {%- assign __total_visits = "Totalt antal besök:" -%}
10
+
11
+ {%- assign __note = "Anmärkningar" -%}
12
+ {%- assign __tip = "tips" -%}
13
+ {%- assign __warning = "Varning" -%}
14
+ {%- assign __danger = "Fara" -%}
15
+
16
+ {%- assign __next = "Nästa sida" -%}
17
+ {%- assign __previous = "Föregående sida" -%}
18
+ {%- assign __copyright = "upphovsrätt" -%}
19
+ {%- assign __revision = "Revision" -%}
20
+
21
+ {%- assign __404 = "404" -%}
22
+ {%- assign __not_found = "Den här sidan finns inte ännu!" -%}
23
+
24
+ {%- assign __searching = "Sökande" -%}
25
+ {%- assign __search = "Sök" -%}
26
+ {%- assign __search_docs = "Sök i dokument" -%}
27
+ {%- assign __search_results = "sökresultat" -%}
28
+ {%- assign __search_results_found = "Sökningen är klar, hittade # sida (er) som matchar sökfrågan." -%}
29
+ {%- assign __search_results_not_found = "Din sökning matchade inga dokument, se till att alla tecken stavas korrekt!" -%}
@@ -1,9 +1,10 @@
1
1
  {%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
2
- {%- assign version = "1.1.0" -%}
2
+ {%- assign version = "1.1.1" -%}
3
3
  {%- assign addons = "github, i18n, plugins, analytics" | split: ", " -%}
4
4
 
5
- {%- assign schema_lastmod = site.time | date_to_xmlschema -%}
6
- {%- assign schema_url = page.url | absolute_url | replace: 'http://', 'https://' | xml_escape -%}
5
+ {%- assign schema_date = page.date | default: site.time | date_to_xmlschema -%}
6
+ {%- assign schema_modi = site.time | date_to_xmlschema -%}
7
+ {%- assign schema_surl = page.url | absolute_url | replace: 'http://', 'https://' | xml_escape -%}
7
8
 
8
9
  {% comment %} scss {% endcomment %}
9
10
  {%- capture site_scss -%}
@@ -8,12 +8,12 @@
8
8
  {%- endif -%}
9
9
  {%- endif -%}
10
10
 
11
- {%- assign workdir_level = workdir | append: "temp/" | split: "/" | size | minus: 1 -%}
11
+ {%- assign workdir_level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
12
12
  {%- assign workdir_files = site_files | where_exp: "item", "item.dir == workdir" -%}
13
13
 
14
14
  {%- capture items -%}
15
15
  {%- for item in site_dirs -%}
16
- {%- assign current_m1 = item.dir | append: "temp/" | split: "/" | size | minus: 2 -%}
16
+ {%- assign current_m1 = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 1 -%}
17
17
  {%- if workdir_level == current_m1 -%}
18
18
  {%- assign temp = workdir | append: "@@" -%}
19
19
  {%- assign dir = item.dir | replace: workdir, temp | split: "@@" | first -%}
@@ -1,8 +1,12 @@
1
1
  {%- include reset/workdir.liquid %}
2
2
 
3
+ {% comment %} list the root files {% endcomment %}
3
4
  <ul>
4
5
  {%- for item in workdir_files -%}
5
- {%- assign level = item.dir | append: "temp/" | split: "/" | size | minus: 1 -%}
6
+ {%- assign level = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
7
+ {%- if site_lang != lang -%}
8
+ {%- assign level = level | minus: 1 -%}
9
+ {%- endif -%}
6
10
  {%- capture current -%}
7
11
  {%- if page.url == item.url %}current{% endif -%}
8
12
  {%- endcapture %}
@@ -14,4 +18,5 @@
14
18
  {%- endfor %}
15
19
  </ul>
16
20
 
21
+ {% comment %} list the root dirs {% endcomment %}
17
22
  {%- for workdir in workdir_dirs %}{% include extend/toctree.liquid %}{% endfor -%}
@@ -41,14 +41,16 @@ layout: plugins/compress
41
41
  <meta name="author" content="{{ author }}">
42
42
  <meta name="revised" content="{{ commit }}">
43
43
  <meta name="generator" content="jekyll-rtd-theme v{{ version }}">
44
- <!-- meta-og -->
44
+ <!-- meta-ogp -->
45
+ {% comment %} https://ogp.me {% endcomment %}
45
46
  <meta property="og:title" content="{{ title }}">
46
47
  <meta property="og:description" content="{{ description }}">
47
48
  <meta property="og:locale" content="{{ lang }}">
48
- <meta property="og:url" content="{{ schema_url }}">
49
+ <meta property="og:url" content="{{ schema_surl }}">
49
50
  <meta property="og:type" content="article">
50
51
  <meta property="article:author" content="{{ author }}">
51
- <meta property="article:modified_time" content="{{ schema_lastmod }}">
52
+ <meta property="article:published_time" content="{{ schema_date }}">
53
+ <meta property="article:modified_time" content="{{ schema_modi }}">
52
54
  <!-- meta-custom -->
53
55
  {% for meta in site.meta -%}
54
56
  <meta name="{{ meta.first }}" content="{{ meta.last }}">
@@ -60,7 +62,7 @@ layout: plugins/compress
60
62
  "@type": "Article",
61
63
  "mainEntityOfPage": {
62
64
  "@type": "WebPage",
63
- "@id": "{{ schema_url }}"
65
+ "@id": "{{ schema_surl }}"
64
66
  },
65
67
  "headline": "{{ title | truncate: 110 }}",
66
68
  "image": [{% for image in page.images %}"{{ image }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
@@ -68,8 +70,8 @@ layout: plugins/compress
68
70
  "@type": "Person",
69
71
  "name": "{{ author }}"
70
72
  },
71
- "datePublished": "{{ page.date | default: site.time | date_to_xmlschema }}",
72
- "dateModified": "{{ schema_lastmod }}",
73
+ "datePublished": "{{ schema_date }}",
74
+ "dateModified": "{{ schema_modi }}",
73
75
  "publisher": {
74
76
  "@type": "Organization",
75
77
  "name": "RunDocs",
@@ -82,7 +84,7 @@ layout: plugins/compress
82
84
  }
83
85
  </script>
84
86
  <!-- link -->
85
- <link rel="canonical" href="{{ schema_url }}">
87
+ <link rel="canonical" href="{{ schema_surl }}">
86
88
  {% if prev %}<link rel="prev" href="{{ prev.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
87
89
  {% if next %}<link rel="next" href="{{ next.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
88
90
  <!-- theme -->
@@ -90,7 +92,7 @@ layout: plugins/compress
90
92
  <link rel="stylesheet" href="{{ cdn }}/assets/css/rougify/{{ site.rougify | default: 'github' }}.css">
91
93
  <style>{{ site_scss | scssify }}</style>
92
94
  <!-- icon -->
93
- <link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
95
+ <link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/favicon.svg">
94
96
  <!-- script -->
95
97
  <!--[if lt IE 9]><script src="{{ cdn }}/assets/js/html5shiv.min.js"></script><![endif]-->
96
98
  <script src="{{ cdn }}/assets/js/jquery.min.js"></script>
@@ -11,6 +11,20 @@ footer {
11
11
  text-align: center;
12
12
  }
13
13
  }
14
+ /* from glitch */
15
+ .progress:after {
16
+ display: inline-block;
17
+ content: "\2026";
18
+ width: 0;
19
+ overflow: hidden;
20
+ vertical-align: bottom;
21
+ animation: ellipsis steps(4, end) 1000ms infinite;
22
+ }
23
+ @keyframes ellipsis {
24
+ to {
25
+ width: 1.25em;
26
+ }
27
+ }
14
28
  /* breadcrumbs icon */
15
29
  .fa-angle-double-right {
16
30
  font-size: 13px;
@@ -1,6 +1,6 @@
1
1
  ---
2
- permalink: /404.html
3
2
  layout: default
3
+ permalink: /404.html
4
4
  ---
5
5
 
6
6
  {%- include reset/i18n.liquid -%}
@@ -1,5 +1,10 @@
1
+ ---
2
+ layout: plugins/compress
3
+ permalink: /favicon.svg
4
+ ---
5
+
6
+ {% comment %} material-design-icons article {% endcomment %}
1
7
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#2980b9" width="36px" height="36px">
2
8
  <path d="M0 0h24v24H0z" fill="none"/>
3
9
  <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/>
4
10
  </svg>
5
- <!-- material-design-icons article -->
File without changes
File without changes
@@ -1,13 +1,13 @@
1
1
  ---
2
- permalink: /search.html
3
2
  layout: default
3
+ permalink: /search.html
4
4
  ---
5
5
 
6
6
  {%- include reset/site_pages.liquid -%}
7
7
  {%- include reset/i18n.liquid -%}
8
8
 
9
9
  <div id="search-results">
10
- <h2>{{ __searching }}<span>...</span></h2>
10
+ <h2>{{ __searching }}<span class="progress"></span></h2>
11
11
  <p class="search-summary"></p>
12
12
  <ul class="search"></ul>
13
13
  </div>
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.0
4
+ version: 1.1.1
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-10 00:00:00.000000000 Z
11
+ date: 2020-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-pages
@@ -49,11 +49,13 @@ files:
49
49
  - _includes/extend/toctree.liquid
50
50
  - _includes/footer.liquid
51
51
  - _includes/i18n/en.liquid
52
+ - _includes/i18n/es.liquid
52
53
  - _includes/i18n/fr.liquid
53
54
  - _includes/i18n/it.liquid
54
55
  - _includes/i18n/ja.liquid
55
56
  - _includes/i18n/ko.liquid
56
57
  - _includes/i18n/ru.liquid
58
+ - _includes/i18n/sv.liquid
57
59
  - _includes/i18n/zh-cn.liquid
58
60
  - _includes/list.liquid
59
61
  - _includes/reset/defaults.liquid
@@ -110,13 +112,13 @@ files:
110
112
  - assets/css/rougify/thankful_eyes.css
111
113
  - assets/css/rougify/tulip.css
112
114
  - assets/css/theme.css
113
- - assets/favicon.svg
115
+ - assets/favicon.liquid
114
116
  - assets/js/anchor.min.js
115
117
  - assets/js/html5shiv.min.js
116
118
  - assets/js/jquery.min.js
117
119
  - assets/js/theme.js
118
- - assets/pages.json
119
- - assets/robots.txt
120
+ - assets/pages.liquid
121
+ - assets/robots.liquid
120
122
  - assets/search.liquid
121
123
  - assets/sitemap.liquid
122
124
  homepage: https://github.com/rundocs/jekyll-rtd-theme