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
@@ -0,0 +1 @@
1
+ !function(t){var e={};function n(o){if(e[o])return e[o].exports;var a=e[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(o,a,function(e){return t[e]}.bind(null,a));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){n(1),t.exports=n(2)},function(t,e){$(document).ready((function(){function t(){console.debug.apply(console,arguments)}"serviceWorker"in navigator?navigator.serviceWorker.register("".concat(ui.baseurl,"/sw.caches.js")):t("Service Worker not supported!");var e,n,o,a,r,i=new URL("https://rundocs-analytics.glitch.me/collect?v=".concat(ui.version,"&lang=").concat(ui.lang));function s(t){var e=$(".toctree").find('[href="'.concat(decodeURI(t),'"]'));if(e.length>0){$(".toctree .current").removeClass("current"),e.addClass("current"),e.closest(".level-1").parent().addClass("current");for(var n=1;n<=11;n++)e.closest(".level-".concat(n)).addClass("current");$(".toctree a").children("span").html('<i class="fa fa-plus-square-o"></i>'),$(".toctree a.current").children("span").html('<i class="fa fa-minus-square-o"></i>')}}function l(t){var e=t.closest("li");e.siblings("li.current").removeClass("current"),e.siblings().find("li.current").removeClass("current"),e.find("> ul li.current").removeClass("current"),e.toggleClass("current")}function c(t,e){return localStorage.setItem(t,e)}function u(t){return localStorage.getItem(t)||!1}i.searchParams.append("user_lang",navigator.language),i.searchParams.append("host",location.host),i.searchParams.append("platform",navigator.platform),$.getJSON(i.toString(),(function(t){return $("#counter").html(t.count)})),$(".toctree li.current").append('<ul class="content-toc"></ul>').html((function(){var t=parseInt(this.dataset.level),e=0,n=[$(this).find(".content-toc")];$(".markdown-body").find("h2,h3,h4,h5,h6").each((function(){var o=$("<a/>").addClass("d-flex").text($(this).text()).attr("href","#".concat(this.id)),a=parseInt(this.tagName.slice(1))-1;if(a>e){var r=n[0].children("li:last")[0];r&&n.unshift($("<ul/>").appendTo(r))}else n.splice(0,Math.min(e-a,Math.max(n.length-1,0)));e=a,$("<li/>").addClass("toc level-".concat(t+a)).append(o).appendTo(n[0])})),n[0].html()||n[0].remove()})),s(location.pathname),s(location.hash),e=u("scroll"),n=u("scrollTime"),o=u("scrollHost"),e&&n&&o&&o==location.host&&Date.now()-n<6e5&&$(".sidebar").scrollTop(e),$(".sidebar").scroll((function(){c("scroll",this.scrollTop),c("scrollTime",Date.now()),c("scrollHost",location.host)})),a=new URL(location.href).searchParams.get("highlight"),r=".highlighted-box",a&&($(".markdown-body").find("*").each((function(){try{this.outerHTML.match(new RegExp(a,"im"))&&$(this).addClass("highlighted-box")}catch(e){t(e.message)}})),$(".markdown-body").find(r).each((function(){$(this).find(r).length>0&&$(this).removeClass(r)}))),$(".toc ul").siblings("a").each((function(){var t=$(this),e=$('<span class="toctree-expand"><i class="fa fa-plus-square-o"></i></span>');e.on("click",(function(e){return e.stopPropagation(),l(t),!1})),t.prepend(e)})),$(".admonition-title").each((function(){$(this).children(".progress").replaceWith(ui.admonition[$(this).attr("ui")])})),$(document).on("click",'[data-toggle="wy-nav-top"]',(function(){$('[data-toggle="wy-nav-shift"]').toggleClass("shift"),$('[data-toggle="rst-versions"]').toggleClass("shift")})),$(document).on("click",".wy-menu-vertical .current ul li a",(function(){$('[data-toggle="wy-nav-shift"]').removeClass("shift"),$('[data-toggle="rst-versions"]').toggleClass("shift"),l($(this))})),$(document).on("scroll",(function(){var t=$(this).scrollTop()+5,e=[];$(".markdown-body").find("h1,h2,h3,h4,h5,h6").each((function(){e.push({offset:$(this).offset().top,id:this.id,level:parseInt(this.tagName.slice(1))})}));for(var n=0;n<e.length;n++)t>e[n].offset&&(n<e.length-1?t<e[n+1].offset&&(1==e[n].level?s(location.pathname):s("#"+e[n].id)):s("#"+e[n].id))})),$("#toggle").click((function(){$(".sidebar-wrap,.content-wrap,.addons-wrap").toggleClass("shift")})),$(".status").click((function(){$(".addons").toggleClass("d-none")})),$(window).bind("resize",(function(){requestAnimationFrame((function(){}))})),$(window).bind("hashchange",(function(){return s(location.hash||location.pathname)}))}))},function(t,e,n){}]);
@@ -6,4 +6,4 @@ permalink: /robots.txt
6
6
  User-agent: *
