jekyll-rtd-theme 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/addons.liquid +1 -1
  3. data/_includes/assets/404.liquid +1 -1
  4. data/_includes/assets/js/core.js +106 -0
  5. data/_includes/assets/js/custom.js +0 -0
  6. data/_includes/assets/search.liquid +5 -3
  7. data/_includes/breadcrumbs.liquid +1 -1
  8. data/_includes/extend/list.liquid +6 -6
  9. data/_includes/extend/toctree.liquid +7 -7
  10. data/_includes/footer.liquid +3 -0
  11. data/_includes/i18n/en.liquid +6 -4
  12. data/_includes/i18n/zh.liquid +7 -5
  13. data/_includes/list.liquid +4 -4
  14. data/_includes/reset/defaults.liquid +88 -0
  15. data/_includes/reset/schema.liquid +2 -0
  16. data/_includes/reset/site_pages.liquid +8 -0
  17. data/_includes/reset/workdir.liquid +17 -0
  18. data/_includes/searchbox.liquid +1 -3
  19. data/_includes/toctree.liquid +3 -3
  20. data/_layouts/default.liquid +3 -2
  21. data/_sass/{embed.scss → _embed.scss} +0 -0
  22. data/_sass/custom.scss +0 -0
  23. data/_sass/style.scss +15 -1
  24. data/assets/css/rougify/base16.css +1 -0
  25. data/assets/css/rougify/base16.dark.css +1 -0
  26. data/assets/css/rougify/base16.light.css +1 -0
  27. data/assets/css/rougify/base16.monokai.css +1 -0
  28. data/assets/css/rougify/base16.monokai.dark.css +1 -0
  29. data/assets/css/rougify/base16.monokai.light.css +1 -0
  30. data/assets/css/rougify/base16.solarized.css +1 -0
  31. data/assets/css/rougify/base16.solarized.dark.css +1 -0
  32. data/assets/css/rougify/base16.solarized.light.css +1 -0
  33. data/assets/css/rougify/bw.css +1 -0
  34. data/assets/css/rougify/colorful.css +1 -0
  35. data/assets/css/rougify/github.css +1 -0
  36. data/assets/css/rougify/gruvbox.css +1 -0
  37. data/assets/css/rougify/gruvbox.dark.css +1 -0
  38. data/assets/css/rougify/gruvbox.light.css +1 -0
  39. data/assets/css/rougify/igorpro.css +1 -0
  40. data/assets/css/rougify/magritte.css +1 -0
  41. data/assets/css/rougify/molokai.css +1 -0
  42. data/assets/css/rougify/monokai.css +1 -0
  43. data/assets/css/rougify/monokai.sublime.css +1 -0
  44. data/assets/css/rougify/pastie.css +1 -0
  45. data/assets/css/rougify/thankful_eyes.css +1 -0
  46. data/assets/css/rougify/tulip.css +1 -0
  47. data/assets/pages.json +6 -0
  48. data/assets/sitemap.xml +3 -3
  49. metadata +34 -37
  50. data/_includes/assets/data.liquid +0 -12
  51. data/_includes/assets/js/script.js +0 -65
  52. data/_includes/reset/content.liquid +0 -7
  53. data/_includes/reset/html.liquid +0 -9
  54. data/_includes/reset/navigation.liquid +0 -19
  55. data/_includes/reset/snippets.liquid +0 -11
  56. data/_includes/reset/start.liquid +0 -7
  57. data/_includes/reset/title.liquid +0 -10
  58. data/_includes/reset/variables.liquid +0 -28
  59. data/_includes/reset/workspace.liquid +0 -17
  60. data/_sass/rougify/base16.dark.scss +0 -78
  61. data/_sass/rougify/base16.light.scss +0 -77
  62. data/_sass/rougify/base16.monokai.dark.scss +0 -78
  63. data/_sass/rougify/base16.monokai.light.scss +0 -77
  64. data/_sass/rougify/base16.monokai.scss +0 -78
  65. data/_sass/rougify/base16.scss +0 -77
  66. data/_sass/rougify/base16.solarized.dark.scss +0 -78
  67. data/_sass/rougify/base16.solarized.light.scss +0 -77
  68. data/_sass/rougify/base16.solarized.scss +0 -77
  69. data/_sass/rougify/bw.scss +0 -63
  70. data/_sass/rougify/colorful.scss +0 -170
  71. data/_sass/rougify/github.scss +0 -209
  72. data/_sass/rougify/gruvbox.dark.scss +0 -84
  73. data/_sass/rougify/gruvbox.light.scss +0 -84
  74. data/_sass/rougify/gruvbox.scss +0 -84
  75. data/_sass/rougify/igorpro.scss +0 -32
  76. data/_sass/rougify/magritte.scss +0 -167
  77. data/_sass/rougify/molokai.scss +0 -208
  78. data/_sass/rougify/monokai.scss +0 -210
  79. data/_sass/rougify/monokai.sublime.scss +0 -198
  80. data/_sass/rougify/pastie.scss +0 -146
  81. data/_sass/rougify/thankful_eyes.scss +0 -172
  82. data/_sass/rougify/tulip.scss +0 -163
  83. data/assets/data.json +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4dc19b8440dd2ed5d05e227af867ca52c58efc39a3640f10c3a69e209d038556
