jekyll-rtd-theme 0.1.1 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +34 -40
  3. data/_includes/{versions.liquid → addons.liquid} +4 -4
  4. data/_includes/addons/comments/disqus.liquid +10 -0
  5. data/_includes/addons/source/github.liquid +3 -9
  6. data/_includes/assets/js/script.js +1 -0
  7. data/_includes/breadcrumbs.liquid +29 -25
  8. data/_includes/extend/list.liquid +15 -0
  9. data/_includes/extend/tabs.liquid +2 -0
  10. data/_includes/{toctree_ln.liquid → extend/toctree.liquid} +4 -1
  11. data/_includes/footer.liquid +17 -10
  12. data/_includes/list.liquid +10 -0
  13. data/_includes/reset/html.liquid +1 -0
  14. data/_includes/reset/snippets.liquid +11 -3
  15. data/_includes/reset/variables.liquid +25 -5
  16. data/_includes/{toctree_l1.liquid → toctree.liquid} +1 -1
  17. data/_layouts/default.liquid +27 -17
  18. data/_layouts/plugins/compress.liquid +1 -1
  19. data/_sass/rougify/base16.dark.scss +78 -0
  20. data/_sass/rougify/base16.light.scss +77 -0
  21. data/_sass/rougify/base16.monokai.dark.scss +78 -0
  22. data/_sass/rougify/base16.monokai.light.scss +77 -0
  23. data/_sass/rougify/base16.monokai.scss +78 -0
  24. data/_sass/rougify/base16.scss +77 -0
  25. data/_sass/rougify/base16.solarized.dark.scss +78 -0
  26. data/_sass/rougify/base16.solarized.light.scss +77 -0
  27. data/_sass/rougify/base16.solarized.scss +77 -0
  28. data/_sass/rougify/bw.scss +63 -0
  29. data/_sass/rougify/colorful.scss +170 -0
  30. data/_sass/rougify/github.scss +209 -0
  31. data/_sass/rougify/gruvbox.dark.scss +84 -0
  32. data/_sass/rougify/gruvbox.light.scss +84 -0
  33. data/_sass/rougify/gruvbox.scss +84 -0
  34. data/_sass/rougify/igorpro.scss +32 -0
  35. data/_sass/rougify/magritte.scss +167 -0
  36. data/_sass/rougify/molokai.scss +208 -0
  37. data/_sass/rougify/monokai.scss +210 -0
  38. data/_sass/rougify/monokai.sublime.scss +198 -0
  39. data/_sass/rougify/pastie.scss +146 -0
  40. data/_sass/rougify/thankful_eyes.scss +172 -0
  41. data/_sass/rougify/tulip.scss +163 -0
  42. data/_sass/style.scss +4 -0
  43. data/assets/css/fonts/Roboto-Slab-Bold.woff +0 -0
  44. data/assets/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
  45. data/assets/css/fonts/Roboto-Slab-Regular.woff +0 -0
  46. data/assets/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
  47. data/assets/css/fonts/fontawesome-webfont.eot +0 -0
  48. data/assets/css/fonts/fontawesome-webfont.svg +2671 -0
  49. data/assets/css/fonts/fontawesome-webfont.ttf +0 -0
  50. data/assets/css/fonts/fontawesome-webfont.woff +0 -0
  51. data/assets/css/fonts/fontawesome-webfont.woff2 +0 -0
  52. data/assets/css/fonts/lato-bold-italic.woff +0 -0
  53. data/assets/css/fonts/lato-bold-italic.woff2 +0 -0
  54. data/assets/css/fonts/lato-bold.woff +0 -0
  55. data/assets/css/fonts/lato-bold.woff2 +0 -0
  56. data/assets/css/fonts/lato-normal-italic.woff +0 -0
  57. data/assets/css/fonts/lato-normal-italic.woff2 +0 -0
  58. data/assets/css/fonts/lato-normal.woff +0 -0
  59. data/assets/css/fonts/lato-normal.woff2 +0 -0
  60. data/assets/css/theme.css +4 -0
  61. data/assets/favicon.svg +5 -0
  62. data/assets/js/anchor.min.js +9 -0
  63. data/assets/js/jquery.min.js +2 -0
  64. data/assets/js/theme.js +1 -0
  65. metadata +56 -11
  66. data/assets/css/style.scss +0 -2
  67. data/assets/favicon.png +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a12e67932cfe2e811f10cbe9a3e7bf276f47b06cbd21f37e6975689b9ed2bf65