7
7
  Allow: /
8
8
 
9
- Sitemap: {{ "sitemap.xml" | absolute_url | replace: "http://", "https://" }}
9
+ Sitemap: {{ "sitemap.xml" | absolute_url }}
@@ -4,7 +4,6 @@ permalink: /search.html
4
4
  ---
5
5
 
6
6
  {%- include reset/site_pages.liquid -%}
7
- {%- include reset/i18n.liquid -%}
8
7
 
9
8
  <div id="search-results">
10
9
  <h2>{{ __searching }}<span class="progress"></span></h2>
@@ -13,16 +12,10 @@ permalink: /search.html
13
12
  </div>
14
13
 
15
14
  <script>
16
- const i18n = {
17
- {%- for lang in site_langs -%}
18
- {%- include i18n/{{ lang }}.liquid %}
19
- "{{ lang }}": {
20
- search_docs: "{{ __search_docs }}",
21
- search_results: "{{ __search_results }}",
22
- search_results_found: "{{ __search_results_found }}",
23
- search_results_not_found: "{{ __search_results_not_found }}"
24
- }{% unless forloop.last %},{% endunless %}
25
- {%- endfor -%}
15
+ window.i18n = {
16
+ search_docs: "{{ __search_docs }}",
17
+ search_results: "{{ __search_results }}",
18
+ search_results_found: "{{ __search_results_found }}",
19
+ search_results_not_found: "{{ __search_results_not_found }}"
26
20
  };
27
21
  </script>
28
- <script>{% include assets/search.js %}</script>
@@ -9,7 +9,7 @@ permalink: /sitemap.xml
9
9
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
10
10
  {%- for page in site_pages -%}
11
11
  <url>
12
- <loc>{{ page.url | absolute_url | replace: "http://", "https://" | xml_escape }}</loc>
12
+ <loc>{{ page.url | absolute_url | xml_escape }}</loc>
13
13
  <priority>{{ page.content | size | divided_by: 2048.0 | times: 10 | ceil | divided_by: 10.0 | at_least: 0.1 | at_most: 1.0 }}</priority>
14
14
  <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
15
15
  </url>
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: plugins/compress
3
+ permalink: /sw.caches.js
4
+ ---
5
+
6
+ {%- include reset/defaults.liquid -%}
7
+
8
+ {%- include assets/sw.caches.js -%}
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.3
4
+ version: 2.0.0.pre.beta
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-21 00:00:00.000000000 Z
11
+ date: 2020-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-pages
@@ -33,44 +33,91 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - LICENSE
35
35
  - README.md
36
- - _includes/addons.liquid
37
36
  - _includes/addons/analytics.liquid
38
37
  - _includes/addons/github.liquid
39
- - _includes/addons/i18n.liquid
40
- - _includes/addons/plugins.liquid
41
- - _includes/album.liquid
42
- - _includes/assets/common.js
43
- - _includes/assets/custom.js
44
- - _includes/assets/custom.scss
45
- - _includes/assets/search.js
38
+ - _includes/assets/sw.caches.js
46
39
  - _includes/breadcrumbs.liquid
47
40
  - _includes/extend/list.liquid
48
41
  - _includes/extend/tabs.liquid
49
42
  - _includes/extend/toctree.liquid
50
43
  - _includes/footer.liquid
51
- - _includes/i18n/en.liquid
52
- - _includes/i18n/es.liquid
53
- - _includes/i18n/fr.liquid
54
- - _includes/i18n/it.liquid
55
- - _includes/i18n/ja.liquid
56
- - _includes/i18n/ko.liquid
57
- - _includes/i18n/ru.liquid
58
- - _includes/i18n/sv.liquid
59
- - _includes/i18n/zh-cn.liquid
60
44
  - _includes/list.liquid
61
45
  - _includes/reset/defaults.liquid
62
- - _includes/reset/i18n.liquid
63
- - _includes/reset/languages.liquid
64
46
  - _includes/reset/site_pages.liquid
65
47
  - _includes/reset/workdir.liquid
48
+ - _includes/safe/shortcodes.liquid
49
+ - _includes/shortcodes/danger.liquid
50
+ - _includes/shortcodes/mermaid.liquid
51
+ - _includes/shortcodes/note.liquid
52
+ - _includes/shortcodes/tip.liquid
53
+ - _includes/shortcodes/warning.liquid
66
54
  - _includes/toctree.liquid
67
55
  - _layouts/default.liquid
68
56
  - _layouts/plugins/compress.liquid
69
57
  - _layouts/plugins/extension.liquid
70
- - _sass/_album.scss
71
- - _sass/_embed.scss
72
- - _sass/fluid.scss
73
- - _sass/jekyll-rtd-theme.scss
58
+ - _sass/@primer/base/base.scss
59
+ - _sass/@primer/base/index.scss
60
+ - _sass/@primer/base/kbd.scss
61
+ - _sass/@primer/base/normalize.scss
62
+ - _sass/@primer/base/typography-base.scss
63
+ - _sass/@primer/breadcrumb/breadcrumb.scss
64
+ - _sass/@primer/breadcrumb/index.scss
65
+ - _sass/@primer/buttons/button-group.scss
66
+ - _sass/@primer/buttons/button.scss
67
+ - _sass/@primer/buttons/index.scss
68
+ - _sass/@primer/buttons/misc.scss
69
+ - _sass/@primer/forms/form-control.scss
70
+ - _sass/@primer/forms/form-group.scss
71
+ - _sass/@primer/forms/form-select.scss
72
+ - _sass/@primer/forms/form-validation.scss
73
+ - _sass/@primer/forms/index.scss
74
+ - _sass/@primer/forms/input-group.scss
75
+ - _sass/@primer/forms/radio-group.scss
76
+ - _sass/@primer/markdown/blob-csv.scss
77
+ - _sass/@primer/markdown/code.scss
78
+ - _sass/@primer/markdown/headings.scss
79
+ - _sass/@primer/markdown/images.scss
80
+ - _sass/@primer/markdown/index.scss
81
+ - _sass/@primer/markdown/lists.scss
82
+ - _sass/@primer/markdown/markdown-body.scss
83
+ - _sass/@primer/markdown/tables.scss
84
+ - _sass/@primer/support/index.scss
85
+ - _sass/@primer/support/mixins/buttons.scss
86
+ - _sass/@primer/support/mixins/layout.scss
87
+ - _sass/@primer/support/mixins/misc.scss
88
+ - _sass/@primer/support/mixins/typography.scss
89
+ - _sass/@primer/support/variables/color-system.scss
90
+ - _sass/@primer/support/variables/colors.scss
91
+ - _sass/@primer/support/variables/layout.scss
92
+ - _sass/@primer/support/variables/misc.scss
93
+ - _sass/@primer/support/variables/typography.scss
94
+ - _sass/@primer/utilities/animations.scss
95
+ - _sass/@primer/utilities/borders.scss
96
+ - _sass/@primer/utilities/box-shadow.scss
97
+ - _sass/@primer/utilities/colors.scss
98
+ - _sass/@primer/utilities/details.scss
99
+ - _sass/@primer/utilities/flexbox.scss
100
+ - _sass/@primer/utilities/index.scss
101
+ - _sass/@primer/utilities/layout.scss
102
+ - _sass/@primer/utilities/margin.scss
103
+ - _sass/@primer/utilities/padding.scss
104
+ - _sass/@primer/utilities/typography.scss
105
+ - _sass/@primer/utilities/visibility-display.scss
106
+ - _sass/_font-face.scss
107
+ - _sass/_icons.scss
108
+ - _sass/_layout.scss
109
+ - _sass/_reset.scss
110
+ - _sass/_root.scss
111
+ - _sass/_variables.scss
112
+ - _sass/class/addons-wrap.scss
113
+ - _sass/class/container.scss
114
+ - _sass/class/content-wrap.scss
115
+ - _sass/class/header.scss
116
+ - _sass/class/highlight.scss
117
+ - _sass/class/markdown-body.scss
118
+ - _sass/class/sidebar-wrap.scss
119
+ - _sass/class/title.scss
120
+ - _sass/theme.scss
74
121
  - assets/404.liquid
75
122
  - assets/css/fonts/Roboto-Slab-Bold.woff
76
123
  - assets/css/fonts/Roboto-Slab-Bold.woff2
@@ -89,40 +136,19 @@ files:
89
136
  - assets/css/fonts/lato-normal-italic.woff2
90
137
  - assets/css/fonts/lato-normal.woff
91
138
  - assets/css/fonts/lato-normal.woff2
92
- - assets/css/rougify/base16.css
93
- - assets/css/rougify/base16.dark.css
94
- - assets/css/rougify/base16.light.css
95
- - assets/css/rougify/base16.monokai.css
96
- - assets/css/rougify/base16.monokai.dark.css
97
- - assets/css/rougify/base16.monokai.light.css
98
- - assets/css/rougify/base16.solarized.css
99
- - assets/css/rougify/base16.solarized.dark.css
100
- - assets/css/rougify/base16.solarized.light.css
101
- - assets/css/rougify/bw.css
102
- - assets/css/rougify/colorful.css
103
- - assets/css/rougify/github.css
104
- - assets/css/rougify/gruvbox.css
105
- - assets/css/rougify/gruvbox.dark.css
106
- - assets/css/rougify/gruvbox.light.css
107
- - assets/css/rougify/igorpro.css
108
- - assets/css/rougify/magritte.css
109
- - assets/css/rougify/molokai.css
110
- - assets/css/rougify/monokai.css
111
- - assets/css/rougify/monokai.sublime.css
112
- - assets/css/rougify/pastie.css
113
- - assets/css/rougify/thankful_eyes.css
114
- - assets/css/rougify/tulip.css
115
- - assets/css/theme.css
139
+ - assets/css/theme.min.css
140
+ - assets/css/theme.scss
116
141
  - assets/favicon.liquid
117
- - assets/js/anchor.min.js
118
- - assets/js/html5shiv.min.js
119
142
  - assets/js/jquery.min.js
120
143
  - assets/js/mermaid.min.js
144
+ - assets/js/search.js
121
145
  - assets/js/theme.js
146
+ - assets/js/theme.min.js
122
147
  - assets/pages.liquid
123
148
  - assets/robots.liquid
124
149
  - assets/search.liquid
125
150
  - assets/sitemap.liquid
151
+ - assets/sw.caches.liquid
126
152
  homepage: https://github.com/rundocs/jekyll-rtd-theme
127
153
  licenses:
128
154
  - MIT
@@ -138,12 +164,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
164
  version: '0'
139
165
  required_rubygems_version: !ruby/object:Gem::Requirement
140
166
  requirements:
141
- - - ">="
167
+ - - ">"
142
168
  - !ruby/object:Gem::Version
143
- version: '0'
169
+ version: 1.3.1
144
170
  requirements: []
145
171
  rubygems_version: 3.1.2
146
172
  signing_key:
147
173
  specification_version: 4
148
- summary: GitHub-flavored docs theme for Jekyll, based on sphinx_rtd_theme
174
+ summary: Opinionated github flavored documentation theme for open source projects
149
175
  test_files: []
@@ -1,24 +0,0 @@
1
- <div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
2
- <span class="rst-current-version" data-toggle="rst-current-version">
3
- <span class="fa fa-book"> {{ site.title }}</span>
4
- {% if site.addons_branch and site.github_metadata != false %}v: {{ branch }}{% endif %}
5
- <span class="fa fa-caret-down"></span>
6
- </span>
7
- <div class="rst-other-versions">
8
- {%- assign items = site.addons | default: addons -%}
9
- {% for item in items -%}
10
- {%- if addons contains item -%}
11
- {% include addons/{{ item }}.liquid %}
12
- {%- endif -%}
13
- {% endfor -%}
14
- <hr>
15
- <small>
16
- <span>
17
- Built with
18
- <a href="https://jekyllrb.com/">Jekyll</a>
19
- using the
20
- <a href="https://github.com/rundocs/jekyll-rtd-theme">jekyll-rtd-theme</a> (MIT)
21
- </span>
22
- </small>
23
- </div>
24
- </div>
@@ -1,13 +0,0 @@
1
- <dl>
2
- <dt>{{ __translations }}</dt>
3
- {%- for item in site_langs -%}
4
- <dd>
5
- {%- if item == site_lang -%}
6
- {%- assign url = "" -%}
7
- {%- else -%}
8
- {%- assign url = item | append: "/" -%}
9
- {%- endif -%}
10
- <a href="{{ site.baseurl }}/{{ url }}"><i class="fa fa-language"></i> {{ item }}</a>
11
- </dd>
12
- {%- endfor -%}
13
- </dl>
@@ -1,6 +0,0 @@
1
- <dl>
2
- <dt>{{ __plugins }}</dt>
3
- {%- for item in site.plugins %}
4
- <dd><a href="https://rubygems.org/gems/{{ item }}"><i class="fa fa-cog"></i> {{ item }}</a></dd>
5
- {%- endfor %}
6
- </dl>
@@ -1,7 +0,0 @@
1
- <div class="album">
2
- {%- for item in include.data -%}
3
- <a class="item" href="{{ item.link | default: '#' }}">
4
- <img src="{{ item.image }}" alt="{{ item.title }}">{{ item.title }}
5
- </a>
6
- {%- endfor -%}
7
- </div>
@@ -1,62 +0,0 @@
1
- $(document).ready(function() {
2
- let analytics = new URL("https://rundocs-analytics.glitch.me/collect?v={{ version }}&lang={{ lang }}");
3
- let highlight = new URL(location.href).searchParams.get("highlight");
4
-
5
- /* content toc */
6
- $(".wy-menu-vertical li.current").append(function() {
7
- let level = parseInt($(this).attr("class").match(/toctree-l(\d)/)[1]) + 1;
8
- let toc = ["<ul>"];
9
-
10
- $(".document").find("h2,h3,h4,h5,h6").each(function() {
11
- toc.push(`<li class="toctree-l${level}"><a class="reference internal" href="#${this.id}">${$(this).html()}</a></li>`);
12
- });
13
- toc.push("</ul>");
14
- /* return is apend */
15
- if (toc.length == 2) {
16
- return "";
17
- } else {
18
- return toc.join("");
19
- }
20
- });
21
-
22
- SphinxRtdTheme.Navigation.reset = function() {
23
- const link = $(".wy-menu-vertical").find(`[href="${location.pathname}"]`);
24
- if (link.length > 0) {
25
- $(".wy-menu-vertical .current").removeClass("current");
26
- link.addClass("current");
27
- link.closest("li.toctree-l1").parent().addClass("current");
28
- link.closest("li.toctree-l1").addClass("current");
29
- link.closest("li.toctree-l2").addClass("current");
30
- link.closest("li.toctree-l3").addClass("current");
31
- link.closest("li.toctree-l4").addClass("current");
32
- link.closest("li.toctree-l5").addClass("current");
33
- }
34
- };
35
- SphinxRtdTheme.Navigation.enable(true);
36
-
37
- if (highlight) {
38
- $(".section").find("*").each(function() {
39
- try {
40
- if (this.outerHTML.match(new RegExp(highlight, "im"))) {
41
- $(this).addClass("highlighted-box");
42
- }
43
- } catch (e) {
44
- feedback(["highlight", e.message]);
45
- }
46
- });
47
- $(".section").find(".highlighted-box").each(function() {
48
- if (($(this).find(".highlighted-box").length > 0)) {
49
- $(this).removeClass("highlighted-box");
50
- }
51
- });
52
- }
53
- $(".admonition-title").each(function() {
54
- $(this).html(ui.admonition[$(this).attr("ui")]);
55
- });
56
- anchors.add();
57
-
58
- analytics.searchParams.append("user_lang", navigator.language);
59
- analytics.searchParams.append("host", location.host);
60
- analytics.searchParams.append("platform", navigator.platform);
61
- $.getJSON(analytics.toString(), (data) => $("#counter").html(data.count));
62
- });
File without changes
File without changes
@@ -1,76 +0,0 @@
1
- function search(data) {
2
- let text = new URL(location.href).searchParams.get("q");
3
- let lang = new URL(location.href).searchParams.get("lang") || ui.lang;
4
-
5
- $("input[name='q']").val(text);
6
- $("input[name='q']").attr("placeholder", i18n[lang].search_docs + "...");
7
-
8
- let results = [];
9
- let regexp = new RegExp();
10
- try {
11
- regexp = new RegExp(text, "im");
12
- } catch (e) {
13
- $(".search").empty();
14
- $(".search-summary").html(i18n[lang].search_results_not_found);
15
- $("#search-results h2").html(i18n[lang].search_results);
16
- return feedback(["search", e.message]);
17
- }
18
-
19
- function slice(content, min, max) {
20
- return content.slice(min, max).replace(regexp, (match) => `<span class="highlighted">${match}</span>`);
21
- }
22
- for (page of data) {
23
- let [title, content] = [null, null];
24
- try {
25
- if (page.title) {
26
- title = page.title.match(regexp);
27
- } else {
28
- if (page.url == "/") {
29
- page.title = ui.title;
30
- } else {
31
- page.title = page.url;
32
- }
33
- }
34
- } catch (e) {
35
- feedback(["search", e.message]);
36
- }
37
- try {
38
- if (page.content) {
39
- page.content = $("<div/>").html(page.content).text();
40
- content = page.content.match(regexp);
41
- }
42
- } catch (e) {
43
- feedback(["search", e.message]);
44
- }
45
- if (title || content) {
46
- let result = [`<a href="${ui.baseurl}${page.url}?highlight=${text}">${page.title}</a>`];
47
- if (content) {
48
- let [min, max] = [content.index - 100, content.index + 100];
49
- let [prefix, suffix] = ["...", "..."];
50
-
51
- if (min < 0) {
52
- prefix = "";
53
- min = 0;
54
- }
55
- if (max > page.content.length) {
56
- suffix = "";
57
- max = page.content.length;
58
- }
59
- result.push(`<p class="context">${prefix}${slice(page.content ,min, max)}${suffix}</p>`);
60
- }
61
- results.push(`<li>${result.join("")}</li>`);
62
- }
63
- }
64
- if (results.length > 0 && text.length > 0) {
65
- $(".search").html(results.join(""));
66
- $(".search-summary").html(i18n[lang].search_results_found.replace("#", results.length));
67
- } else {
68
- $(".search").empty();
69
- $(".search-summary").html(i18n[lang].search_results_not_found);
70
- }
71
- $("#search-results h2").html(i18n[lang].search_results);
72
- }
73
-
74
- $(document).ready(function() {
75
- $.ajax(`${ui.baseurl}/pages.json`).done(search).fail((xhr, message) => feedback(["search", message]));
76
- });