4
- data.tar.gz: 3f3c62f5541bb6243060d6451c43da375fae232b5d3432e95c8bf05135a64914
3
+ metadata.gz: 1f94a7289ccca794b05555f5b78e270b6ccd2923b124ea0f3b105edd72c8ce90
4
+ data.tar.gz: a9980784705a9095519cfcab9678b89867cd7312e3b525594f32621ad1b7046f
5
5
  SHA512:
6
- metadata.gz: 5dc0bf6face01e8b48ee5a7a125b23f2f60bf75a0079c857d3e8b569f112d2ca125c69b866bb74fa72e277038f054c7801b5b033fc84a753ca49d446b0776723
7
- data.tar.gz: ac4ff74d87393b52578a45aecbd4a22894cad693120decac835d969c88266b5ed0f78aa8a665122636a7f57481607b2cee0dd1e542afacc44d99760b59c4ac10
6
+ metadata.gz: 328562d6d9430cedd7d7b93b8586f958117c0dec1dcfc0fbb75d3d2f1b7470d1b7140d02aee80101b9f9b96b1e453c3b8bc86b16ace4bd134c2ce232853d4288
7
+ data.tar.gz: 245e29a661dbc001da381b865aec75e01bda6019d6984b8cfb0049dfcf4d93552d47bb1e5b21f412e0f9756249a605a66dfa972a580dc36961b19f18c5c9d982
@@ -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_commit %}{{ commit }}{% endif %}
4
+ {% if site.addons_branch %}v: {{ branch }}{% endif %}
5
5
  <span class="fa fa-caret-down"></span>
6
6
  </span>
7
7
  <div class="rst-other-versions">
@@ -2,4 +2,4 @@
2
2
 
3
3
  ## {{ __404 }}
4
4
 
