jekyll-rtd-theme 1.1.3 → 2.0.0.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -12
  3. data/_includes/addons/analytics.liquid +5 -2
  4. data/_includes/addons/github.liquid +16 -4
  5. data/_includes/assets/sw.caches.js +43 -0
  6. data/_includes/breadcrumbs.liquid +20 -36
  7. data/_includes/extend/toctree.liquid +6 -15
  8. data/_includes/footer.liquid +31 -32
  9. data/_includes/reset/defaults.liquid +4 -36
  10. data/_includes/reset/workdir.liquid +1 -14
  11. data/_includes/safe/shortcodes.liquid +9 -0
  12. data/_includes/shortcodes/danger.liquid +7 -0
  13. data/_includes/shortcodes/mermaid.liquid +1 -0
  14. data/_includes/shortcodes/note.liquid +7 -0
  15. data/_includes/shortcodes/tip.liquid +7 -0
  16. data/_includes/shortcodes/warning.liquid +7 -0
  17. data/_includes/toctree.liquid +7 -6
  18. data/_layouts/default.liquid +99 -141
  19. data/_layouts/plugins/compress.liquid +13 -10
  20. data/_layouts/plugins/extension.liquid +30 -22
  21. data/_sass/@primer/base/base.scss +90 -0
  22. data/_sass/@primer/base/index.scss +6 -0
  23. data/_sass/@primer/base/kbd.scss +21 -0
  24. data/_sass/@primer/base/normalize.scss +423 -0
  25. data/_sass/@primer/base/typography-base.scss +100 -0
  26. data/_sass/@primer/breadcrumb/breadcrumb.scss +28 -0
  27. data/_sass/@primer/breadcrumb/index.scss +3 -0
  28. data/_sass/@primer/buttons/button-group.scss +91 -0
  29. data/_sass/@primer/buttons/button.scss +296 -0
  30. data/_sass/@primer/buttons/index.scss +4 -0
  31. data/_sass/@primer/buttons/misc.scss +205 -0
  32. data/_sass/@primer/forms/form-control.scss +278 -0
  33. data/_sass/@primer/forms/form-group.scss +279 -0
  34. data/_sass/@primer/forms/form-select.scss +38 -0
  35. data/_sass/@primer/forms/form-validation.scss +369 -0
  36. data/_sass/@primer/forms/index.scss +7 -0
  37. data/_sass/@primer/forms/input-group.scss +53 -0
  38. data/_sass/@primer/forms/radio-group.scss +43 -0
  39. data/_sass/@primer/markdown/blob-csv.scss +31 -0
  40. data/_sass/@primer/markdown/code.scss +73 -0
  41. data/_sass/@primer/markdown/headings.scss +72 -0
  42. data/_sass/@primer/markdown/images.scss +131 -0
  43. data/_sass/@primer/markdown/index.scss +8 -0
  44. data/_sass/@primer/markdown/lists.scss +76 -0
  45. data/_sass/@primer/markdown/markdown-body.scss +99 -0
  46. data/_sass/@primer/markdown/tables.scss +38 -0
  47. data/_sass/@primer/support/index.scss +11 -0
  48. data/_sass/@primer/support/mixins/buttons.scss +184 -0
  49. data/_sass/@primer/support/mixins/layout.scss +55 -0
  50. data/_sass/@primer/support/mixins/misc.scss +32 -0
  51. data/_sass/@primer/support/mixins/typography.scss +88 -0
  52. data/_sass/@primer/support/variables/color-system.scss +243 -0
  53. data/_sass/@primer/support/variables/colors.scss +55 -0
  54. data/_sass/@primer/support/variables/layout.scss +149 -0
  55. data/_sass/@primer/support/variables/misc.scss +42 -0
  56. data/_sass/@primer/support/variables/typography.scss +43 -0
  57. data/_sass/@primer/utilities/animations.scss +187 -0
  58. data/_sass/@primer/utilities/borders.scss +184 -0
  59. data/_sass/@primer/utilities/box-shadow.scss +25 -0
  60. data/_sass/@primer/utilities/colors.scss +185 -0
  61. data/_sass/@primer/utilities/details.scss +34 -0
  62. data/_sass/@primer/utilities/flexbox.scss +121 -0
  63. data/_sass/@primer/utilities/index.scss +14 -0
  64. data/_sass/@primer/utilities/layout.scss +134 -0
  65. data/_sass/@primer/utilities/margin.scss +68 -0
  66. data/_sass/@primer/utilities/padding.scss +59 -0
  67. data/_sass/@primer/utilities/typography.scss +325 -0
  68. data/_sass/@primer/utilities/visibility-display.scss +82 -0
  69. data/_sass/_font-face.scss +65 -0
  70. data/_sass/_icons.scss +53 -0
  71. data/_sass/_layout.scss +76 -0
  72. data/_sass/_reset.scss +21 -0
  73. data/_sass/_root.scss +9 -0
  74. data/_sass/_variables.scss +29 -0
  75. data/_sass/class/addons-wrap.scss +39 -0
  76. data/_sass/class/container.scss +11 -0
  77. data/_sass/class/content-wrap.scss +4 -0
  78. data/_sass/class/header.scss +10 -0
  79. data/_sass/class/highlight.scss +214 -0
  80. data/_sass/class/markdown-body.scss +49 -0
  81. data/_sass/class/sidebar-wrap.scss +72 -0
  82. data/_sass/class/title.scss +13 -0
  83. data/_sass/theme.scss +29 -0
  84. data/assets/404.liquid +2 -4
  85. data/assets/css/theme.min.css +1 -0
  86. data/assets/css/theme.scss +4 -0
  87. data/assets/js/mermaid.min.js +6 -5
  88. data/assets/js/search.js +90 -0
  89. data/assets/js/theme.js +228 -1
  90. data/assets/js/theme.min.js +1 -0
  91. data/assets/robots.liquid +1 -1
  92. data/assets/search.liquid +5 -12
  93. data/assets/sitemap.liquid +1 -1
  94. data/assets/sw.caches.liquid +8 -0
  95. metadata +80 -54
  96. data/_includes/addons.liquid +0 -24
  97. data/_includes/addons/i18n.liquid +0 -13
  98. data/_includes/addons/plugins.liquid +0 -6
  99. data/_includes/album.liquid +0 -7
  100. data/_includes/assets/common.js +0 -62
  101. data/_includes/assets/custom.js +0 -0
  102. data/_includes/assets/custom.scss +0 -0
  103. data/_includes/assets/search.js +0 -76
  104. data/_includes/i18n/en.liquid +0 -29
  105. data/_includes/i18n/es.liquid +0 -29
  106. data/_includes/i18n/fr.liquid +0 -29
  107. data/_includes/i18n/it.liquid +0 -29
  108. data/_includes/i18n/ja.liquid +0 -29
  109. data/_includes/i18n/ko.liquid +0 -29
  110. data/_includes/i18n/ru.liquid +0 -29
  111. data/_includes/i18n/sv.liquid +0 -29
  112. data/_includes/i18n/zh-cn.liquid +0 -29
  113. data/_includes/reset/i18n.liquid +0 -31
  114. data/_includes/reset/languages.liquid +0 -110
  115. data/_sass/_album.scss +0 -19
  116. data/_sass/_embed.scss +0 -23
  117. data/_sass/fluid.scss +0 -7
  118. data/_sass/jekyll-rtd-theme.scss +0 -128
  119. data/assets/css/rougify/base16.css +0 -1
  120. data/assets/css/rougify/base16.dark.css +0 -1
  121. data/assets/css/rougify/base16.light.css +0 -1
  122. data/assets/css/rougify/base16.monokai.css +0 -1
  123. data/assets/css/rougify/base16.monokai.dark.css +0 -1
  124. data/assets/css/rougify/base16.monokai.light.css +0 -1
  125. data/assets/css/rougify/base16.solarized.css +0 -1
  126. data/assets/css/rougify/base16.solarized.dark.css +0 -1
  127. data/assets/css/rougify/base16.solarized.light.css +0 -1
  128. data/assets/css/rougify/bw.css +0 -1
  129. data/assets/css/rougify/colorful.css +0 -1
  130. data/assets/css/rougify/github.css +0 -1
  131. data/assets/css/rougify/gruvbox.css +0 -1
  132. data/assets/css/rougify/gruvbox.dark.css +0 -1
  133. data/assets/css/rougify/gruvbox.light.css +0 -1
  134. data/assets/css/rougify/igorpro.css +0 -1
  135. data/assets/css/rougify/magritte.css +0 -1
  136. data/assets/css/rougify/molokai.css +0 -1
  137. data/assets/css/rougify/monokai.css +0 -1
  138. data/assets/css/rougify/monokai.sublime.css +0 -1
  139. data/assets/css/rougify/pastie.css +0 -1
  140. data/assets/css/rougify/thankful_eyes.css +0 -1
  141. data/assets/css/rougify/tulip.css +0 -1
  142. data/assets/css/theme.css +0 -4
  143. data/assets/js/anchor.min.js +0 -9
  144. data/assets/js/html5shiv.min.js +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17d21728bc57e4cf176a94b347ec1fa282bc3330a2fb1fafd4fae290a81c6f9a
