jekyll-rtd-theme 0.1.4 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +34 -41
  3. data/_includes/{versions.liquid → addons.liquid} +2 -2
  4. data/_includes/addons/comments/disqus.liquid +10 -0
  5. data/_includes/album.liquid +7 -0
  6. data/_includes/assets/custom.js +0 -0
  7. data/_includes/assets/custom.scss +0 -0
  8. data/_includes/assets/site.js +125 -0
  9. data/_includes/breadcrumbs.liquid +29 -21
  10. data/_includes/extend/list.liquid +15 -0
  11. data/_includes/extend/tabs.liquid +2 -0
  12. data/_includes/{toctree_ln.liquid → extend/toctree.liquid} +10 -7
  13. data/_includes/footer.liquid +19 -9
  14. data/_includes/i18n/en.liquid +6 -4
  15. data/_includes/i18n/zh.liquid +7 -5
  16. data/_includes/list.liquid +10 -0
  17. data/_includes/reset/defaults.liquid +88 -0
  18. data/_includes/reset/schema.liquid +2 -0
  19. data/_includes/reset/site_pages.liquid +8 -0
  20. data/_includes/reset/workdir.liquid +17 -0
  21. data/_includes/searchbox.liquid +1 -3
  22. data/_includes/{toctree_l1.liquid → toctree.liquid} +3 -3
  23. data/_layouts/basic.liquid +107 -0
  24. data/_layouts/default.liquid +2 -95
  25. data/_layouts/plugins/compress.liquid +1 -1
  26. data/_sass/_album.scss +25 -0
  27. data/_sass/_embed.scss +23 -0
  28. data/_sass/{style.scss → site.scss} +20 -1
  29. data/assets/404.liquid +8 -0
  30. data/assets/css/rougify/base16.css +1 -0
  31. data/assets/css/rougify/base16.dark.css +1 -0
  32. data/assets/css/rougify/base16.light.css +1 -0
  33. data/assets/css/rougify/base16.monokai.css +1 -0
  34. data/assets/css/rougify/base16.monokai.dark.css +1 -0
  35. data/assets/css/rougify/base16.monokai.light.css +1 -0
  36. data/assets/css/rougify/base16.solarized.css +1 -0
  37. data/assets/css/rougify/base16.solarized.dark.css +1 -0
  38. data/assets/css/rougify/base16.solarized.light.css +1 -0
  39. data/assets/css/rougify/bw.css +1 -0
  40. data/assets/css/rougify/colorful.css +1 -0
  41. data/assets/css/rougify/github.css +1 -0
  42. data/assets/css/rougify/gruvbox.css +1 -0
  43. data/assets/css/rougify/gruvbox.dark.css +1 -0
  44. data/assets/css/rougify/gruvbox.light.css +1 -0
  45. data/assets/css/rougify/igorpro.css +1 -0
  46. data/assets/css/rougify/magritte.css +1 -0
  47. data/assets/css/rougify/molokai.css +1 -0
  48. data/assets/css/rougify/monokai.css +1 -0
  49. data/assets/css/rougify/monokai.sublime.css +1 -0
  50. data/assets/css/rougify/pastie.css +1 -0
  51. data/assets/css/rougify/thankful_eyes.css +1 -0
  52. data/assets/css/rougify/tulip.css +1 -0
  53. data/assets/js/anchor.min.js +9 -0
  54. data/assets/pages.json +6 -0
  55. data/assets/search.liquid +12 -0
  56. data/assets/sitemap.xml +3 -3
  57. metadata +50 -50
  58. data/_includes/assets/404.liquid +0 -5
  59. data/_includes/assets/data.liquid +0 -12
  60. data/_includes/assets/js/script.js +0 -64
  61. data/_includes/assets/search.liquid +0 -5
  62. data/_includes/reset/content.liquid +0 -7
  63. data/_includes/reset/html.liquid +0 -8
  64. data/_includes/reset/navigation.liquid +0 -19
  65. data/_includes/reset/snippets.liquid +0 -11
  66. data/_includes/reset/start.liquid +0 -7
  67. data/_includes/reset/title.liquid +0 -10
  68. data/_includes/reset/variables.liquid +0 -28
  69. data/_includes/reset/version.spec +0 -1
  70. data/_includes/reset/workspace.liquid +0 -17
  71. data/_sass/embed.scss +0 -25
  72. data/_sass/rougify/base16.dark.scss +0 -78
  73. data/_sass/rougify/base16.light.scss +0 -77
  74. data/_sass/rougify/base16.monokai.dark.scss +0 -78
  75. data/_sass/rougify/base16.monokai.light.scss +0 -77
  76. data/_sass/rougify/base16.monokai.scss +0 -78
  77. data/_sass/rougify/base16.scss +0 -77
  78. data/_sass/rougify/base16.solarized.dark.scss +0 -78
  79. data/_sass/rougify/base16.solarized.light.scss +0 -77
  80. data/_sass/rougify/base16.solarized.scss +0 -77
  81. data/_sass/rougify/bw.scss +0 -63
  82. data/_sass/rougify/colorful.scss +0 -170
  83. data/_sass/rougify/github.scss +0 -209
  84. data/_sass/rougify/gruvbox.dark.scss +0 -84
  85. data/_sass/rougify/gruvbox.light.scss +0 -84
  86. data/_sass/rougify/gruvbox.scss +0 -84
  87. data/_sass/rougify/igorpro.scss +0 -32
  88. data/_sass/rougify/magritte.scss +0 -167
  89. data/_sass/rougify/molokai.scss +0 -208
  90. data/_sass/rougify/monokai.scss +0 -210
  91. data/_sass/rougify/monokai.sublime.scss +0 -198
  92. data/_sass/rougify/pastie.scss +0 -146
  93. data/_sass/rougify/thankful_eyes.scss +0 -172
  94. data/_sass/rougify/tulip.scss +0 -163
  95. data/assets/404.md +0 -5
  96. data/assets/data.json +0 -6
  97. data/assets/search.md +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa084e105e7f1f43d2b77108d40d1473e042f6ee494ab82bfa8db1e44d539cb1