5
- {{ __no_results_found }}
5
+ {{ __not_found }}
@@ -0,0 +1,106 @@
1
+ function feedback(type, message) {
2
+ console.log(`feedback: https://github.com/rundocs/jekyll-rtd-theme/issues?q=${type}+${message}`);
3
+ }
4
+
5
+ function search(data) {
6
+ let text = new URL(location.href).searchParams.get("q");
7
+ let results = [];
8
+ let regexp = new RegExp(text, "im");
9
+
10
+ function slice(content, min, max) {
11
+ return content.slice(min, max).replace(regexp, (match) => `<span class="highlighted">${match}</span>`);
12
+ }
13
+ for (page of data) {
14
+ let [title, content] = [null, null];
15
+ try {
16
+ if (page.title) {
17
+ title = page.title.match(regexp);
18
+ } else {
19
+ if (page.url == "/") {
20
+ page.title = "{{ site.title }}";
21
+ } else {
22
+ page.title = page.url;
23
+ }
24
+ }
25
+ } catch (e) {
26
+ feedback("search", e.message);
27
+ }
28
+ try {
29
+ if (page.content) {
30
+ page.content = $("<div/>").html(page.content).text();
31
+ content = page.content.match(regexp);
32
+ }
33
+ } catch (e) {
34
+ feedback("search", e.message);
35
+ }
36
+ if (title || content) {
37
+ let result = [`<a href="{{ site.baseurl }}${page.url}">${page.title}</a>`];
38
+ if (content) {
39
+ let [min, max] = [content.index - 100, content.index + 100];
40
+ let [prefix, suffix] = ["...", "..."];
41
+
42
+ if (min < 0) {
43
+ prefix = "";
44
+ min = 0;
45
+ }
46
+ if (max > page.content.length) {
47
+ suffix = "";
48
+ max = page.content.length;
49
+ }
50
+ result.push(`<p class="context">${prefix}${slice(page.content ,min, max)}${suffix}</p>`);
51
+ }
52
+ results.push(`<li>${result.join("")}</li>`);
53
+ }
54
+ }
55
+ if (results.length > 0 && text.length > 0) {
56
+ $("#search-results ul.search").html(results.join(""));
57
+ $("#search-results p.search-summary").html("{{ __search_results_found }}".replace("#", results.length));
58
+ } else {
59
+ $("#search-results ul.search").empty();
60
+ $("#search-results p.search-summary").html("{{ __search_results_not_found }}");
61
+ }
62
+ $("#rtd-search-form [name='q']").val(text);
63
+ $("#search-results h2").html("{{ __search_results }}");
64
+ }
65
+
66
+ function reset() {
67
+ const link = $(".wy-menu-vertical").find(`[href="${location.pathname}"]`);
68
+ if (link.length > 0) {
69
+ $(".wy-menu-vertical .current").removeClass("current");
70
+ link.addClass("current");
71
+ link.closest("li.toctree-l1").parent().addClass("current");
72
+ link.closest("li.toctree-l1").addClass("current");
73
+ link.closest("li.toctree-l2").addClass("current");
74
+ link.closest("li.toctree-l3").addClass("current");
75
+ link.closest("li.toctree-l4").addClass("current");
76
+ link.closest("li.toctree-l5").addClass("current");
77
+ }
78
+ }
79
+
80
+ function admonition() {
81
+ const items = {
82
+ note: "{{ __note }}",
83
+ tip: "{{ __tip }}",
84
+ warning: "{{ __warning }}",
85
+ danger: "{{ __danger }}"
86
+ };
87
+ for (let item in items) {
88
+ let content = $(`.language-${item}`).html();
89
+ $(`.language-${item}`).replaceWith(`<div class="admonition ${item}"><p class="admonition-title">${items[item]}</p><p>${content}</p></div>`);
90
+ }
91
+ }
92
+
93
+ $(document).ready(function() {
94
+ if (location.pathname == "{{ site.baseurl }}/search.html") {
95
+ $.ajax({
96
+ dataType: "json",
97
+ url: "{{ site.baseurl }}/pages.json"
98
+ })
99
+ .done(search)
100
+ .fail((xhr, message) => feedback("search", message));
101
+ }
102
+ admonition();
103
+ anchors.add();
104
+ SphinxRtdTheme.Navigation.reset = reset;
105
+ SphinxRtdTheme.Navigation.enable(true);
106
+ });
File without changes
@@ -1,5 +1,7 @@
1
1
  {%- include reset/i18n.liquid -%}
2
2
 
3
- <h2>{{ __search_results }}</h2>
4
-
5
- <div id="search-results"></div>
3
+ <div id="search-results">
4
+ <h2>{{ __searching }}<span>...</span></h2>
5
+ <p class="search-summary"></p>
6
+ <ul class="search"></ul>
7
+ </div>
@@ -29,7 +29,7 @@
29
29
  {%- endcase %}