4
- data.tar.gz: 5b7a0c810f57c8c819e5eb204e05fb9a364c7ab917b8a261c3764b060901cac1
3
+ metadata.gz: 15185d69e5df3312de8226fdf843da12d6f1cbc754a0b439c0be998be05fe524
4
+ data.tar.gz: ede7f10389e609983db0b3429ad717366016205c4c19447fe2db68056596d7b1
5
5
  SHA512:
6
- metadata.gz: 25d5137a9c12bfcae20f06eccf5a63f6468be384a7e8e3d2449da2d6a042a0f57a4aef8e5238ff69328103ae85328b5f5382360de935ae712c3b2ad2082777b7
7
- data.tar.gz: c98a582a2bf2f770e4d167242983832fdb3443a74d7428deee6db8cf809f04dacb8b24862e439e25ffff83cd34035ff0283a56017419312797a3b99488d15c44
6
+ metadata.gz: 1dc680274eb05e270130ec057f902794f53b622af56dfe222d194d53d0fc90e3598c16d52c0b7cf84b71f53406d81fd480be150f06c54ee3228a9fbafae49037
7
+ data.tar.gz: 611d1d5a0752e19bb708b55f3f878a1747f447e5348f7b8b98265befe6af025482275b5babfe042e7e7d21cda4140d6a900208fae9ba0f2fe2287a8a6553e70d
data/README.md CHANGED
@@ -1,23 +1,20 @@
1
1
  # jekyll-rtd-theme