4
- data.tar.gz: 7c0d27c7853e7db2a4549ff1c025a6ced6ef6bf94e57091b6cf4fb7cfa330aba
3
+ metadata.gz: ce83e5fded9b546214f895e23e6201513528b3983ff0d0c8327cbd00aac257a4
4
+ data.tar.gz: 7b0e1c1952a373332e021674262c0c5345db66db013f75c9a5be041d74635ce2
5
5
  SHA512:
6
- metadata.gz: e00ecb7d30ded86e7fe26ca2d9c1c787e4f083dae1d64d4ea80cb4e4b564ac1e8f1e94bf6872e2db837867f9168a3427508cb929089624aaef10983e0048c17b
7
- data.tar.gz: 0f329d07378034bf7787d77a7d3c334634a06e8d4c1e085a818fca81e8db9713bea1cb53b127bb28011d65e247e6b9fb030e540e0744f7ca7b66c5c030c0bc04
6
+ metadata.gz: 631141d782ff15262ee5c58cc04c80547c21f879447ce832f5e3073dcc8ccd596566ec733e053001fc1f4869137ddc014be0017368aa02b9911f01065fdc8dbd
7
+ data.tar.gz: fe61300c17e3f8c8daf3b73a830a3e4698a25b2dcbd05711d49f9e531a18f405d1f0334851bc2bc659f97e151743952fdbba556bb40ca4cca37ae21d37f58270
data/README.md CHANGED
@@ -1,50 +1,43 @@
1
1
  # jekyll-rtd-theme
