jekyll-rtd-theme 0.1.0 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -32
- data/_includes/{versions.liquid → addons.liquid} +4 -4
- data/_includes/addons/comments/disqus.liquid +10 -0
- data/_includes/addons/source/github.liquid +3 -9
- data/_includes/assets/js/script.js +1 -0
- data/_includes/breadcrumbs.liquid +29 -25
- data/_includes/extend/list.liquid +15 -0
- data/_includes/extend/tabs.liquid +2 -0
- data/_includes/extend/toctree.liquid +29 -0
- data/_includes/footer.liquid +17 -10
- data/_includes/list.liquid +10 -0
- data/_includes/reset/html.liquid +1 -0
- data/_includes/reset/snippets.liquid +11 -3
- data/_includes/reset/variables.liquid +25 -5
- data/_includes/reset/workspace.liquid +17 -0
- data/_includes/toctree.liquid +17 -0
- data/_layouts/default.liquid +27 -17
- data/_layouts/plugins/compress.liquid +1 -1
- data/_sass/rougify/base16.dark.scss +78 -0
- data/_sass/rougify/base16.light.scss +77 -0
- data/_sass/rougify/base16.monokai.dark.scss +78 -0
- data/_sass/rougify/base16.monokai.light.scss +77 -0
- data/_sass/rougify/base16.monokai.scss +78 -0
- data/_sass/rougify/base16.scss +77 -0
- data/_sass/rougify/base16.solarized.dark.scss +78 -0
- data/_sass/rougify/base16.solarized.light.scss +77 -0
- data/_sass/rougify/base16.solarized.scss +77 -0
- data/_sass/rougify/bw.scss +63 -0
- data/_sass/rougify/colorful.scss +170 -0
- data/_sass/rougify/github.scss +209 -0
- data/_sass/rougify/gruvbox.dark.scss +84 -0
- data/_sass/rougify/gruvbox.light.scss +84 -0
- data/_sass/rougify/gruvbox.scss +84 -0
- data/_sass/rougify/igorpro.scss +32 -0
- data/_sass/rougify/magritte.scss +167 -0
- data/_sass/rougify/molokai.scss +208 -0
- data/_sass/rougify/monokai.scss +210 -0
- data/_sass/rougify/monokai.sublime.scss +198 -0
- data/_sass/rougify/pastie.scss +146 -0
- data/_sass/rougify/thankful_eyes.scss +172 -0
- data/_sass/rougify/tulip.scss +163 -0
- data/_sass/style.scss +4 -0
- data/assets/css/fonts/Roboto-Slab-Bold.woff +0 -0
- data/assets/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
- data/assets/css/fonts/Roboto-Slab-Regular.woff +0 -0
- data/assets/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
- data/assets/css/fonts/fontawesome-webfont.eot +0 -0
- data/assets/css/fonts/fontawesome-webfont.svg +2671 -0
- data/assets/css/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/css/fonts/fontawesome-webfont.woff +0 -0
- data/assets/css/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/css/fonts/lato-bold-italic.woff +0 -0
- data/assets/css/fonts/lato-bold-italic.woff2 +0 -0
- data/assets/css/fonts/lato-bold.woff +0 -0
- data/assets/css/fonts/lato-bold.woff2 +0 -0
- data/assets/css/fonts/lato-normal-italic.woff +0 -0
- data/assets/css/fonts/lato-normal-italic.woff2 +0 -0
- data/assets/css/fonts/lato-normal.woff +0 -0
- data/assets/css/fonts/lato-normal.woff2 +0 -0
- data/assets/css/theme.css +4 -0
- data/assets/favicon.svg +5 -0
- data/assets/js/anchor.min.js +9 -0
- data/assets/js/jquery.min.js +2 -0
- data/assets/js/theme.js +1 -0
- metadata +56 -7
- data/_includes/sidebar.liquid +0 -52
- data/assets/css/style.scss +0 -2
- data/assets/favicon.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7147e810bfa78250ce75f3dd42eb6de5ba2b92c09331572836840d660b34acec
|
4
|
+
data.tar.gz: 969ba7a43596ebcd755df47107fce7934fd2ace44609d0af9e7c6dd8dd745023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 274f7cbe15c835a2f5194a71416937a1a4b4058f85030a51598198616503851cd500fa38084702cea1ce0b63c1bca39710c2c38441f32614f56c10f9be35b6f6
|
7
|
+
data.tar.gz: 6a5501806745641df092d10f8ed017809ba3aa1f732bfd49a94446e872944647663f7d1f478a363a6fcd7c1267ab9ab5a3c7ec675549955fb61439fdde54c876
|
data/README.md
CHANGED
@@ -1,43 +1,42 @@
|
|
1
1
|
# jekyll-rtd-theme
|
2
|
-
![
|
3
|
-
![
|
4
|
-
![
|
2
|
+
[![](https://github.com/rundocs/jekyll-rtd-theme/workflows/gh-pages/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]
|
5
7
|
|
6
8
|
Just another Jekyll theme for GitHub Pages based on ReadtheDocs's sphinx_rtd_theme styles
|
7
9
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
#### Remote theme method
|
24
|
-
1. Add the following to your site's `_config.yml`
|
25
|
-
```yml
|
26
|
-
remote_theme: rundocs/jekyll-rtd-theme
|
27
|
-
```
|
28
|
-
2. Remove any other `theme` or `remote_theme` entry
|
29
|
-
|
10
|
+
![][demo]
|
11
|
+
|
12
|
+
## Notable features
|
13
|
+
- Write documents directly, like docsify!
|
14
|
+
- Only need one file `_config.yml` to configure site
|
15
|
+
- Bundled as a "theme gem" for easier installation/upgrading.
|
16
|
+
- Compatible with GitHub Pages.
|
17
|
+
- Optimized for search engines with support for Open Graph data.
|
18
|
+
- Optimized for search engines with `robots.txt` and `sitemap.xml`.
|
19
|
+
- Search engine support
|
20
|
+
- Commenting support
|
21
|
+
- Google,Baidu,CNZZ Analytics support.
|
22
|
+
- UI localized text in English(default), Chinese(中文)
|
23
|
+
- And many features waiting for you to discover.
|
30
24
|
|
31
25
|
## Roadmap
|
32
26
|
See the [open issues][issues] for a list of proposed features (and known issues).
|
33
27
|
|
28
|
+
## Documents
|
29
|
+
For full documentation, see: [https://rundocs.github.io/jekyll-rtd-theme][site]
|
34
30
|
|
35
|
-
##
|
36
|
-
|
37
|
-
2. `cd` into the theme's directory
|
38
|
-
3. Run `bundle` to install the necessary dependencies
|
39
|
-
4. Run `bundle exec jekyll server` to start the preview server
|
40
|
-
5. Visit [`http://localhost:4000`](http://localhost:4000) in your browser to preview the theme
|
31
|
+
## The License
|
32
|
+
The theme is available as open source under the terms of the [MIT License][license].
|
41
33
|
|
42
34
|
|
43
|
-
[
|
35
|
+
[repository]: https://github.com/rundocs/jekyll-rtd-theme
|
36
|
+
[issues]: https://github.com/rundocs/jekyll-rtd-theme/issues
|
37
|
+
[license]: https://github.com/rundocs/jekyll-rtd-theme/blob/master/LICENSE
|
38
|
+
[site]: https://rundocs.github.io/jekyll-rtd-theme
|
39
|
+
[rubygem]: https://rubygems.org/gems/jekyll-rtd-theme
|
40
|
+
[cdn]: https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme/
|
41
|
+
[codefactor]: https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme
|
42
|
+
[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
|
9
|
-
{% for
|
10
|
-
{% include addons/source/{{
|
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
|
-
{
|
4
|
-
|
5
|
-
|
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>
|
@@ -1,33 +1,37 @@
|
|
1
1
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
2
2
|
<ul class="wy-breadcrumbs">
|
3
|
-
<li
|
4
|
-
|
5
|
-
|
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
|
-
{
|
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> »</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
|
-
|
29
|
-
|
30
|
-
|
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,29 @@
|
|
1
|
+
{%- include reset/workspace.liquid %}
|
2
|
+
|
3
|
+
{%- assign dir = html_pages | where: "url", workspace | first -%}
|
4
|
+
{%- if workspace_level == 2 %}
|
5
|
+
<p class="caption"><span class="caption-text">{{ dir.title | default: dir.url }}</span></p>
|
6
|
+
{%- else %}
|
7
|
+
<a class="reference internal" href="{{ site.baseurl | append: dir.url }}">{{ dir.title | default: dir.url }}</a>
|
8
|
+
{%- endif -%}
|
9
|
+
|
10
|
+
<ul>
|
11
|
+
{%- for item in workspace_files -%}
|
12
|
+
{%- assign level = item.dir | append: "temp/" | split: "/" | size | minus: 2 -%}
|
13
|
+
{%- capture current -%}
|
14
|
+
{%- if page.url == item.url %}current{% endif -%}
|
15
|
+
{%- endcapture %}
|
16
|
+
<li class="toctree-l{{ level }} {{ current }}">
|
17
|
+
<a class="reference internal {{ current }}" href="{{ site.baseurl | append: item.url }}">
|
18
|
+
{%- if item.sort -%}
|
19
|
+
{{ item.sort }}.
|
20
|
+
{%- endif %}
|
21
|
+
{{ item.title | default: item.url }}
|
22
|
+
</a>
|
23
|
+
</li>
|
24
|
+
{%- endfor -%}
|
25
|
+
{%- for workspace in workspace_dirs -%}
|
26
|
+
{%- assign level = workspace | append: "temp/" | split: "/" | size | minus: 3 %}
|
27
|
+
<li class="toctree-l{{ level }}">{% include extend/toctree.liquid %}</li>
|
28
|
+
{%- endfor -%}
|
29
|
+
</ul>
|
data/_includes/footer.liquid
CHANGED
@@ -14,14 +14,21 @@
|
|
14
14
|
</div>
|
15
15
|
{%- endif -%}
|
16
16
|
<hr>
|
17
|
-
|
18
|
-
<
|
19
|
-
<
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
{
|
24
|
-
|
25
|
-
|
26
|
-
|
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 -%}
|
data/_includes/reset/html.liquid
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
-
{%-
|
2
|
-
|
3
|
-
|
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
|
7
|
-
|
8
|
-
{%-
|
4
|
+
{%- assign version = "0.1.6" -%}
|
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: ", " -%}
|
@@ -0,0 +1,17 @@
|
|
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: "|" -%}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{%- include reset/workspace.liquid %}
|
2
|
+
|
3
|
+
<ul>
|
4
|
+
{%- for item in workspace_files -%}
|
5
|
+
{%- assign level = item.dir | append: "temp/" | split: "/" | size | minus: 1 -%}
|
6
|
+
{%- capture current -%}
|
7
|
+
{%- if page.url == item.url %}current{% endif -%}
|
8
|
+
{%- endcapture %}
|
9
|
+
<li class="toctree-l{{ level }} {{ current }}">
|
10
|
+
<a class="reference internal {{ current }}" href="{{ site.baseurl | append: item.url }}">
|
11
|
+
{{ item.title | default: item.url }}
|
12
|
+
</a>
|
13
|
+
</li>
|
14
|
+
{%- endfor %}
|
15
|
+
</ul>
|
16
|
+
|
17
|
+
{%- for workspace in workspace_dirs %}{% include extend/toctree.liquid %}{% endfor -%}
|
data/_layouts/default.liquid
CHANGED
@@ -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 }}
|
12
|
+
{%- else -%}
|
13
|
+
theme: {{ site.theme }} 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="
|
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
|
-
<
|
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.
|
48
|
+
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
|
44
49
|
<!-- script -->
|
45
|
-
<script src="{{
|
46
|
-
<script src="{{ cdn }}/js/theme.js"></script>
|
47
|
-
<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
|
-
|
57
|
-
{{ site.
|
58
|
-
|
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
|
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
|
-
|
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
|
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 -%}
|