30
30
  {%- if site.edit -%}
31
31
  <li class="wy-breadcrumbs-aside">
32
- <a href="{{ github_edit_link }}" class="fa fa-github" target="_blank"> {{ __edit }}</a>
32
+ <a href="{{ github_edit_link }}" class="fa fa-edit" target="_blank"></a>
33
33
  </li>
34
34
  {%- endif -%}
35
35
  </ul>
@@ -1,15 +1,15 @@
1
- {%- include reset/html.liquid -%}
2
- {%- include reset/workspace.liquid -%}
1
+ {%- include reset/site_pages.liquid -%}
2
+ {%- include reset/workdir.liquid -%}
3
3
 
4
4
  {%- assign base = page.dir | append: "temp/" | split: "/" | size -%}
5
- {%- assign size = workspace_level | minus: base -%}
5
+ {%- assign size = workdir_level | minus: base -%}
6
6
  {%- assign size_p1 = size | plus: 1 -%}
7
7
 
8
- {%- assign dir = html_pages | where: "url", workspace | first %}
8
+ {%- assign dir = site_pages | where: "url", workdir | first %}
9
9
  {% include extend/tabs.liquid size=size %}- [{{ dir.title | default: dir.url }}]({{ site.baseurl | append: dir.url }})
10
10
 
11
- {%- for item in workspace_files %}
11
+ {%- for item in workdir_files %}
12
12
  {% include extend/tabs.liquid size=size_p1 %}- [{{ item.title | default: item.url }}]({{ site.baseurl | append: item.url }})
13
13
  {%- endfor -%}
14
14
 
15
- {%- for workspace in workspace_dirs %}{% include extend/list.liquid %}{% endfor -%}
15
+ {%- for workdir in workdir_dirs %}{% include extend/list.liquid %}{% endfor -%}
@@ -1,29 +1,29 @@
1
- {%- include reset/workspace.liquid %}
1
+ {%- include reset/workdir.liquid %}
2
2
 
3
- {%- assign dir = html_pages | where: "url", workspace | first -%}
4
- {%- if workspace_level == 2 %}
3
+ {%- assign dir = site_pages | where: "url", workdir | first -%}
4
+ {%- if workdir_level == 2 %}
5
5
  <p class="caption"><span class="caption-text">{{ dir.title | default: dir.url }}</span></p>
6
6
  {%- else %}
7
7
  <a class="reference internal" href="{{ site.baseurl | append: dir.url }}">{{ dir.title | default: dir.url }}</a>
8
8
  {%- endif -%}
9
9
 
10
10
  <ul>
11
- {%- for item in workspace_files -%}
11
+ {%- for item in workdir_files -%}
12
12
  {%- assign level = item.dir | append: "temp/" | split: "/" | size | minus: 2 -%}
13
13
  {%- capture current -%}
14
14
  {%- if page.url == item.url %}current{% endif -%}
15
15
  {%- endcapture %}
16
16
  <li class="toctree-l{{ level }} {{ current }}">
17
17
  <a class="reference internal {{ current }}" href="{{ site.baseurl | append: item.url }}">
18
- {%- if item.sort -%}
18
+ {%- if item.sort and site.show_sorted != false -%}
19
19
  {{ item.sort }}.
20
20
  {%- endif %}
21
21
  {{ item.title | default: item.url }}
22
22
  </a>
23
23
  </li>
24
24
  {%- endfor -%}
25
- {%- for workspace in workspace_dirs -%}
26
- {%- assign level = workspace | append: "temp/" | split: "/" | size | minus: 3 %}
25
+ {%- for workdir in workdir_dirs -%}
26
+ {%- assign level = workdir | append: "temp/" | split: "/" | size | minus: 3 %}
27
27
  <li class="toctree-l{{ level }}">{% include extend/toctree.liquid %}</li>