4
- data.tar.gz: 40448cc7793251a98c3d0e22f7d5a7d9534be8ebf7df216ef246f8529a433cf3
3
+ metadata.gz: 4dc19b8440dd2ed5d05e227af867ca52c58efc39a3640f10c3a69e209d038556
4
+ data.tar.gz: 3f3c62f5541bb6243060d6451c43da375fae232b5d3432e95c8bf05135a64914
5
5
  SHA512:
6
- metadata.gz: 8fde10bac64b04ce72638df78452ee1b5fdb35fe9abd8041899f12a6a417471712af7ec79462eb8406b6fbbe4101a6101e1e1ca2ecad3ce962fab8e6ac76a205
7
- data.tar.gz: ffd8272abdb7b7079803171cfffe4814e54b553ad620ba3e441565c392c75c1556773c35404f5009ba0f0f769179a68fd262a07aea78f7c8f2d26a5787bad027
6
+ metadata.gz: 5dc0bf6face01e8b48ee5a7a125b23f2f60bf75a0079c857d3e8b569f112d2ca125c69b866bb74fa72e277038f054c7801b5b033fc84a753ca49d446b0776723
7
+ data.tar.gz: ac4ff74d87393b52578a45aecbd4a22894cad693120decac835d969c88266b5ed0f78aa8a665122636a7f57481607b2cee0dd1e542afacc44d99760b59c4ac10
data/README.md CHANGED
@@ -1,49 +1,43 @@
1
1
  # jekyll-rtd-theme
