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.
- checksums.yaml +4 -4
- data/README.md +34 -41
- data/_includes/{versions.liquid → addons.liquid} +2 -2
- data/_includes/addons/comments/disqus.liquid +10 -0
- data/_includes/album.liquid +7 -0
- data/_includes/assets/custom.js +0 -0
- data/_includes/assets/custom.scss +0 -0
- data/_includes/assets/site.js +125 -0
- data/_includes/breadcrumbs.liquid +29 -21
- data/_includes/extend/list.liquid +15 -0
- data/_includes/extend/tabs.liquid +2 -0
- data/_includes/{toctree_ln.liquid → extend/toctree.liquid} +10 -7
- data/_includes/footer.liquid +19 -9
- data/_includes/i18n/en.liquid +6 -4
- data/_includes/i18n/zh.liquid +7 -5
- data/_includes/list.liquid +10 -0
- data/_includes/reset/defaults.liquid +88 -0
- data/_includes/reset/schema.liquid +2 -0
- data/_includes/reset/site_pages.liquid +8 -0
- data/_includes/reset/workdir.liquid +17 -0
- data/_includes/searchbox.liquid +1 -3
- data/_includes/{toctree_l1.liquid → toctree.liquid} +3 -3
- data/_layouts/basic.liquid +107 -0
- data/_layouts/default.liquid +2 -95
- data/_layouts/plugins/compress.liquid +1 -1
- data/_sass/_album.scss +25 -0
- data/_sass/_embed.scss +23 -0
- data/_sass/{style.scss → site.scss} +20 -1
- data/assets/404.liquid +8 -0
- data/assets/css/rougify/base16.css +1 -0
- data/assets/css/rougify/base16.dark.css +1 -0
- data/assets/css/rougify/base16.light.css +1 -0
- data/assets/css/rougify/base16.monokai.css +1 -0
- data/assets/css/rougify/base16.monokai.dark.css +1 -0
- data/assets/css/rougify/base16.monokai.light.css +1 -0
- data/assets/css/rougify/base16.solarized.css +1 -0
- data/assets/css/rougify/base16.solarized.dark.css +1 -0
- data/assets/css/rougify/base16.solarized.light.css +1 -0
- data/assets/css/rougify/bw.css +1 -0
- data/assets/css/rougify/colorful.css +1 -0
- data/assets/css/rougify/github.css +1 -0
- data/assets/css/rougify/gruvbox.css +1 -0
- data/assets/css/rougify/gruvbox.dark.css +1 -0
- data/assets/css/rougify/gruvbox.light.css +1 -0
- data/assets/css/rougify/igorpro.css +1 -0
- data/assets/css/rougify/magritte.css +1 -0
- data/assets/css/rougify/molokai.css +1 -0
- data/assets/css/rougify/monokai.css +1 -0
- data/assets/css/rougify/monokai.sublime.css +1 -0
- data/assets/css/rougify/pastie.css +1 -0
- data/assets/css/rougify/thankful_eyes.css +1 -0
- data/assets/css/rougify/tulip.css +1 -0
- data/assets/js/anchor.min.js +9 -0
- data/assets/pages.json +6 -0
- data/assets/search.liquid +12 -0
- data/assets/sitemap.xml +3 -3
- metadata +50 -50
- data/_includes/assets/404.liquid +0 -5
- data/_includes/assets/data.liquid +0 -12
- data/_includes/assets/js/script.js +0 -64
- data/_includes/assets/search.liquid +0 -5
- data/_includes/reset/content.liquid +0 -7
- data/_includes/reset/html.liquid +0 -8
- data/_includes/reset/navigation.liquid +0 -19
- data/_includes/reset/snippets.liquid +0 -11
- data/_includes/reset/start.liquid +0 -7
- data/_includes/reset/title.liquid +0 -10
- data/_includes/reset/variables.liquid +0 -28
- data/_includes/reset/version.spec +0 -1
- data/_includes/reset/workspace.liquid +0 -17
- data/_sass/embed.scss +0 -25
- data/_sass/rougify/base16.dark.scss +0 -78
- data/_sass/rougify/base16.light.scss +0 -77
- data/_sass/rougify/base16.monokai.dark.scss +0 -78
- data/_sass/rougify/base16.monokai.light.scss +0 -77
- data/_sass/rougify/base16.monokai.scss +0 -78
- data/_sass/rougify/base16.scss +0 -77
- data/_sass/rougify/base16.solarized.dark.scss +0 -78
- data/_sass/rougify/base16.solarized.light.scss +0 -77
- data/_sass/rougify/base16.solarized.scss +0 -77
- data/_sass/rougify/bw.scss +0 -63
- data/_sass/rougify/colorful.scss +0 -170
- data/_sass/rougify/github.scss +0 -209
- data/_sass/rougify/gruvbox.dark.scss +0 -84
- data/_sass/rougify/gruvbox.light.scss +0 -84
- data/_sass/rougify/gruvbox.scss +0 -84
- data/_sass/rougify/igorpro.scss +0 -32
- data/_sass/rougify/magritte.scss +0 -167
- data/_sass/rougify/molokai.scss +0 -208
- data/_sass/rougify/monokai.scss +0 -210
- data/_sass/rougify/monokai.sublime.scss +0 -198
- data/_sass/rougify/pastie.scss +0 -146
- data/_sass/rougify/thankful_eyes.scss +0 -172
- data/_sass/rougify/tulip.scss +0 -163
- data/assets/404.md +0 -5
- data/assets/data.json +0 -6
- data/assets/search.md +0 -5
@@ -0,0 +1,10 @@
|
|
1
|
+
{%- include reset/site_pages.liquid -%}
|
2
|
+
{%- include reset/workdir.liquid workdir=page.dir -%}
|
3
|
+
|
4
|
+
{%- for item in workdir_files %}
|
5
|
+
- [{{ item.title | default: item.url }}]({{ site.baseurl | append: item.url }})
|
6
|
+
{%- endfor -%}
|
7
|
+
|
8
|
+
{%- if include.all -%}
|
9
|
+
{%- for workdir in workdir_dirs %}{% include extend/list.liquid %}{% endfor -%}
|
10
|
+
{%- endif -%}
|
@@ -0,0 +1,88 @@
|
|
1
|
+
{%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
|
2
|
+
{%- assign version = "0.1.9" -%}
|
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 "site.scss";
|
31
|
+
{%- if site.fluid %}
|
32
|
+
@import "fluid.scss";
|
33
|
+
{% endif -%}
|
34
|
+
{% include assets/custom.scss %} {{ site.scss }}
|
35
|
+
{%- endcapture -%}
|
36
|
+
|
37
|
+
{%- capture site_script %}
|
38
|
+
{% include assets/site.js %}
|
39
|
+
{% include assets/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,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: "|" -%}
|
data/_includes/searchbox.liquid
CHANGED
@@ -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/
|
1
|
+
{%- include reset/workdir.liquid %}
|
2
2
|
|
3
3
|
<ul>
|
4
|
-
{%- for item in
|
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
|
17
|
+
{%- for workdir in workdir_dirs %}{% include extend/toctree.liquid %}{% endfor -%}
|
@@ -0,0 +1,107 @@
|
|
1
|
+
---
|
2
|
+
layout: plugins/compress
|
3
|
+
---
|
4
|
+
|
5
|
+
{%- include reset/defaults.liquid -%}
|
6
|
+
|
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
|
+
|
17
|
+
<html class="writer-html5" lang="{{ lang }}">
|
18
|
+
|
19
|
+
<head>
|
20
|
+
<meta charset="utf-8">
|
21
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
22
|
+
<title>{{ title }}</title>
|
23
|
+
<!-- meta -->
|
24
|
+
<meta name="description" content="{{ description }}">
|
25
|
+
<meta name="author" content="{{ author }}">
|
26
|
+
<meta name="revised" content="{{ commit }}">
|
27
|
+
<meta name="generator" content="jekyll-rtd-theme v{{ version }}">
|
28
|
+
<!-- custom meta -->
|
29
|
+
{% for meta in site.meta -%}
|
30
|
+
<meta name="{{ meta.first }}" content="{{ meta.last }}">
|
31
|
+
{% endfor -%}
|
32
|
+
<!-- og -->
|
33
|
+
{% include addons/seo/og.liquid %}
|
34
|
+
<!-- schema -->
|
35
|
+
{% include addons/seo/schema.liquid %}
|
36
|
+
<!-- link -->
|
37
|
+
{% if prev -%}
|
38
|
+
<link rel="prev" href="{{ prev.url | absolute_url | xml_escape }}">
|
39
|
+
{%- endif -%}
|
40
|
+
{%- if next -%}
|
41
|
+
<link rel="next" href="{{ next.url | absolute_url | xml_escape }}">
|
42
|
+
{%- endif -%}
|
43
|
+
<link rel="canonical" href="{{ schema_url }}">
|
44
|
+
<!-- theme -->
|
45
|
+
<link rel="stylesheet" href="{{ cdn }}/assets/css/theme.css">
|
46
|
+
<link rel="stylesheet" href="{{ cdn }}/assets/css/rougify/{{ site.rougify | default: 'github' }}.css">
|
47
|
+
<style>{{ site_scss | scssify }}</style>
|
48
|
+
<!-- icon -->
|
49
|
+
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
|
50
|
+
<!-- script -->
|
51
|
+
<script src="{{ cdn }}/assets/js/jquery.min.js"></script>
|
52
|
+
<script src="{{ cdn }}/assets/js/theme.js"></script>
|
53
|
+
<script src="{{ cdn }}/assets/js/anchor.min.js"></script>
|
54
|
+
<script>{{ site_script }}</script>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body class="wy-body-for-nav">
|
58
|
+
<div class="wy-grid-for-nav">
|
59
|
+
<!-- SIDE NAV, TOGGLES ON MOBILE -->
|
60
|
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
61
|
+
<div class="wy-side-scroll">
|
62
|
+
<div class="wy-side-nav-search">
|
63
|
+
{% if site.logo %}
|
64
|
+
<a href="{{ site.baseurl }}/">
|
65
|
+
<img src="{{ site.baseurl }}/{{ site.logo }}" class="logo" alt="{{ site.title }}">
|
66
|
+
</a>
|
67
|
+
{% else %}
|
68
|
+
<a href="{{ site.baseurl }}/" class="icon icon-home"> {{ site.title }}</a>
|
69
|
+
{% endif %}
|
70
|
+
{% include searchbox.liquid %}
|
71
|
+
</div>
|
72
|
+
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
73
|
+
{% include toctree.liquid %}
|
74
|
+
</div>
|
75
|
+
{%- if site.embed -%}
|
76
|
+
<div class="wy-embed-wrap">
|
77
|
+
<div class="wy-embed">{{ site.embed }}</div>
|
78
|
+
</div>
|
79
|
+
{%- endif -%}
|
80
|
+
</div>
|
81
|
+
</nav>
|
82
|
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
83
|
+
<!-- MOBILE NAV -->
|
84
|
+
<nav class="wy-nav-top" aria-label="top navigation">
|
85
|
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
86
|
+
<a href="{{ site.baseurl }}/">{{ site.title }}</a>
|
87
|
+
</nav>
|
88
|
+
<div class="wy-nav-content">
|
89
|
+
<div class="rst-content">
|
90
|
+
{% include breadcrumbs.liquid %}
|
91
|
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
92
|
+
<div itemprop="articleBody">{{ content }}</div>
|
93
|
+
{% include addons/comments/disqus.liquid %}
|
94
|
+
</div>
|
95
|
+
{% include footer.liquid %}
|
96
|
+
</div>
|
97
|
+
</div>
|
98
|
+
</section>
|
99
|
+
</div>
|
100
|
+
{%- if site.addons %}{% include addons.liquid %}{% endif %}
|
101
|
+
<!-- analytics -->
|
102
|
+
{%- include addons/analytics/baidu.liquid -%}
|
103
|
+
{%- include addons/analytics/cnzz.liquid -%}
|
104
|
+
{%- include addons/analytics/google.liquid -%}
|
105
|
+
</body>
|
106
|
+
|
107
|
+
</html>
|
data/_layouts/default.liquid
CHANGED
@@ -1,98 +1,5 @@
|
|
1
1
|
---
|
2
|
-
layout:
|
2
|
+
layout: basic
|
3
3
|
---
|
4
4
|
|
5
|
-
{
|
6
|
-
|
7
|
-
<!DOCTYPE html>
|
8
|
-
<html class="writer-html5" lang="{{ lang }}">
|
9
|
-
|
10
|
-
<head>
|
11
|
-
<meta charset="utf-8">
|
12
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
13
|
-
<title>{{ title }}</title>
|
14
|
-
<!-- meta -->
|
15
|
-
<meta name="description" content="{{ description }}">
|
16
|
-
<meta name="author" content="{{ author }}">
|
17
|
-
<meta name="revised" content="{{ commit }}">
|
18
|
-
<meta name="generator" content="Jekyll v{{ jekyll.version }}">
|
19
|
-
<!-- custom meta -->
|
20
|
-
{% for meta in site.meta -%}
|
21
|
-
<meta name="{{ meta.first }}" content="{{ meta.last }}">
|
22
|
-
{% endfor -%}
|
23
|
-
<!-- og -->
|
24
|
-
{% include addons/seo/og.liquid %}
|
25
|
-
<!-- schema -->
|
26
|
-
{% include addons/seo/schema.liquid %}
|
27
|
-
<!-- link -->
|
28
|
-
{% if prev -%}
|
29
|
-
<link rel="prev" href="{{ prev.url | absolute_url | xml_escape }}">
|
30
|
-
{%- endif -%}
|
31
|
-
{%- if next -%}
|
32
|
-
<link rel="next" href="{{ next.url | absolute_url | xml_escape }}">
|
33
|
-
{%- endif -%}
|
34
|
-
<link rel="canonical" href="{{ schema_url }}">
|
35
|
-
<!-- theme -->
|
36
|
-
<link rel="stylesheet" href="{{ cdn }}/assets/css/theme.css">
|
37
|
-
<style>{{ site_style | scssify }}</style>
|
38
|
-
<!-- icon -->
|
39
|
-
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
|
40
|
-
<!-- script -->
|
41
|
-
<script src="{{ cdn }}/assets/js/jquery.min.js"></script>
|
42
|
-
<script src="{{ cdn }}/assets/js/theme.js"></script>
|
43
|
-
<script>{{ site_script }}</script>
|
44
|
-
</head>
|
45
|
-
|
46
|
-
<body class="wy-body-for-nav">
|
47
|
-
<div class="wy-grid-for-nav">
|
48
|
-
<!-- SIDE NAV, TOGGLES ON MOBILE -->
|
49
|
-
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
50
|
-
<div class="wy-side-scroll">
|
51
|
-
<div class="wy-side-nav-search">
|
52
|
-
<a href="{{ site.baseurl }}/" class="icon icon-home">
|
53
|
-
{{ site.title }}
|
54
|
-
</a>
|
55
|
-
{% include searchbox.liquid %}
|
56
|
-
</div>
|
57
|
-
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
58
|
-
{% include toctree_l1.liquid %}
|
59
|
-
</div>
|
60
|
-
{%- if site.embed -%}
|
61
|
-
<div class="wy-embed-wrap">
|
62
|
-
<div class="wy-embed">{{ site.embed }}</div>
|
63
|
-
</div>
|
64
|
-
{%- endif -%}
|
65
|
-
</div>
|
66
|
-
</nav>
|
67
|
-
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
68
|
-
<!-- MOBILE NAV -->
|
69
|
-
<nav class="wy-nav-top" aria-label="top navigation">
|
70
|
-
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
71
|
-
<a href="{{ site.baseurl }}/">{{ site.title }}</a>
|
72
|
-
</nav>
|
73
|
-
<div class="wy-nav-content">
|
74
|
-
<div class="rst-content">
|
75
|
-
{% include breadcrumbs.liquid %}
|
76
|
-
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
77
|
-
<div itemprop="articleBody">
|
78
|
-
{%- if page.url == "/search.html" -%}
|
79
|
-
{{ content }}
|
80
|
-
{%- else -%}
|
81
|
-
<div class="section">{{ content }}</div>
|
82
|
-
{%- endif %}
|
83
|
-
</div>
|
84
|
-
<div class="articleComments"></div>
|
85
|
-
</div>
|
86
|
-
{% include footer.liquid %}
|
87
|
-
</div>
|
88
|
-
</div>
|
89
|
-
</section>
|
90
|
-
</div>
|
91
|
-
{%- include versions.liquid -%}
|
92
|
-
<!-- analytics -->
|
93
|
-
{%- include addons/analytics/baidu.liquid -%}
|
94
|
-
{%- include addons/analytics/cnzz.liquid -%}
|
95
|
-
{%- include addons/analytics/google.liquid -%}
|
96
|
-
</body>
|
97
|
-
|
98
|
-
</html>
|
5
|
+
<div class="section">{{ content }}</div>
|
data/_sass/_album.scss
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
.flex {
|
2
|
+
display: -webkit-flex;
|
3
|
+
display: flex;
|
4
|
+
flex-wrap: wrap;
|
5
|
+
flex-direction: row;
|
6
|
+
}
|
7
|
+
|
8
|
+
.album {
|
9
|
+
@extend .flex;
|
10
|
+
|
11
|
+
.item {
|
12
|
+
@extend .flex;
|
13
|
+
flex: auto;
|
14
|
+
margin: 10px;
|
15
|
+
justify-content: center;
|
16
|
+
|
17
|
+
&:hover {
|
18
|
+
opacity: 0.7;
|
19
|
+
}
|
20
|
+
|
21
|
+
img {
|
22
|
+
width: 100%;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
data/_sass/_embed.scss
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
.wy-embed-wrap {
|
2
|
+
width: 100%;
|
3
|
+
padding: 1em 1.5em;
|
4
|
+
font-size: 14px;
|
5
|
+
line-height: 20px;
|
6
|
+
|
7
|
+
.wy-embed {
|
8
|
+
text-align: center;
|
9
|
+
padding: 1em;
|
10
|
+
color: #c2c2c2;
|
11
|
+
background: #4e4b4b;
|
12
|
+
border: 1px solid #a0a0a0;
|
13
|
+
border-radius: 5px;
|
14
|
+
|
15
|
+
a {
|
16
|
+
color: #e6e6e6;
|
17
|
+
}
|
18
|
+
|
19
|
+
img {
|
20
|
+
max-width: 100%;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
@import "
|
1
|
+
@import "_album.scss";
|
2
|
+
@import "_embed.scss";
|
2
3
|
|
3
4
|
p {
|
4
5
|
font-size: 15px;
|
@@ -11,6 +12,10 @@ footer {
|
|
11
12
|
}
|
12
13
|
}
|
13
14
|
|
15
|
+
.fa-angle-double-right {
|
16
|
+
font-size: 13px;
|
17
|
+
}
|
18
|
+
|
14
19
|
.rst-versions {
|
15
20
|
&.shift-up {
|
16
21
|
overflow-y: auto;
|
@@ -43,11 +48,20 @@ footer {
|
|
43
48
|
font-family: monospace;
|
44
49
|
font-size: 12px;
|
45
50
|
}
|
51
|
+
|
52
|
+
.copyright-rtd {
|
53
|
+
display: none;
|
54
|
+
}
|
55
|
+
|
56
|
+
.highlighted-box {
|
57
|
+
border: 1px solid #f1c40f;
|
58
|
+
}
|
46
59
|
}
|
47
60
|
|
48
61
|
#search-results {
|
49
62
|
li:last-child {
|
50
63
|
border-bottom: 0;
|
64
|
+
padding-bottom: 0;
|
51
65
|
}
|
52
66
|
}
|
53
67
|
@media screen and (max-width: 768px) {
|
@@ -56,4 +70,9 @@ footer {
|
|
56
70
|
padding: 1em;
|
57
71
|
}
|
58
72
|
}
|
73
|
+
}
|
74
|
+
@media screen and (max-width: 480px) {
|
75
|
+
.wy-breadcrumbs li.wy-breadcrumbs-aside {
|
76
|
+
display: initial;
|
77
|
+
}
|
59
78
|
}
|