jekyll-rtd-theme 0.1.7 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/_includes/addons.liquid +11 -3
  4. data/_includes/addons/analytics/google.liquid +15 -1
  5. data/_includes/addons/comments/disqus.liquid +1 -1
  6. data/_includes/addons/seo/og.liquid +1 -1
  7. data/_includes/addons/seo/schema.liquid +1 -1
  8. data/_includes/addons/source/analytics.liquid +1 -3
  9. data/_includes/addons/source/i18n.liquid +13 -0
  10. data/_includes/addons/source/{gems.liquid → plugins.liquid} +1 -1
  11. data/_includes/album.liquid +7 -0
  12. data/_includes/assets/common.js +40 -0
  13. data/_includes/assets/custom.js +0 -0
  14. data/_includes/assets/custom.scss +0 -0
  15. data/_includes/assets/search.js +80 -0
  16. data/_includes/breadcrumbs.liquid +8 -2
  17. data/_includes/extend/list.liquid +6 -6
  18. data/_includes/extend/toctree.liquid +17 -7
  19. data/_includes/footer.liquid +3 -0
  20. data/_includes/i18n/en.liquid +9 -5
  21. data/_includes/i18n/fr.liquid +29 -0
  22. data/_includes/i18n/it.liquid +29 -0
  23. data/_includes/i18n/ja.liquid +29 -0
  24. data/_includes/i18n/ko.liquid +29 -0
  25. data/_includes/i18n/{zh.liquid → zh-cn.liquid} +9 -5
  26. data/_includes/list.liquid +4 -4
  27. data/_includes/reset/defaults.liquid +88 -0
  28. data/_includes/reset/i18n.liquid +30 -2
  29. data/_includes/reset/languages.liquid +110 -0
  30. data/_includes/reset/schema.liquid +6 -0
  31. data/_includes/reset/site_pages.liquid +8 -0
  32. data/_includes/reset/workdir.liquid +33 -0
  33. data/_includes/toctree.liquid +3 -3
  34. data/_layouts/default.liquid +32 -12
  35. data/_sass/_album.scss +25 -0
  36. data/_sass/_embed.scss +23 -0
  37. data/_sass/fluid.scss +1 -1
  38. data/_sass/{style.scss → site.scss} +27 -9
  39. data/assets/404.liquid +9 -0
  40. data/assets/css/rougify/base16.css +1 -0
  41. data/assets/css/rougify/base16.dark.css +1 -0
  42. data/assets/css/rougify/base16.light.css +1 -0
  43. data/assets/css/rougify/base16.monokai.css +1 -0
  44. data/assets/css/rougify/base16.monokai.dark.css +1 -0
  45. data/assets/css/rougify/base16.monokai.light.css +1 -0
  46. data/assets/css/rougify/base16.solarized.css +1 -0
  47. data/assets/css/rougify/base16.solarized.dark.css +1 -0
  48. data/assets/css/rougify/base16.solarized.light.css +1 -0
  49. data/assets/css/rougify/bw.css +1 -0
  50. data/assets/css/rougify/colorful.css +1 -0
  51. data/assets/css/rougify/github.css +1 -0
  52. data/assets/css/rougify/gruvbox.css +1 -0
  53. data/assets/css/rougify/gruvbox.dark.css +1 -0
  54. data/assets/css/rougify/gruvbox.light.css +1 -0
  55. data/assets/css/rougify/igorpro.css +1 -0
  56. data/assets/css/rougify/magritte.css +1 -0
  57. data/assets/css/rougify/molokai.css +1 -0
  58. data/assets/css/rougify/monokai.css +1 -0
  59. data/assets/css/rougify/monokai.sublime.css +1 -0
  60. data/assets/css/rougify/pastie.css +1 -0
  61. data/assets/css/rougify/thankful_eyes.css +1 -0
  62. data/assets/css/rougify/tulip.css +1 -0
  63. data/assets/favicon.svg +1 -1
  64. data/assets/pages.json +6 -0
  65. data/assets/search.liquid +28 -0
  66. data/assets/sitemap.xml +4 -4
  67. metadata +48 -45
  68. data/_includes/assets/404.liquid +0 -5
  69. data/_includes/assets/data.liquid +0 -12
  70. data/_includes/assets/js/script.js +0 -65
  71. data/_includes/assets/search.liquid +0 -5
  72. data/_includes/reset/content.liquid +0 -7
  73. data/_includes/reset/html.liquid +0 -9
  74. data/_includes/reset/navigation.liquid +0 -19
  75. data/_includes/reset/snippets.liquid +0 -11
  76. data/_includes/reset/start.liquid +0 -7
  77. data/_includes/reset/title.liquid +0 -10
  78. data/_includes/reset/variables.liquid +0 -28
  79. data/_includes/reset/workspace.liquid +0 -17
  80. data/_includes/searchbox.liquid +0 -7
  81. data/_sass/embed.scss +0 -25
  82. data/_sass/rougify/base16.dark.scss +0 -78
  83. data/_sass/rougify/base16.light.scss +0 -77
  84. data/_sass/rougify/base16.monokai.dark.scss +0 -78
  85. data/_sass/rougify/base16.monokai.light.scss +0 -77
  86. data/_sass/rougify/base16.monokai.scss +0 -78
  87. data/_sass/rougify/base16.scss +0 -77
  88. data/_sass/rougify/base16.solarized.dark.scss +0 -78
  89. data/_sass/rougify/base16.solarized.light.scss +0 -77
  90. data/_sass/rougify/base16.solarized.scss +0 -77
  91. data/_sass/rougify/bw.scss +0 -63
  92. data/_sass/rougify/colorful.scss +0 -170
  93. data/_sass/rougify/github.scss +0 -209
  94. data/_sass/rougify/gruvbox.dark.scss +0 -84
  95. data/_sass/rougify/gruvbox.light.scss +0 -84
  96. data/_sass/rougify/gruvbox.scss +0 -84
  97. data/_sass/rougify/igorpro.scss +0 -32
  98. data/_sass/rougify/magritte.scss +0 -167
  99. data/_sass/rougify/molokai.scss +0 -208
  100. data/_sass/rougify/monokai.scss +0 -210
  101. data/_sass/rougify/monokai.sublime.scss +0 -198
  102. data/_sass/rougify/pastie.scss +0 -146
  103. data/_sass/rougify/thankful_eyes.scss +0 -172
  104. data/_sass/rougify/tulip.scss +0 -163
  105. data/assets/404.md +0 -5
  106. data/assets/data.json +0 -6
  107. data/assets/search.md +0 -5