2
- ![gh-pages](https://github.com/rundocs/jekyll-rtd-theme/workflows/gh-pages/badge.svg)
3
- [![Gem Version](https://img.shields.io/gem/v/jekyll-rtd-theme)][gem]
4
- [![Gem Downloads](https://img.shields.io/gem/dt/jekyll-rtd-theme)][gem]
5
- [![Users](https://img.shields.io/endpoint?url=https://rundocs-analytics.glitch.me/shields)](https://github.com/rundocs/analytics)
6
- [![Jsdelivr hits](https://data.jsdelivr.com/v1/package/gh/rundocs/static/badge)](https://cdn.jsdelivr.net/gh/rundocs/static/)
7
- [![CodeFactor](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme/badge)](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme)
8
-
9
- Just another Jekyll theme for GitHub Pages based on ReadtheDocs's sphinx_rtd_theme styles
10
-
11
- ## Installation
12
- There are two ways to install: as a gem-based theme, as a remote theme (GitHub Pages compatible)
13
-
14
- #### Gem-based method
15
- 1. Add the following to your github repository's `Gemfile`
16
- ```ruby
17
- source "https://rubygems.org"
18
-
19
- gem "jekyll-rtd-theme"
20
-
21
- gem "github-pages", group: :jekyll_plugins
22
- ```
23
- 2. Add the following to your github repository's `_config.yml`
24
- ```yml
25
- theme: jekyll-rtd-theme
26
- ```
27
-
28
- #### Remote theme method
29
- 1. Add the following to your site's `_config.yml`
30
- ```yml
31
- remote_theme: rundocs/jekyll-rtd-theme
32
- ```
33
- 2. Remove any other `theme` or `remote_theme` entry
34
-
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.
35
25
 
36
26
  ## Roadmap
37
27
  See the [open issues][issues] for a list of proposed features (and known issues).
38
28
 
29
+ ## Documents
30
+ For full documentation, see: [https://rundocs.github.io/jekyll-rtd-theme][site]
39
31
 
40
- ## Contributing
41
- 1. Clone down the theme's repository (`git clone https://github.com/rundocs/jekyll-rtd-theme.git`)
42
- 2. `cd` into the theme's directory
43
- 3. Run `bundle` to install the necessary dependencies
44
- 4. Run `bundle exec jekyll server` to start the preview server
45
- 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].
46
34
 
47
35
 
48
- [gem]: https://rubygems.org/gems/jekyll-rtd-theme
36
+ [repository]: https://github.com/rundocs/jekyll-rtd-theme
49
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,13 +1,13 @@
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_commit %}{{ commit }}{% endif %}
5
5
  <span class="fa fa-caret-down"></span>
6
6
  </span>
7
7
  <div class="rst-other-versions">
8
- {%- assign addons = "github,gems,analytics" | split: "," -%}
9
- {% for name in addons -%}
10
- {% include addons/source/{{ name }}.liquid %}
8
+ {%- assign items = site.addons | default: addons -%}
9
+ {% for item in items -%}
10
+ {% include addons/source/{{ item }}.liquid %}
11
11
  {% endfor -%}
12
12
  <hr>
13
13
  <small>
@@ -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 %}
@@ -1,12 +1,6 @@
1
1
  <dl>
2
2
  <dt>{{ __github }}</dt>
3
- {%- if jekyll.environment == "production" -%}
4
- <dd><a href="{{ site.github.repository_url }}"><i class="fa fa-github"></i> {{ __homepage }}</a></dd>
5
- <dd><a href="{{ site.github.zip_url }}"><i class="fa fa-download"></i> {{ __download }}</a></dd>
6
- <dd><a href="{{ site.github.issues_url }}"><i class="fa fa-question-circle-o"></i> {{ __issues }}</a></dd>
7
- {%- else -%}
8
- <dd><a href="#"><i class="fa fa-github"></i> {{ __homepage }}</a></dd>
9
- <dd><a href="#"><i class="fa fa-download"></i> {{ __download }}</a></dd>
10
- <dd><a href="#"><i class="fa fa-question-circle-o"></i> {{ __issues }}</a></dd>
11
- {%- endif -%}
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>
12
6
  </dl>
@@ -59,6 +59,7 @@ $(document).ready(function() {
59
59
  $.getJSON("{{ site.baseurl }}/data.json", search);
60
60
  }
61
61
  admonition();
62
+ anchors.add();
62
63
  SphinxRtdTheme.Navigation.reset = reset;
63
64
  SphinxRtdTheme.Navigation.enable(true);
64
65
  });
@@ -1,33 +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 %}
17
- <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
- {%- if jekyll.environment == "production" -%}
26
- <a href="{% github_edit_link %}" class="fa fa-github" target="_blank"> {{ __edit }}</a>
27
11
  {%- else -%}
28
- <a href="#" class="fa fa-github" target="_blank"> {{ __edit }}</a>
29
- {%- endif -%}
30
- </li>
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 }}">{{ 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-github" target="_blank"> {{ __edit }}</a>
33
+ </li>
34
+ {%- endif -%}
31
35
  </ul>
32
36
  <hr>
33
37
  </div>
@@ -0,0 +1,15 @@
1
+ {%- include reset/html.liquid -%}
2
+ {%- include reset/workspace.liquid -%}
3
+
4
+ {%- assign base = page.dir | append: "temp/" | split: "/" | size -%}
5
+ {%- assign size = workspace_level | minus: base -%}
6
+ {%- assign size_p1 = size | plus: 1 -%}
7
+
8
+ {%- assign dir = html_pages | where: "url", workspace | first %}
9
+ {% include extend/tabs.liquid size=size %}- [{{ dir.title | default: dir.url }}]({{ site.baseurl | append: dir.url }})
10
+
11
+ {%- for item in workspace_files %}
12
+ {% include extend/tabs.liquid size=size_p1 %}- [{{ item.title | default: item.url }}]({{ site.baseurl | append: item.url }})
13
+ {%- endfor -%}
14
+
15
+ {%- for workspace in workspace_dirs %}{% include extend/list.liquid %}{% endfor -%}
@@ -0,0 +1,2 @@
1
+ {%- assign tab = " " -%}
2
+ {%- for temp in (1..include.size) %}{{ tab }}{% endfor -%}
@@ -15,12 +15,15 @@
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 -%}
19
+ {{ item.sort }}.
20
+ {%- endif %}
18
21
  {{ item.title | default: item.url }}
19
22
  </a>
20
23
  </li>
21
24
  {%- endfor -%}
22
25
  {%- for workspace in workspace_dirs -%}
23
26
  {%- assign level = workspace | append: "temp/" | split: "/" | size | minus: 3 %}
24
- <li class="toctree-l{{ level }}">{% include toctree_ln.liquid %}</li>
27
+ <li class="toctree-l{{ level }}">{% include extend/toctree.liquid %}</li>
25
28
  {%- endfor -%}
26
29
  </ul>
@@ -14,14 +14,21 @@
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
- {{ site.copyright | default: site.github.owner_name }}
22
- <span class="commit">
23
- {{ __revision }} <code>{{ commit }}</code>
24
- </span>
25
- </p>
26
- </div>
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 -%}
27
34
  </footer>
@@ -0,0 +1,10 @@
1
+ {%- include reset/html.liquid -%}
2
+ {%- include reset/workspace.liquid workspace=page.dir -%}
3
+
4
+ {%- for item in workspace_files %}
5
+ - [{{ item.title | default: item.url }}]({{ site.baseurl | append: item.url }})
6
+ {%- endfor -%}
7
+
8
+ {%- if include.all -%}
9
+ {%- for workspace in workspace_dirs %}{% include extend/list.liquid %}{% endfor -%}
10
+ {%- endif -%}
@@ -1,5 +1,6 @@
1
1
  {%- assign html_pages = site.html_pages
2
2
  | sort: "path"
3
+ | sort: "sort"
3
4
  | where_exp: "item", "item.url != '/404.html'"
4
5
  | where_exp: "item", "item.url != '/search.html'" -%}
5
6
  {%- assign html_dirs = html_pages
@@ -1,3 +1,11 @@
1
- {%- assign site_style = '@import "style.scss";' -%}
2
- {%- assign site_fluid = '@import "fluid.scss";' -%}
3
- {%- capture site_script %}{% include assets/js/script.js %}{% endcapture -%}
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,8 +1,28 @@
1
1
  {%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
2
- {%- assign author = site.github.owner_name -%}
3
- {%- assign commit = site.github.build_revision | slice: 0, 7 -%}
4
2
  {%- assign schema_url = page.url | absolute_url | xml_escape -%}
5
3
  {%- assign schema_lastmod = site.time | date_to_xmlschema -%}
6
- {%- assign npm = "https://cdn.jsdelivr.net/npm" -%}
7
- {%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/static" -%}
8
- {%- assign rouge_style = site.rouge_style | default: "github" -%}
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: ", " -%}
@@ -14,4 +14,4 @@
14
14
  {%- endfor %}
15
15
  </ul>
16
16
 
17
- {%- for workspace in workspace_dirs %}{% include toctree_ln.liquid %}{% endfor -%}
17
+ {%- for workspace in workspace_dirs %}{% include extend/toctree.liquid %}{% endfor -%}
@@ -5,6 +5,15 @@ layout: plugins/compress
5
5
  {%- include reset/start.liquid -%}
6
6
 
7
7
  <!DOCTYPE html>
8
+
9
+ <!--
10
+ {% if site.remote_theme -%}
11
+ remote_theme: {{ site.remote_theme }}, based on v{{ version }}
12
+ {%- else -%}
13
+ theme: {{ site.theme | default: "jekyll-rtd-theme, based on" }} v{{ version }}
14
+ {%- endif %}
15
+ -->
16
+
8
17
  <html class="writer-html5" lang="{{ lang }}">
9
18
 
10
19
  <head>
@@ -15,7 +24,7 @@ layout: plugins/compress
15
24
  <meta name="description" content="{{ description }}">
16
25
  <meta name="author" content="{{ author }}">
17
26
  <meta name="revised" content="{{ commit }}">
18
- <meta name="generator" content="Jekyll v{{ jekyll.version }}">
27
+ <meta name="generator" content="jekyll-rtd-theme v{{ version }}">
19
28
  <!-- custom meta -->
20
29
  {% for meta in site.meta -%}
21
30
  <meta name="{{ meta.first }}" content="{{ meta.last }}">
@@ -33,18 +42,15 @@ layout: plugins/compress
33
42
  {%- endif -%}
34
43
  <link rel="canonical" href="{{ schema_url }}">
35
44
  <!-- theme -->
36
- <link rel="stylesheet" href="{{ cdn }}/css/theme.css">
37
- <link rel="stylesheet" href="{{ cdn }}/css/rouge/{{ rouge_style }}.css">
38
- <style>{{ site.style | default: site_style | scssify }}</style>
39
- {%- if site.fluid -%}
40
- <style>{{ site_fluid | scssify }}</style>
41
- {%- endif %}
45
+ <link rel="stylesheet" href="{{ cdn }}/assets/css/theme.css">
46
+ <style>{{ site_style | scssify }}</style>
42
47
  <!-- icon -->
43
- <link rel="icon" href="{{ site.baseurl }}/assets/favicon.png">
48
+ <link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
44
49
  <!-- script -->
45
- <script src="{{ npm }}/jquery/dist/jquery.min.js"></script>
46
- <script src="{{ cdn }}/js/theme.js"></script>
47
- <script>{{ site.script | default : site_script }}</script>
50
+ <script src="{{ cdn }}/assets/js/jquery.min.js"></script>
51
+ <script src="{{ cdn }}/assets/js/theme.js"></script>
52
+ <script src="{{ cdn }}/assets/js/anchor.min.js"></script>
53
+ <script>{{ site_script }}</script>
48
54
  </head>
49
55
 
50
56
  <body class="wy-body-for-nav">
@@ -53,13 +59,17 @@ layout: plugins/compress
53
59
  <nav data-toggle="wy-nav-shift" class="wy-nav-side">
54
60
  <div class="wy-side-scroll">
55
61
  <div class="wy-side-nav-search">
56
- <a href="{{ site.baseurl }}/" class="icon icon-home">
57
- {{ site.title }}
58
- </a>
62
+ {% if site.logo %}
63
+ <a href="{{ site.baseurl }}/">
64
+ <img src="{{ site.baseurl }}/{{ site.logo }}" class="logo" alt="{{ site.title }}">
65
+ </a>
66
+ {% else %}
67
+ <a href="{{ site.baseurl }}/" class="icon icon-home"> {{ site.title }}</a>
68
+ {% endif %}
59
69
  {% include searchbox.liquid %}
60
70
  </div>
61
71
  <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
62
- {% include toctree_l1.liquid %}
72
+ {% include toctree.liquid %}
63
73
  </div>
64
74
  {%- if site.embed -%}
65
75
  <div class="wy-embed-wrap">
@@ -85,14 +95,14 @@ layout: plugins/compress
85
95
  <div class="section">{{ content }}</div>
86
96
  {%- endif %}
87
97
  </div>
88
- <div class="articleComments"></div>
98
+ {% include addons/comments/disqus.liquid %}
89
99
  </div>
90
100
  {% include footer.liquid %}
91
101
  </div>
92
102
  </div>
93
103
  </section>
94
104
  </div>
95
- {%- include versions.liquid -%}
105
+ {%- if site.addons %}{% include addons.liquid %}{% endif %}
96
106
  <!-- analytics -->
97
107
  {%- include addons/analytics/baidu.liquid -%}
98
108
  {%- include addons/analytics/cnzz.liquid -%}