2
- [![](https://github.com/rundocs/jekyll-rtd-theme/workflows/CI/badge.svg)][repository]
3
- [![](https://img.shields.io/gem/v/jekyll-rtd-theme)][rubygem]
4
- [![](https://img.shields.io/gem/dt/jekyll-rtd-theme)][rubygem]
5
- [![](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)][cdn]
6
- [![](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme/badge)][codefactor]
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]
9
2
 
10
- GitHub-flavored docs theme for Jekyll, based on sphinx_rtd_theme
3
+ [![CI](https://github.com/rundocs/jekyll-rtd-theme/workflows/CI/badge.svg)][repository]
4
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)][cdn]
11
5
 
12
- <img class="shadow-box" width="50%" alt="jekyll-rtd-theme" src="https://user-images.githubusercontent.com/68011645/89026666-ad3a8680-d35b-11ea-9f4b-d3fe26ae12ed.png">
6
+ Opinionated github flavored documentation theme for open source projects
13
7
 
14
8
  ## Quick start
9
+
15
10
  ```yml
16
11
  remote_theme: rundocs/jekyll-rtd-theme
17
12
  ```
13
+
18
14
  You can [generate](https://github.com/rundocs/starter-slim/generate) with the same files and folders from [rundocs/starter-slim](https://github.com/rundocs/starter-slim/)
19
15
 
20
16
  ## Features
17
+
21
18
  - Automatically generate nested sidebar based on directory
22
19
  - Multi-language supported
23
20
  - Search engine optimized
@@ -27,10 +24,17 @@ You can [generate](https://github.com/rundocs/starter-slim/generate) with the sa
27
24
  - Just need one file `_config.yml` to configure site
28
25
 
29
26
  ## 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)
31
27
 
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).
28
+ For full documentation, please refer to our website ([rundocs.io](https://rundocs.io/)) for details
29
+
30
+ ### test
31
+
32
+ - Latest test document: [rundocs.github.io/jekyll-rtd-theme](https://rundocs.github.io/jekyll-rtd-theme)
33
+ - Preview debug branch, please refer to [rundocs.github.io/debug](https://rundocs.github.io/debug)
34
+
35
+ ## The license
36
+
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,8 +1,11 @@
1
1
  <dl>
2
- <dt>{{ __statistics }}</dt>
2
+ <dt>{{ site.data.translate.statistics | default: "Statistics" }}</dt>
3
3
  <dd>
4
4
  <a href="https://github.com/rundocs/analytics" target="_blank">
5
- {{ __total_visits }} <span id="counter"><span class="progress"></span></span> <i class="fa fa-eye"></i>
5
+ {{ site.data.translate.total_visits | default: "Total visits" }}:
6
+ <span id="counter">
7
+ <span class="progress"></span>
8
+ </span>
6
9
  </a>
7
10
  </dd>
8
11
  </dl>
@@ -1,6 +1,18 @@
1
1
  <dl>
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>
2
+ <dt>{{ site.data.translate.github | default: "GitHub" }}</dt>
3
+ <dd>
4
+ <a href="{{ site.github.repository_url }}">
5
+ <i class="fa fa-github"></i> {{ site.data.translate.homepage | default: "HomePage" }}
6
+ </a>
7
+ </dd>
8
+ <dd>
9
+ <a href="{{ site.github.issues_url }}">
10
+ <i class="fa fa-question-circle-o"></i> {{ site.data.translate.issues | default: "Issues" }}
11
+ </a>
12
+ </dd>
13
+ <dd>
14
+ <a href="{{ site.github.zip_url }}">
15
+ <i class="fa fa-download"></i> {{ site.data.translate.download | default: "Download" }}
16
+ </a>
17
+ </dd>
6
18
  </dl>
@@ -0,0 +1,43 @@
1
+ self.addEventListener("activate", function (event) {
2
+ let cacheWhitelist = ["rundocs-{{ version }}"];
3
+
4
+ event.waitUntil(
5
+ caches.keys().then(function (keyList) {
6
+ return Promise.all(
7
+ keyList.map(function (key) {
8
+ if (cacheWhitelist.indexOf(key) === -1) {
9
+ return caches.delete(key);
10
+ }
11
+ })
12
+ );
13
+ })
14
+ );
15
+ });
16
+
17
+ self.addEventListener("fetch", function (e) {
18
+ if (
19
+ /^https:\/\/cdn\.jsdelivr\.net\/gh\/rundocs\/jekyll-rtd-theme@.+/.exec(
20
+ e.request.url
21
+ )
22
+ ) {
23
+ e.respondWith(
24
+ caches.match(e.request).then(function (resp) {
25
+ if (resp !== undefined) {
26
+ return resp;
27
+ } else {
28
+ return fetch(e.request, {
29
+ cache: "no-store",
30
+ })
31
+ .then(function (resp) {
32
+ let clone = resp.clone();
33
+ caches.open("rundocs-{{ version }}").then(function (cache) {
34
+ cache.put(e.request, clone);
35
+ });
36
+ return resp;
37
+ })
38
+ .catch(console.log);
39
+ }
40
+ })
41
+ );
42
+ }
43
+ });
@@ -1,43 +1,27 @@
1
- <div role="navigation" aria-label="breadcrumbs navigation">
2
- <ul class="wy-breadcrumbs">
3
- <li>
4
- <a href="{{ site.baseurl }}/" class="icon icon-home"></a><i class="fa fa-angle-double-right"></i>
1
+ <div class="navigation-top d-flex flex-justify-between">
2
+ <ul class="breadcrumb" role="navigation" aria-label="breadcrumbs navigation">
3
+ <li class="breadcrumb-item">
4
+ <a href="{{ site.baseurl }}/" title="{{ site.github.source.branch }}"><i class="fa fa-home"></i></a>
5
5
  </li>
6
6
  {%- case page.url -%}
7
- {%- when "/search.html" %}
8
- <li>{{ __search }}</li>
9
- {%- when "/404.html" %}
10
- <li>{{ __404 }}</li>
7
+ {%- when "/search.html" -%}
8
+ <li class="breadcrumb-item" aria-current="page">{{ site.data.translate.search | default: "Search" }}</li>
9
+ {%- when "/404.html" -%}
10
+ <li class="breadcrumb-item" aria-current="page">404</li>
11
11
  {%- else -%}
12
12
  {%- assign blocks = page.path | split: "/" -%}
13
- {%- assign length = blocks | size -%}
14
- {%- if page.dir == page.url and page.url != "/" -%}
15
- {%- assign length = blocks | size | minus: 1 -%}
16
- {%- endif -%}
17
- {%- for block in blocks limit: length -%}
18
- {%- if forloop.last %}
19
- <li>{{ page.title }}</li>
20
- {%- else -%}
21
- {%- capture href -%}
22
- {{ site.baseurl }}/{% for block in blocks limit: forloop.index %}{{ block | append: "/" }}{% endfor %}
23
- {%- endcapture %}
24
- <li>
25
- <a href="{{ href }}">
26
- {%- if block == lang -%}
27
- {{ block }}
28
- {%- else -%}
29
- {{ block | capitalize }}
30
- {%- endif -%}
31
- </a><i class="fa fa-angle-double-right"></i>
32
- </li>
33
- {%- endif -%}
13
+ {%- for block in blocks -%}
14
+ <li class="breadcrumb-item" {% if forloop.last %}aria-current{% endif %}>
15
+ {%- if forloop.last -%}
16
+ {{ page.name }}
17
+ {%- else -%}
18
+ <a href="{{ site.baseurl }}/{% for block in blocks limit: forloop.index %}{{ block }}/{% endfor %}">{{ block }}</a>
19
+ {%- endif -%}
20
+ </li>
34
21
  {%- endfor -%}
35
- {%- endcase %}
36
- {%- if site.edit and site.github_metadata != false -%}
37
- <li class="wy-breadcrumbs-aside">
38
- <a href="{{ github_edit_link }}" class="fa fa-edit" target="_blank"></a>
39
- </li>
40
- {%- endif -%}
22
+ {%- endcase -%}
41
23
  </ul>
42
- <hr>
24
+ <a class="edit" href="{% github_edit_link %}" title="{{ site.data.translate.edit | default: 'Edit on GitHub'}}" target="_blank">
25
+ <i class="fa fa-edit"></i>
26
+ </a>
43
27
  </div>
@@ -2,15 +2,12 @@
2
2
 
3
3
  {% comment %} display the directory name {% endcomment %}
4
4
  {%- assign dir = site_pages | where: "url", workdir | first -%}
5
- {%- if site_lang != lang -%}
6
- {% comment %} current in language directory (level-1) {% endcomment %}
7
- {%- assign workdir_level = workdir_level | minus: 1 -%}
8
- {%- endif -%}
5
+
9
6
  {%- if workdir_level == 2 %}
10
7
  {% comment %} display the root sub-directory as "p.caption" {% endcomment %}
11
- <p class="caption"><span class="caption-text">{{ dir.title | default: dir.url }}</span></p>
8
+ <p class="caption text-uppercase no-wrap px-2 mb-0">{{ dir.title | default: dir.url }}</p>
12
9
  {%- else %}
13
- <a class="reference internal" href="{{ dir.url | relative_url }}">{{ dir.title | default: dir.url }}</a>
10
+ <a class="d-flex" href="{{ dir.url | relative_url }}">{{ dir.title | default: dir.url }}</a>
14
11
  {%- endif -%}
15
12
 
16
13
  <ul>
@@ -20,12 +17,9 @@
20
17
  {%- capture current -%}
21
18
  {%- if page.url == item.url %}current{% endif -%}
22
19
  {%- endcapture %}
23
- {%- if site_lang != lang -%}
24
- {%- assign level = level | minus: 1 -%}
25
- {%- endif -%}
26
20
 
27
- <li class="toctree-l{{ level }} {{ current }}">
28
- <a class="reference internal {{ current }}" href="{{ item.url | relative_url }}">
21
+ <li class="toc level-{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
22
+ <a class="d-flex {{ current }}" href="{{ item.url | relative_url }}">
29
23
  {%- if item.sort and site.show_sorted != false -%}
30
24
  {{ item.sort }}. {{ item.title | default: item.url }}
31
25
  {%- else -%}
@@ -38,9 +32,6 @@
38
32
  {% comment %} list dirs {% endcomment %}
39
33
  {%- for workdir in workdir_dirs -%}
40
34
  {%- assign level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 2 %}
41
- {%- if site_lang != lang -%}
42
- {%- assign level = level | minus: 1 -%}
43
- {%- endif -%}
44
- <li class="toctree-l{{ level }}">{% include extend/toctree.liquid %}</li>
35
+ <li class="toc level-{{ level }}">{% include extend/toctree.liquid %}</li>
45
36
  {%- endfor -%}
46
37
  </ul>
@@ -1,37 +1,36 @@
1
- <footer>
1
+ {% comment %} prev and next {% endcomment %}
2
+ {%- if page.url != "/search.html" and page.url != "/404.html" -%}
2
3
  {%- 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>
15
- {%- endif -%}
16
- <hr>
17
- {%- if site.copyright -%}
18
- <div role="contentinfo" class="copyright">
19
- <p>
20
- <i class="fa fa-copyright"></i> {{ __copyright }}
21
- {% if site.copyright.since -%}
22
- {{ site.copyright.since | append: "-" }}
4
+ <div class="navigation-bottom d-flex flex-justify-between py-3" role="navigation" aria-label="footer navigation">
5
+ <div class="prev">
6
+ {%- if prev -%}
7
+ <a href="{{ prev.url | relative_url }}" class="btn" title="{{ prev.title }}" accesskey="p" rel="prev">
8
+ <i class="fa fa-arrow-circle-left"></i> {{ site.data.translate.previous | default: "Previous" }}
9
+ </a>
23
10
  {%- endif -%}
24
- {{ site.time | date: "%Y" }},
25
- {{ author }}
26
- {% if site.copyright.revision and site.github_metadata != false -%}
27
- <span class="commit">
28
- {{ __revision }} <code>{{ commit }}</code>
29
- </span>
11
+ </div>
12
+ <div class="next">
13
+ {%- if next -%}
14
+ <a href="{{ next.url | relative_url }}" class="btn" title="{{ next.title }}" accesskey="n" rel="next">
15
+ {{ site.data.translate.next | default: "Next" }} <i class="fa fa-arrow-circle-right"></i>
16
+ </a>
30
17
  {%- endif -%}
31
- </p>
18
+ </div>
32
19
  </div>
33
20
  {%- endif -%}
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://rundocs.github.io/jekyll-rtd-theme">jekyll-rtd-theme</a></p>
36
- </div>
37
- </footer>
21
+ {%- endif -%}
22
+
23
+ <hr>
24
+
25
+ <div class="copyright text-center text-gray" role="contentinfo">
26
+ <i class="fa fa-copyright"></i>
27
+ {%- if site.rundocs.since %}{{ site.rundocs.since }}-{% endif -%}
28
+ {{- site.time | date: "%Y" }},
29
+ <a class="text-gray" href="{{ site.github.owner_url }}" target="_blank">
30
+ {{ site.github.owner_name }}
31
+ </a>
32
+ {{ site.data.translate.revision | default: "Revision" }}
33
+ <a class="text-gray" href="{{ site.github.repository_url }}/commit/{{ site.github.build_revision }}" title="{{ site.github.build_revision }}" target="_blank">
34
+ {{ site.github.build_revision | slice: 0, 7 }}
35
+ </a>
36
+ </div>
@@ -1,17 +1,9 @@
1
1
  {%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
2
- {%- assign version = "1.1.3" -%}
3
- {%- assign addons = "github, i18n, plugins, analytics" | split: ", " -%}
2
+ {%- assign version = "2.0.0-beta" -%}
4
3
 
5
4
  {%- assign schema_date = page.date | default: site.time | date_to_xmlschema -%}
6
5
  {%- assign schema_modi = site.time | date_to_xmlschema -%}
7
- {%- assign schema_surl = page.url | absolute_url | replace: 'http://', 'https://' | xml_escape -%}
8
-
9
- {% comment %} scss {% endcomment %}
10
- {%- capture site_scss -%}
11
- @import "jekyll-rtd-theme.scss";
12
- {% if site.fluid %}@import "fluid.scss";{% endif %}
13
- {% include assets/custom.scss %} {{ site.scss }}
14
- {%- endcapture -%}
6
+ {%- assign schema_surl = page.url | absolute_url | xml_escape -%}
15
7
 
16
8
  {% comment %} cdn {% endcomment %}
17
9
  {%- if site.debug -%}
@@ -20,28 +12,7 @@
20
12
  {%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
21
13
  {%- endif -%}
22
14
 
23
- {% comment %} github-metadata {% endcomment %}
24
- {%- if site.github_metadata != false -%}
25
- {%- assign author = site.author | default: site.github.owner_name -%}
26
- {%- assign branch = site.github.source.branch -%}
27
- {%- assign commit = site.github.build_revision | slice: 0, 7 -%}
28
- {%- assign repository_url = site.github.repository_url -%}
29
- {%- assign issues_url = site.github.issues_url -%}
30
- {%- assign zip_url = site.github.zip_url -%}
31
- {%- capture github_edit_link %}{% github_edit_link %}{% endcapture -%}
32
- {%- else -%}
33
- {%- assign author = site.author -%}
34
- {%- assign branch = "" -%}
35
- {%- assign commit = "" -%}
36
- {%- assign repository_url = "" -%}
37
- {%- assign issues_url = "" -%}
38
- {%- assign zip_url = "" -%}
39
- {%- assign github_edit_link = "" -%}
40
- {%- assign addons = "i18n, plugins, analytics" | split: ", " -%}
41
- {%- endif -%}
42
-
43
15
  {%- include reset/site_pages.liquid %}
44
- {%- include reset/i18n.liquid -%}
45
16
 
46
17
  {% comment %} title {% endcomment %}
47
18
  {%- case page.url -%}
@@ -58,11 +29,8 @@
58
29
  {% comment %} content {% endcomment %}
59
30
  {%- assign content = content
60
31
  | replace: '’', "'"
61
- | replace: '<pre class="highlight"><code>', "<pre>"
62
- | replace: '<pre><code class=', "<pre class="
63
- | replace: "</code></pre>", "</pre>"
64
- | replace: '<code class="language-plaintext highlighter-rouge">', '<code class="literal">'
65
- | replace: "<table>", '<table class="docutils align-default">' -%}
32
+ | replace: "highlighter-rouge", "highlighter-rouge notranslate" -%}
33
+
66
34
 
67
35
  {% comment %} prev and next {% endcomment %}
68
36
  {%- assign workdir_files = site_files | where_exp: "item", "item.dir == page.dir" -%}
@@ -1,13 +1,6 @@
1
1
  {% comment %} Start from the language chapter(eg: en-us) or root(/) {% endcomment %}
2
2
  {%- assign workdir = include.workdir | default: "/" -%}
3
3
 
4
- {%- if page.dir != "/" -%}
5
- {%- assign chapter = page.dir | remove_first: "/" | split: "/" | first -%}
6
- {%- if languages contains chapter -%}
7
- {%- capture workdir %}/{{ chapter }}/{% endcapture -%}
8
- {%- endif -%}
9
- {%- endif -%}
10
-
11
4
  {%- assign workdir_level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
12
5
  {%- assign workdir_files = site_files | where_exp: "item", "item.dir == workdir" -%}
13
6
 
@@ -19,13 +12,7 @@
19
12
  {%- assign dir = item.dir | replace: workdir, temp | split: "@@" | first -%}
20
13
  {% comment %} In the current subdirectory {% endcomment %}
21
14
  {%- if workdir == dir -%}
22
- {% comment %} Root directory does not display other languages {% endcomment %}
23
- {%- if workdir == "/" -%}
24
- {%- assign language = item.dir | replace: "/", "" -%}
25
- {%- unless languages contains language %}{{ item.dir }}|{% endunless -%}
26
- {%- else -%}
27
- {{ item.dir }}|
28
- {%- endif -%}
15
+ {{ item.dir }}|
29
16
  {%- endif -%}
30
17
  {%- endif -%}
31
18
  {%- endfor -%}
@@ -0,0 +1,9 @@
1
+ {%- capture safe_list -%}
2
+ mermaid
3
+ note
4
+ tip
5
+ warning
6
+ danger
7
+ {%- endcapture -%}
8
+
9
+ {%- assign shortcodes = safe_list | split: " " -%}
@@ -0,0 +1,7 @@
1
+ <div class="admonition danger">
2
+ <p class="admonition-title" ui="danger">
3
+ <i class="fas fa-exclamation-circle"></i>
4
+ <span class="progress"></span>
5
+ </p>
6
+ {{ codes | markdownify | strip_newlines -}}
7
+ </div>
@@ -0,0 +1 @@
1
+ <div class="mermaid overflow-x-auto">{{ codes }}</div>
@@ -0,0 +1,7 @@
1
+ <div class="admonition note">
2
+ <p class="admonition-title" ui="note">
3
+ <i class="fas fa-exclamation-circle"></i>
4
+ <span class="progress"></span>
5
+ </p>
6
+ {{ codes | markdownify | strip_newlines -}}
7
+ </div>