@@ -1,65 +0,0 @@
1
- function search(data) {
2
- let text = new URL(location.href).searchParams.get("q");
3
- let results = [];
4
- for (item of data) {
5
- let [caption, context] = [item.title.match(text), item.content.match(text)];
6
- if (caption || context) {
7
- let result = [`<a href="${item.url}">${item.title}</a>`];
8
- if (context) {
9
- let min = context.index - 50;
10
- let max = context.index + 50;
11
- if (min < 0) {
12
- min = 0;
13
- }
14
- if (max > item.content.length) {
15
- max = item.content.length;
16
- }
17
- result.push(`<p class="context">${item.content.slice(min, max)}</p>`);
18
- }
19
- results.push(`<li>${result.join("")}</li>`);
20
- }
21
- }
22
- if (results.length > 0 && text.length > 0) {
23
- $("#search-results").html(`<ul class="search">${results.join("")}</ul>`);
24
- } else {
25
- $("#search-results").html("{{ __no_results_found }}");
26
- }
27
- $("#rtd-search-form [name='q']").val(text);
28
- }
29
-
30
- function reset() {
31
- const link = $(".wy-menu-vertical").find(`[href="${location.pathname}"]`);
32
- if (link.length > 0) {
33
- $(".wy-menu-vertical .current").removeClass("current");
34
- link.addClass("current");
35
- link.closest("li.toctree-l1").parent().addClass("current");
36
- link.closest("li.toctree-l1").addClass("current");
37
- link.closest("li.toctree-l2").addClass("current");
38
- link.closest("li.toctree-l3").addClass("current");
39
- link.closest("li.toctree-l4").addClass("current");
40
- link.closest("li.toctree-l5").addClass("current");
41
- }
42
- }
43
-
44
- function admonition() {
45
- const items = {
46
- note: "{{ __note }}",
47
- tip: "{{ __tip }}",
48
- warning: "{{ __warning }}",
49
- danger: "{{ __danger }}"
50
- };
51
- for (let item in items) {
52
- let content = $(`.language-${item}`).html();
53
- $(`.language-${item}`).replaceWith(`<div class="admonition ${item}"><p class="admonition-title">${items[item]}</p><p>${content}</p></div>`);
54
- }
55
- }
56
-
57
- $(document).ready(function() {
58
- if (location.pathname == "{{ site.baseurl }}/search.html") {
59
- $.getJSON("{{ site.baseurl }}/data.json", search);
60
- }
61
- admonition();
62
- anchors.add();
63
- SphinxRtdTheme.Navigation.reset = reset;
64
- SphinxRtdTheme.Navigation.enable(true);
65
- });
@@ -1,5 +0,0 @@
1
- {%- include reset/i18n.liquid -%}
2
-
3
- <h2>{{ __search_results }}</h2>
4
-
5
- <div id="search-results"></div>
@@ -1,7 +0,0 @@
1
- {%- assign content = content
2
- | replace: '’', "'"
3
- | replace: '<pre class="highlight"><code>', "<pre>"
4
- | replace: '<pre><code class=', "<pre class="
5
- | replace: "</code></pre>", "</pre>"
6
- | replace: '<code class="language-plaintext highlighter-rouge">', '<code class="literal">'
7
- | replace: "<table>", '<table class="docutils align-default">' -%}
@@ -1,9 +0,0 @@
1
- {%- assign html_pages = site.html_pages
2
- | sort: "path"
3
- | sort: "sort"
4
- | where_exp: "item", "item.url != '/404.html'"
5
- | where_exp: "item", "item.url != '/search.html'" -%}
6
- {%- assign html_dirs = html_pages
7
- | where_exp: "item", "item.dir == item.url" -%}
8
- {%- assign html_files = html_pages
9
- | where_exp: "item", "item.dir != item.url" -%}
@@ -1,19 +0,0 @@
1
- {%- assign workspace_files = html_files | where_exp: "item", "item.dir == page.dir" -%}
2
-
3
- {%- assign index = 0 -%}
4
- {%- for item in workspace_files %}
5
- {%- if item.url == page.url %}
6
- {%- assign index = forloop.index -%}
7
- {%- endif %}
8
- {%- endfor -%}
9
-
10
- {%- for item in workspace_files -%}
11
- {%- assign index_prev = index | minus: 1 -%}
12
- {%- assign index_next = index | plus: 1 -%}
13
- {%- if forloop.index == index_prev -%}
14
- {%- assign prev = item -%}
15
- {%- endif %}
16
- {%- if forloop.index == index_next and page.url != page.dir -%}
17
- {%- assign next = item -%}
18
- {%- endif %}
19
- {%- endfor -%}
@@ -1,11 +0,0 @@
1
- {%- capture site_style -%}
2
- @import "style.scss";
3
- @import "rougify/{{ site.rougify | default: 'github' }}.scss";
4
- {%- if site.fluid -%}
5
- @import "fluid.scss";
6
- {%- endif -%}
7
- {%- endcapture -%}
8
-
9
- {%- capture site_script %}
10
- {% include assets/js/script.js %}
11
- {%- endcapture -%}
@@ -1,7 +0,0 @@
1
- {%- include reset/variables.liquid -%}
2
- {%- include reset/html.liquid %}
3
- {%- include reset/i18n.liquid -%}
4
- {%- include reset/snippets.liquid -%}
5
- {%- include reset/title.liquid -%}
6
- {%- include reset/content.liquid -%}
7
- {%- include reset/navigation.liquid -%}
@@ -1,10 +0,0 @@
1
- {%- case page.url -%}
2
- {%- when "/" -%}
3
- {%- assign title = site.title | append: " · " | append: site.description -%}
4
- {%- when "/search.html" -%}
5
- {%- assign title = __search | append: " · " | append: site.title -%}
6
- {%- when "/404.html" -%}
7
- {%- assign title = __404 | append: " · " | append: site.title -%}
8
- {%- else -%}
9
- {%- assign title = page.title | append: " · " | append: site.title -%}
10
- {%- endcase -%}
@@ -1,28 +0,0 @@
1
- {%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
2
- {%- assign schema_url = page.url | absolute_url | xml_escape -%}
3
- {%- assign schema_lastmod = site.time | date_to_xmlschema -%}
4
- {%- assign version = "0.1.7" -%}
5
-
6
- {%- if site.debug -%}
7
- {%- assign cdn = site.baseurl -%}
8
- {%- else -%}
9
- {%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
10
- {%- endif -%}
11
-
12
- {%- if jekyll.environment == "production" -%}
13
- {%- assign author = site.author | default: site.github.owner_name -%}
14
- {%- assign commit = site.github.build_revision | slice: 0, 7 -%}
15
- {%- assign repository_url = site.github.repository_url -%}
16
- {%- assign issues_url = site.github.issues_url -%}
17
- {%- assign zip_url = site.github.zip_url -%}
18
- {%- capture github_edit_link %}{% github_edit_link %}{% endcapture -%}
19
- {%- else -%}
20
- {%- assign author = site.author | default: "[author]" -%}
21
- {%- assign commit = "[commit]" -%}
22
- {%- assign repository_url = "#" -%}
23
- {%- assign issues_url = "#" -%}
24
- {%- assign zip_url = "#" -%}
25
- {%- assign github_edit_link = "#" -%}
26
- {%- endif -%}
27
-
28
- {%- assign addons = "github, gems, analytics" | split: ", " -%}
@@ -1,17 +0,0 @@
1
- {%- assign workspace = include.workspace | default: "/" -%}
2
- {%- assign workspace_level = workspace | append: "temp/" | split: "/" | size | minus: 1 -%}
3
- {%- assign workspace_files = html_files | where_exp: "item", "item.dir == workspace" -%}
4
-
5
- {%- capture items -%}
6
- {%- for item in html_dirs -%}
7
- {%- assign current_m1 = item.dir | append: "temp/" | split: "/" | size | minus: 2 -%}
8
- {%- if workspace_level == current_m1 -%}
9
- {%- assign temp = workspace | append: "@@" -%}
10
- {%- assign dir = item.dir | replace: workspace, temp | split: "@@" | first -%}
11
- {%- if workspace == dir -%}
12
- {{ item.dir }}|
13
- {%- endif -%}
14
- {%- endif -%}
15
- {%- endfor -%}
16
- {%- endcapture -%}
17
- {%- assign workspace_dirs = items | split: "|" -%}
@@ -1,7 +0,0 @@
1
- <div role="search">
2
- <form id="rtd-search-form" class="wy-form" action="{{ site.baseurl }}/search.html" method="get" autocomplete="off">
3
- <input type="text" name="q" placeholder="{{ __search_docs }}...">
4
- <input type="hidden" name="check_keywords" value="yes">
5
- <input type="hidden" name="area" value="default">
6
- </form>
7
- </div>
@@ -1,25 +0,0 @@
1
- .wy-embed-wrap {
2
- width: 100%;
3
- padding: 1em 1.5em;
4
- font-size: 14px;
5
- line-height: 20px;
6
- }
7
-
8
- .wy-embed {
9
- text-align: center;
10
- padding: 1em;
11
- color: #c2c2c2;
12
- background: #4e4b4b;
13
- border: 1px solid #a0a0a0;
14
- border-radius: 5px;
15
- }
16
-
17
- .wy-embed {
18
- a {
19
- color: #e6e6e6;
20
- }
21
-
22
- img {
23
- max-width: 100%;
24
- }
25
- }
@@ -1,78 +0,0 @@
1
- .highlight table td { padding: 5px; }
2
- .highlight table pre { margin: 0; }
3
- .highlight, .highlight .w {
4
- color: #d0d0d0;
5
- background-color: #151515;
6
- }
7
- .highlight .err {
8
- color: #151515;
9
- background-color: #ac4142;
10
- }
11
- .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
12
- color: #505050;
13
- }
14
- .highlight .cp {
15
- color: #f4bf75;
16
- }
17
- .highlight .nt {
18
- color: #f4bf75;
19
- }
20
- .highlight .o, .highlight .ow {
21
- color: #d0d0d0;
22
- }
23
- .highlight .p, .highlight .pi {
24
- color: #d0d0d0;
25
- }
26
- .highlight .gi {
27
- color: #90a959;
28
- }
29
- .highlight .gd {
30
- color: #ac4142;
31
- }
32
- .highlight .gh {
33
- color: #6a9fb5;
34
- background-color: #151515;
35
- font-weight: bold;
36
- }
37
- .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
38
- color: #aa759f;
39
- }
40
- .highlight .kc {
41
- color: #d28445;
42
- }
43
- .highlight .kt {
44
- color: #d28445;
45
- }
46
- .highlight .kd {
47
- color: #d28445;
48
- }
49
- .highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
50
- color: #90a959;
51
- }
52
- .highlight .sr {
53
- color: #75b5aa;
54
- }
55
- .highlight .si {
56
- color: #8f5536;
57
- }
58
- .highlight .se {
59
- color: #8f5536;
60
- }
61
- .highlight .nn {
62
- color: #f4bf75;
63
- }
64
- .highlight .nc {
65
- color: #f4bf75;
66
- }
67
- .highlight .no {
68
- color: #f4bf75;
69
- }
70
- .highlight .na {
71
- color: #6a9fb5;
72
- }
73
- .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
74
- color: #90a959;
75
- }
76
- .highlight .ss {
77
- color: #90a959;
78
- }
@@ -1,77 +0,0 @@
1
- .highlight table td { padding: 5px; }
2
- .highlight table pre { margin: 0; }
3
- .highlight, .highlight .w {
4
- color: #303030;
5
- }
6
- .highlight .err {
7
- color: #151515;
8
- background-color: #ac4142;
9
- }
10
- .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
11
- color: #505050;
12
- }
13
- .highlight .cp {
14
- color: #f4bf75;
15
- }
16
- .highlight .nt {
17
- color: #f4bf75;
18
- }
19
- .highlight .o, .highlight .ow {
20
- color: #d0d0d0;
21
- }
22
- .highlight .p, .highlight .pi {
23
- color: #d0d0d0;
24
- }
25
- .highlight .gi {
26
- color: #90a959;
27
- }
28
- .highlight .gd {
29
- color: #ac4142;
30
- }
31
- .highlight .gh {
32
- color: #6a9fb5;
33
- background-color: #151515;
34
- font-weight: bold;
35
- }
36
- .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
37
- color: #aa759f;
38
- }
39
- .highlight .kc {
40
- color: #d28445;
41
- }
42
- .highlight .kt {
43
- color: #d28445;
44
- }
45
- .highlight .kd {
46
- color: #d28445;
47
- }
48
- .highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
49
- color: #90a959;
50
- }
51
- .highlight .sr {
52
- color: #75b5aa;
53
- }
54
- .highlight .si {
55
- color: #8f5536;
56
- }
57
- .highlight .se {
58
- color: #8f5536;
59
- }
60
- .highlight .nn {
61
- color: #f4bf75;
62
- }
63
- .highlight .nc {
64
- color: #f4bf75;
65
- }
66
- .highlight .no {
67
- color: #f4bf75;
68
- }
69
- .highlight .na {
70
- color: #6a9fb5;
71
- }
72
- .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
73
- color: #90a959;
74
- }
75
- .highlight .ss {
76
- color: #90a959;
77
- }
@@ -1,78 +0,0 @@
1
- .highlight table td { padding: 5px; }
2
- .highlight table pre { margin: 0; }
3
- .highlight, .highlight .w {
4
- color: #f8f8f2;
5
- background-color: #272822;
6
- }
7
- .highlight .err {
8
- color: #272822;
9
- background-color: #f92672;
10
- }
11
- .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
12
- color: #75715e;
13
- }
14
- .highlight .cp {
15
- color: #f4bf75;
16
- }
17
- .highlight .nt {
18
- color: #f4bf75;
19
- }
20
- .highlight .o, .highlight .ow {
21
- color: #f8f8f2;
22
- }
23
- .highlight .p, .highlight .pi {
24
- color: #f8f8f2;
25
- }
26
- .highlight .gi {
27
- color: #a6e22e;
28
- }
29
- .highlight .gd {
30
- color: #f92672;
31
- }
32
- .highlight .gh {
33
- color: #66d9ef;
34
- background-color: #272822;
35
- font-weight: bold;
36
- }
37
- .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
38
- color: #ae81ff;
39
- }
40
- .highlight .kc {
41
- color: #fd971f;
42
- }
43
- .highlight .kt {
44
- color: #fd971f;
45
- }
46
- .highlight .kd {
47
- color: #fd971f;
48
- }
49
- .highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
50
- color: #a6e22e;
51
- }
52
- .highlight .sr {
53
- color: #a1efe4;
54
- }
55
- .highlight .si {
56
- color: #cc6633;
57
- }
58
- .highlight .se {
59
- color: #cc6633;
60
- }
61
- .highlight .nn {
62
- color: #f4bf75;
63
- }
64
- .highlight .nc {
65
- color: #f4bf75;
66
- }
67
- .highlight .no {
68
- color: #f4bf75;
69
- }
70
- .highlight .na {
71
- color: #66d9ef;
72
- }
73
- .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
74
- color: #a6e22e;
75
- }
76
- .highlight .ss {
77
- color: #a6e22e;
78
- }