2
- [![](https://github.com/rundocs/jekyll-rtd-theme/workflows/gh-pages/badge.svg)](https://github.com/rundocs/jekyll-rtd-theme)
3
- [![](https://img.shields.io/gem/v/jekyll-rtd-theme)][gem]
4
- [![](https://img.shields.io/gem/dt/jekyll-rtd-theme)][gem]
5
- [![](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)](https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme/)
6
- [![](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme/badge)](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme)
7
-
8
- Just another Jekyll theme for GitHub Pages based on ReadtheDocs's sphinx_rtd_theme styles
9
-
10
- ## Installation
11
- There are three ways to install: as a gem-based theme, as a remote theme (GitHub Pages compatible), use template
12
-
13
- #### Gem-based method
14
- 1. Add the following to your site's `Gemfile`
15
- ```ruby
16
- source "https://rubygems.org"
17
- gem "jekyll-rtd-theme"
18
- gem "github-pages", group: :jekyll_plugins
19
- ```
20
- 2. Add the following to your site's `_config.yml`
21
- ```yml
22
- theme: jekyll-rtd-theme
23
- title: Your awesome title
24
- description: Write an awesome description for your new site here
25
- ```
26
-
27
- #### Remote theme method
28
- 1. Add the following to your github repository's `_config.yml`
29
- ```yml
30
- remote_theme: rundocs/jekyll-rtd-theme
31
- ```
32
- 2. Remove any other `theme` or `remote_theme` entry
33
-
34
- #### Use template
35
- The new repository will generate with the same files and folders from [rundocs/starter](https://github.com/rundocs/starter/generate)
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
+
9
+ Just another documentation theme compatible with GitHub Pages, based on sphinx_rtd_theme
10
+
11
+ ![][demo]
12
+
13
+ ## Notable features
14
+ - Write documents directly, like docsify!
15
+ - Only need one file `_config.yml` to configure site
16
+ - Bundled as a "theme gem" for easier installation/upgrading.
17
+ - Compatible with GitHub Pages.
18
+ - Optimized for search engines with support for Open Graph data.
19
+ - Optimized for search engines with `robots.txt` and `sitemap.xml`.
20
+ - Search engine support
21
+ - Commenting support
22
+ - Google,Baidu,CNZZ Analytics support.
23
+ - UI localized text in English(default), Chinese(中文)
24
+ - And many features waiting for you to discover.
36
25
 
37
26
  ## Roadmap
38
27
  See the [open issues][issues] for a list of proposed features (and known issues).
39
28
 
29
+ ## Documents
30
+ For full documentation, see: [https://rundocs.github.io/jekyll-rtd-theme][site]
40
31
 
41
- ## Contributing
42
- 1. Clone down the theme's repository (`git clone https://github.com/rundocs/jekyll-rtd-theme.git`)
43
- 2. `cd` into the theme's directory
44
- 3. Run `bundle` to install the necessary dependencies
45
- 4. Run `bundle exec jekyll server` to start the preview server
46
- 5. Visit [`http://localhost:4000`](http://localhost:4000) in your browser to preview the theme
32
+ ## The License
33
+ The theme is available as open source under the terms of the [MIT License][license].
47
34
 
48
35
 
49
- [gem]: https://rubygems.org/gems/jekyll-rtd-theme
36
+ [repository]: https://github.com/rundocs/jekyll-rtd-theme
50
37
  [issues]: https://github.com/rundocs/jekyll-rtd-theme/issues
38
+ [license]: https://github.com/rundocs/jekyll-rtd-theme/blob/master/LICENSE
39
+ [site]: https://rundocs.github.io/jekyll-rtd-theme
40
+ [rubygem]: https://rubygems.org/gems/jekyll-rtd-theme
41
+ [cdn]: https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme/
42
+ [codefactor]: https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme
43
+ [demo]: https://user-images.githubusercontent.com/68011645/88376699-87980500-cdd0-11ea-8900-7bab8c811bc9.png
@@ -1,11 +1,11 @@
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
- {{ commit }}
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">
8
- {%- assign items = addons | split: ", " -%}
8
+ {%- assign items = site.addons | default: addons -%}
9
9
  {% for item in items -%}
10
10
  {% include addons/source/{{ item }}.liquid %}
11
11
  {% endfor -%}
@@ -0,0 +1,10 @@
1
+ {% if site.disqus %}
2
+ <div id="disqus_thread" class="articleComments"></div>
3
+ <script>
4
+ (function(script) {
5
+ script.src = "https://{{ site.disqus }}.disqus.com/embed.js";
6
+ script.setAttribute("data-timestamp", +new Date());
7
+ document.head.appendChild(script);
8
+ })(document.createElement("script"));
9
+ </script>
10
+ {% endif %}
@@ -0,0 +1,7 @@
1
+ <div class="album">
2
+ {%- for item in include.data -%}
3
+ <a class="item" href="{{ item.href | default: '#' }}">
4
+ <img src="{{ item.image }}">{{ item.name }}
5
+ </a>
6
+ {%- endfor -%}
7
+ </div>
File without changes
File without changes
@@ -0,0 +1,125 @@
1
+ function feedback(type, message) {
2
+ console.log(`feedback: https://github.com/rundocs/jekyll-rtd-theme/issues?q=${type}+${message}`);
3
+ }
4
+
5
+ function highlight() {
6
+ let text = new URL(location.href).searchParams.get("highlight");
7
+ let regexp = new RegExp(text, "im");
8
+
9
+ if (text) {
10
+ $(".section").find("*").each(function() {
11
+ if (this.outerHTML.match(regexp)) {
12
+ $(this).addClass("highlighted-box");
13
+ }
14
+ });
15
+ $(".section").find(".highlighted-box").each(function() {
16
+ if (($(this).find(".highlighted-box").length > 0)) {
17
+ $(this).removeClass("highlighted-box");
18
+ }
19
+ });
20
+ }
21
+ }
22
+
23
+ function search(data) {
24
+ let text = new URL(location.href).searchParams.get("q");
25
+ let results = [];
26
+ let regexp = new RegExp(text, "im");
27
+
28
+ function slice(content, min, max) {
29
+ return content.slice(min, max).replace(regexp, (match) => `<span class="highlighted">${match}</span>`);
30
+ }
31
+ for (page of data) {
32
+ let [title, content] = [null, null];
33
+ try {
34
+ if (page.title) {
35
+ title = page.title.match(regexp);
36
+ } else {
37
+ if (page.url == "/") {
38
+ page.title = "{{ site.title }}";
39
+ } else {
40
+ page.title = page.url;
41
+ }
42
+ }
43
+ } catch (e) {
44
+ feedback("search", e.message);
45
+ }
46
+ try {
47
+ if (page.content) {
48
+ page.content = $("<div/>").html(page.content).text();
49
+ content = page.content.match(regexp);
50
+ }
51
+ } catch (e) {
52
+ feedback("search", e.message);
53
+ }
54
+ if (title || content) {
55
+ let result = [`<a href="{{ site.baseurl }}${page.url}?highlight=${text}">${page.title}</a>`];
56
+ if (content) {
57
+ let [min, max] = [content.index - 100, content.index + 100];
58
+ let [prefix, suffix] = ["...", "..."];
59
+
60
+ if (min < 0) {
61
+ prefix = "";
62
+ min = 0;
63
+ }
64
+ if (max > page.content.length) {
65
+ suffix = "";
66
+ max = page.content.length;
67
+ }
68
+ result.push(`<p class="context">${prefix}${slice(page.content ,min, max)}${suffix}</p>`);
69
+ }
70
+ results.push(`<li>${result.join("")}</li>`);
71
+ }
72
+ }
73
+ if (results.length > 0 && text.length > 0) {
74
+ $("#search-results ul.search").html(results.join(""));
75
+ $("#search-results p.search-summary").html("{{ __search_results_found }}".replace("#", results.length));
76
+ } else {
77
+ $("#search-results ul.search").empty();
78
+ $("#search-results p.search-summary").html("{{ __search_results_not_found }}");
79
+ }
80
+ $("#rtd-search-form [name='q']").val(text);
81
+ $("#search-results h2").html("{{ __search_results }}");
82
+ }
83
+
84
+ function reset() {
85
+ const link = $(".wy-menu-vertical").find(`[href="${location.pathname}"]`);
86
+ if (link.length > 0) {
87
+ $(".wy-menu-vertical .current").removeClass("current");
88
+ link.addClass("current");
89
+ link.closest("li.toctree-l1").parent().addClass("current");
90
+ link.closest("li.toctree-l1").addClass("current");
91
+ link.closest("li.toctree-l2").addClass("current");
92
+ link.closest("li.toctree-l3").addClass("current");
93
+ link.closest("li.toctree-l4").addClass("current");
94
+ link.closest("li.toctree-l5").addClass("current");
95
+ }
96
+ }
97
+
98
+ function admonition() {
99
+ const items = {
100
+ note: "{{ __note }}",
101
+ tip: "{{ __tip }}",
102
+ warning: "{{ __warning }}",
103
+ danger: "{{ __danger }}"
104
+ };
105
+ for (let item in items) {
106
+ let content = $(`.language-${item}`).html();
107
+ $(`.language-${item}`).replaceWith(`<div class="admonition ${item}"><p class="admonition-title">${items[item]}</p><p>${content}</p></div>`);
108
+ }
109
+ }
110
+
111
+ $(document).ready(function() {
112
+ if (location.pathname == "{{ site.baseurl }}/search.html") {
113
+ $.ajax({
114
+ dataType: "json",
115
+ url: "{{ site.baseurl }}/pages.json"
116
+ })
117
+ .done(search)
118
+ .fail((xhr, message) => feedback("search", message));
119
+ }
120
+ admonition();
121
+ anchors.add();
122
+ highlight();
123
+ SphinxRtdTheme.Navigation.reset = reset;
124
+ SphinxRtdTheme.Navigation.enable(true);
125
+ });
@@ -1,29 +1,37 @@
1
1
  <div role="navigation" aria-label="breadcrumbs navigation">
2
2
  <ul class="wy-breadcrumbs">
3
- <li><a href="{{ site.baseurl }}/" class="icon icon-home"></a>&raquo;</li>
4
- {% case page.url %}
5
- {% when "/search.html" %}
3
+ <li>
4
+ <a href="{{ site.baseurl }}/" class="icon icon-home"></a><i class="fa fa-angle-double-right"></i>
5
+ </li>
6
+ {%- case page.url -%}
7
+ {%- when "/search.html" %}
6
8
  <li>{{ __search }}</li>
7
- {% when "/404.html" %}
9
+ {%- when "/404.html" %}
8
10
  <li>{{ __404 }}</li>
9
- {% else %}
10
- {% assign blocks = page.path | split: "/" %}
11
- {% assign length = blocks | size %}
12
- {% if page.dir == page.url and page.url != "/" %}
13
- {% assign length = blocks | size | minus: 1 %}
14
- {% endif %}
15
- {% for block in blocks limit: length %}
16
- {% if forloop.last %}
11
+ {%- else -%}
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 %}
17
19
  <li>{{ page.title }}</li>
18
- {% else %}
19
- {% capture href %}{{ site.baseurl }}/{% for block in blocks limit: forloop.index %}{{ block | append: "/" }}{% endfor %}{% endcapture %}
20
- <li><a href="{{ href }}">{{ block | capitalize }}</a> &raquo;</li>
21
- {% endif %}
22
- {% endfor %}
23
- {% endcase %}
24
- <li class="wy-breadcrumbs-aside">
25
- <a href="{{ github_edit_link }}" class="fa fa-github" target="_blank"> {{ __edit }}</a>
26
- </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 }}">{{ block | split: "." | last | capitalize }}</a><i class="fa fa-angle-double-right"></i>
26
+ </li>
27
+ {%- endif -%}
28
+ {%- endfor -%}
29
+ {%- endcase %}
30
+ {%- if site.edit -%}
31
+ <li class="wy-breadcrumbs-aside">
32
+ <a href="{{ github_edit_link }}" class="fa fa-edit" target="_blank"></a>
33
+ </li>
34
+ {%- endif -%}
27
35
  </ul>
28
36
  <hr>
29
37
  </div>
@@ -0,0 +1,15 @@
1
+ {%- include reset/site_pages.liquid -%}
2
+ {%- include reset/workdir.liquid -%}
3
+
4
+ {%- assign base = page.dir | append: "temp/" | split: "/" | size -%}
5
+ {%- assign size = workdir_level | minus: base -%}
6
+ {%- assign size_p1 = size | plus: 1 -%}
7
+
8
+ {%- assign dir = site_pages | where: "url", workdir | first %}
9
+ {% include extend/tabs.liquid size=size %}- [{{ dir.title | default: dir.url }}]({{ site.baseurl | append: dir.url }})
10
+
11
+ {%- for item in workdir_files %}
12
+ {% include extend/tabs.liquid size=size_p1 %}- [{{ item.title | default: item.url }}]({{ site.baseurl | append: item.url }})
13
+ {%- endfor -%}
14
+
15
+ {%- for workdir in workdir_dirs %}{% include extend/list.liquid %}{% endfor -%}
@@ -0,0 +1,2 @@
1
+ {%- assign tab = " " -%}
2
+ {%- for temp in (1..include.size) %}{{ tab }}{% endfor -%}
@@ -1,26 +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 and site.show_sorted != false -%}
19
+ {{ item.sort }}.
20
+ {%- endif %}
18
21
  {{ item.title | default: item.url }}
19
22
  </a>
20
23
  </li>
21
24
  {%- endfor -%}
22
- {%- for workspace in workspace_dirs -%}
23
- {%- assign level = workspace | append: "temp/" | split: "/" | size | minus: 3 %}
24
- <li class="toctree-l{{ level }}">{% include toctree_ln.liquid %}</li>
25
+ {%- for workdir in workdir_dirs -%}
26
+ {%- assign level = workdir | append: "temp/" | split: "/" | size | minus: 3 %}
27
+ <li class="toctree-l{{ level }}">{% include extend/toctree.liquid %}</li>
25
28
  {%- endfor -%}
26
29
  </ul>
@@ -14,14 +14,24 @@
14
14
  </div>
15
15
  {%- endif -%}
16
16
  <hr>
17
- <div role="contentinfo" class="copyright">
18
- <p>
19
- <i class="fa fa-copyright"></i> {{ __copyright }}
20
- {{ site.time | date: "%Y" }},
21
- {{ author }}
22
- <span class="commit">
23
- {{ __revision }} <code>{{ commit }}</code>
24
- </span>
25
- </p>
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: "-" }}
23
+ {%- endif -%}
24
+ {{ site.time | date: "%Y" }},
25
+ {{ author }}
26
+ {% if site.copyright.revision -%}
27
+ <span class="commit">
28
+ {{ __revision }} <code>{{ commit }}</code>
29
+ </span>
30
+ {%- endif -%}
31
+ </p>
32
+ </div>
33
+ {%- endif -%}
34
+ <div role="contentinfo" class="copyright-rtd">
35
+ <a href="https://github.com/rundocs/jekyll-rtd-theme">jekyll-rtd-theme</a>
26
36
  </div>
27
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 = "您的搜索没有匹配到任何文档, 请确保所有字符拼写正确!" -%}