28
28
  {%- endfor -%}
29
29
  </ul>
@@ -31,4 +31,7 @@
31
31
  </p>
32
32
  </div>
33
33
  {%- endif -%}
34
+ <div role="contentinfo" class="copyright-rtd">
35
+ <a href="https://github.com/rundocs/jekyll-rtd-theme">jekyll-rtd-theme</a>
36
+ </div>
34
37
  </footer>
@@ -13,13 +13,15 @@
13
13
 
14
14
  {%- assign __next = "Next" -%}
15
15
  {%- assign __previous = "Previous" -%}
16
- {%- assign __edit = "Edit on GitHub" -%}
17
16
  {%- assign __copyright = "Copyright" -%}
18
17
  {%- assign __revision = "Revision" -%}
19
18
 
19
+ {%- assign __404 = "404" -%}
20
+ {%- assign __not_found = "This page does not exist yet!" -%}
21
+
22
+ {%- assign __searching = "Searching" -%}
20
23
  {%- assign __search = "Search" -%}
21
24
  {%- assign __search_docs = "Search Docs" -%}
22
25
  {%- assign __search_results = "Search Results" -%}
23
-
24
- {%- assign __404 = "404" -%}
25
- {%- assign __no_results_found = "No results found!" -%}
26
+ {%- assign __search_results_found = "Search finished, found # page(s) matching the search query." -%}
27
+ {%- assign __search_results_not_found = "Your search did not match any documents, please make sure that all words are spelled correctly!" -%}
@@ -2,7 +2,7 @@
2
2
  {%- assign __homepage = "仓库" -%}
3
3
  {%- assign __issues = "反馈" -%}
4
4
  {%- assign __download = "下载" -%}
5
- {%- assign __gems = "文档插件" -%}
5
+ {%- assign __gems = "主题插件" -%}
6
6
  {%- assign __statistics = "访问统计" -%}
7
7
  {%- assign __total_visits = "累计浏览次数:" -%}
8
8
 
@@ -13,13 +13,15 @@
13
13
 
14
14
  {%- assign __next = "下一篇" -%}
15
15
  {%- assign __previous = "上一篇" -%}
16
- {%- assign __edit = "" -%}
17
16
  {%- assign __copyright = "版权所有" -%}
18
17
  {%- assign __revision = "修订版本" -%}
19
18
 
19
+ {%- assign __404 = "404" -%}
20
+ {%- assign __not_found = "此页面尚不存在!" -%}
21
+
22
+ {%- assign __searching = "正在搜索" -%}
20
23
  {%- assign __search = "搜索" -%}
21
24
  {%- assign __search_docs = "搜索文档" -%}
22
25
  {%- assign __search_results = "搜索结果" -%}
23
-
24
- {%- assign __404 = "404" -%}
25
- {%- assign __no_results_found = "查询结果为空!" -%}
26
+ {%- assign __search_results_found = "搜索完成, 找到与搜索查询匹配的#个页面" -%}
27
+ {%- assign __search_results_not_found = "您的搜索没有匹配到任何文档, 请确保所有字符拼写正确!" -%}
@@ -1,10 +1,10 @@
1
- {%- include reset/html.liquid -%}
2
- {%- include reset/workspace.liquid workspace=page.dir -%}
1
+ {%- include reset/site_pages.liquid -%}
2
+ {%- include reset/workdir.liquid workdir=page.dir -%}
3
3
 
4
- {%- for item in workspace_files %}
4
+ {%- for item in workdir_files %}
5
5
  - [{{ item.title | default: item.url }}]({{ site.baseurl | append: item.url }})
6
6
  {%- endfor -%}
7
7
 
8
8
  {%- if include.all -%}
9
- {%- for workspace in workspace_dirs %}{% include extend/list.liquid %}{% endfor -%}
9
+ {%- for workdir in workdir_dirs %}{% include extend/list.liquid %}{% endfor -%}
10
10
  {%- endif -%}
@@ -0,0 +1,88 @@
1
+ {%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
2
+ {%- assign version = "0.1.8" -%}
3
+ {%- assign addons = "github, gems, analytics" | split: ", " -%}
4
+
5
+ {%- include reset/site_pages.liquid %}
6
+ {%- include reset/i18n.liquid -%}
7
+ {%- include reset/schema.liquid -%}
8
+
9
+ {% comment %} github-metadata {% endcomment %}
10
+ {%- if jekyll.environment != "production" -%}
11
+ {%- assign author = site.author | default: "[author]" -%}
12
+ {%- assign branch = "[branch]" -%}
13
+ {%- assign commit = "[commit]" -%}
14
+ {%- assign repository_url = "#" -%}
15
+ {%- assign issues_url = "#" -%}
16
+ {%- assign zip_url = "#" -%}
17
+ {%- assign github_edit_link = "#" -%}
18
+ {%- else -%}
19
+ {%- assign author = site.author | default: site.github.owner_name -%}
20
+ {%- assign branch = site.github.source.branch -%}
21
+ {%- assign commit = site.github.build_revision | slice: 0, 7 -%}
22
+ {%- assign repository_url = site.github.repository_url -%}
23
+ {%- assign issues_url = site.github.issues_url -%}
24
+ {%- assign zip_url = site.github.zip_url -%}
25
+ {%- capture github_edit_link %}{% github_edit_link %}{% endcapture -%}
26
+ {%- endif -%}
27
+
28
+ {% comment %} scss and script {% endcomment %}
29
+ {%- capture site_scss -%}
30
+ @import "style.scss";
31
+ {%- if site.fluid %}
32
+ @import "fluid.scss";
33
+ {% endif -%}
34
+ @import "custom.scss"; {{ site.scss }}
35
+ {%- endcapture -%}
36
+
37
+ {%- capture site_script %}
38
+ {% include assets/js/core.js %}
39
+ {% include assets/js/custom.js %} {{ site.script }}
40
+ {%- endcapture -%}
41
+
42
+ {%- if site.debug -%}
43
+ {%- assign cdn = site.baseurl -%}
44
+ {%- else -%}
45
+ {%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
46
+ {%- endif -%}
47
+
48
+ {% comment %} title {% endcomment %}
49
+ {%- case page.url -%}
50
+ {%- when "/" -%}
51
+ {%- assign title = site.title | append: " · " | append: site.description -%}
52
+ {%- when "/search.html" -%}
53
+ {%- assign title = __search | append: " · " | append: site.title -%}
54
+ {%- when "/404.html" -%}
55
+ {%- assign title = __404 | append: " · " | append: site.title -%}
56
+ {%- else -%}
57
+ {%- assign title = page.title | default: page.url | append: " · " | append: site.title -%}
58
+ {%- endcase -%}
59
+
60
+ {% comment %} content {% endcomment %}
61
+ {%- assign content = content
62
+ | replace: '’', "'"
63
+ | replace: '<pre class="highlight"><code>', "<pre>"
64
+ | replace: '<pre><code class=', "<pre class="
65
+ | replace: "</code></pre>", "</pre>"
66
+ | replace: '<code class="language-plaintext highlighter-rouge">', '<code class="literal">'
67
+ | replace: "<table>", '<table class="docutils align-default">' -%}
68
+
69
+ {% comment %} prev and next {% endcomment %}
70
+ {%- assign workdir_files = site_files | where_exp: "item", "item.dir == page.dir" -%}
71
+
72
+ {%- assign _index = 0 -%}
73
+ {%- for item in workdir_files %}
74
+ {%- if item.url == page.url %}
75
+ {%- assign _index = forloop.index -%}
76
+ {%- endif %}
77
+ {%- endfor -%}
78
+
79
+ {%- for item in workdir_files -%}
80
+ {%- assign _index_prev = _index | minus: 1 -%}
81
+ {%- assign _index_next = _index | plus: 1 -%}
82
+ {%- if forloop.index == _index_prev -%}
83
+ {%- assign prev = item -%}
84
+ {%- endif %}
85
+ {%- if forloop.index == _index_next and page.url != page.dir -%}
86
+ {%- assign next = item -%}
87
+ {%- endif %}
88
+ {%- endfor -%}
@@ -0,0 +1,2 @@
1
+ {%- assign schema_url = page.url | absolute_url | xml_escape -%}
2
+ {%- assign schema_lastmod = page.date | default: site.time | date_to_xmlschema -%}
@@ -0,0 +1,8 @@
1
+ {%- assign site_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
+
7
+ {%- assign site_dirs = site_pages | where_exp: "item", "item.dir == item.url" -%}
8
+ {%- assign site_files = site_pages | where_exp: "item", "item.dir != item.url" -%}
@@ -0,0 +1,17 @@
1
+ {%- assign workdir = include.workdir | default: "/" -%}
2
+ {%- assign workdir_level = workdir | append: "temp/" | split: "/" | size | minus: 1 -%}
3
+ {%- assign workdir_files = site_files | where_exp: "item", "item.dir == workdir" -%}
4
+
5
+ {%- capture items -%}
6
+ {%- for item in site_dirs -%}
7
+ {%- assign current_m1 = item.dir | append: "temp/" | split: "/" | size | minus: 2 -%}
8
+ {%- if workdir_level == current_m1 -%}
9
+ {%- assign temp = workdir | append: "@@" -%}
10
+ {%- assign dir = item.dir | replace: workdir, temp | split: "@@" | first -%}
11
+ {%- if workdir == dir -%}
12
+ {{ item.dir }}|
13
+ {%- endif -%}
14
+ {%- endif -%}
15
+ {%- endfor -%}
16
+ {%- endcapture -%}
17
+ {%- assign workdir_dirs = items | split: "|" -%}
@@ -1,7 +1,5 @@
1
1
  <div role="search">
2
2
  <form id="rtd-search-form" class="wy-form" action="{{ site.baseurl }}/search.html" method="get" autocomplete="off">
3
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
4
  </form>
7
- </div>
5
+ </div>
@@ -1,7 +1,7 @@
1
- {%- include reset/workspace.liquid %}
1
+ {%- include reset/workdir.liquid %}
2
2
 
3
3
  <ul>
4
- {%- for item in workspace_files -%}
4
+ {%- for item in workdir_files -%}
5
5
  {%- assign level = item.dir | append: "temp/" | split: "/" | size | minus: 1 -%}
6
6
  {%- capture current -%}
7
7
  {%- if page.url == item.url %}current{% endif -%}
@@ -14,4 +14,4 @@
14
14
  {%- endfor %}
15
15
  </ul>
16
16
 
17
- {%- for workspace in workspace_dirs %}{% include extend/toctree.liquid %}{% endfor -%}
17
+ {%- for workdir in workdir_dirs %}{% include extend/toctree.liquid %}{% endfor -%}
@@ -2,7 +2,7 @@
2
2
  layout: plugins/compress
3
3
  ---
4
4
 
5
- {%- include reset/start.liquid -%}
5
+ {%- include reset/defaults.liquid -%}
6
6
 
7
7
  <!DOCTYPE html>
8
8
 
@@ -43,7 +43,8 @@ layout: plugins/compress
43
43
  <link rel="canonical" href="{{ schema_url }}">
44
44
  <!-- theme -->
45
45
  <link rel="stylesheet" href="{{ cdn }}/assets/css/theme.css">
46
- <style>{{ site_style | scssify }}</style>
46
+ <link rel="stylesheet" href="{{ cdn }}/assets/css/rougify/{{ site.rougify | default: 'github' }}.css">
47
+ <style>{{ site_scss | scssify }}</style>
47
48
  <!-- icon -->
48
49
  <link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
49
50
  <!-- script -->