jekyll-rtd-theme 1.1.3 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +76 -30
  4. data/_includes/addons/analytics.liquid +6 -3
  5. data/_includes/addons/github.liquid +19 -4
  6. data/_includes/assets/sw.caches.js +43 -0
  7. data/_includes/class/_breadcrumbs.liquid +28 -0
  8. data/_includes/class/_footer.liquid +38 -0
  9. data/_includes/{toctree.liquid → class/_toctree.liquid} +6 -5
  10. data/_includes/{addons.liquid → class/rst-versions.liquid} +6 -8
  11. data/_includes/class/wy-nav-content.liquid +15 -0
  12. data/_includes/class/wy-nav-side.liquid +18 -0
  13. data/_includes/class/wy-nav-top.liquid +8 -0
  14. data/_includes/extend/list.liquid +2 -2
  15. data/_includes/extend/toctree.liquid +1 -11
  16. data/_includes/extra/footer.html +0 -0
  17. data/_includes/extra/head.html +0 -0
  18. data/_includes/node/links.liquid +24 -0
  19. data/_includes/node/metadata.liquid +21 -0
  20. data/_includes/node/script.extension.liquid +29 -0
  21. data/_includes/node/script.liquid +20 -0
  22. data/_includes/node/script.schema.liquid +27 -0
  23. data/_includes/node/title.liquid +1 -0
  24. data/_includes/reset/defaults.liquid +58 -55
  25. data/_includes/reset/i18n.liquid +1 -31
  26. data/_includes/{extend → reset}/tabs.liquid +0 -0
  27. data/_includes/reset/workdir.liquid +1 -15
  28. data/_includes/shortcodes/danger.liquid +6 -0
  29. data/_includes/shortcodes/mermaid.liquid +1 -0
  30. data/_includes/shortcodes/note.liquid +6 -0
  31. data/_includes/shortcodes/tip.liquid +6 -0
  32. data/_includes/shortcodes/warning.liquid +6 -0
  33. data/_layouts/default.liquid +24 -225
  34. data/_layouts/plugins/compress.liquid +13 -10
  35. data/_layouts/plugins/extension.liquid +32 -22
  36. data/_sass/highlight.scss +214 -0
  37. data/_sass/theme.scss +15 -0
  38. data/assets/404.liquid +1 -1
  39. data/assets/css/{theme.css → theme.min.css} +0 -0
  40. data/assets/js/theme.js +294 -1
  41. data/assets/js/theme.min.js +1 -0
  42. data/assets/robots.liquid +1 -1
  43. data/assets/search.liquid +0 -15
  44. data/assets/sitemap.liquid +1 -1
  45. data/assets/sw.caches.liquid +8 -0
  46. metadata +29 -52
  47. data/_includes/addons/i18n.liquid +0 -13
  48. data/_includes/addons/plugins.liquid +0 -6
  49. data/_includes/album.liquid +0 -7
  50. data/_includes/assets/common.js +0 -62
  51. data/_includes/assets/search.js +0 -76
  52. data/_includes/breadcrumbs.liquid +0 -43
  53. data/_includes/footer.liquid +0 -37
  54. data/_includes/i18n/en.liquid +0 -29
  55. data/_includes/i18n/es.liquid +0 -29
  56. data/_includes/i18n/fr.liquid +0 -29
  57. data/_includes/i18n/it.liquid +0 -29
  58. data/_includes/i18n/ja.liquid +0 -29
  59. data/_includes/i18n/ko.liquid +0 -29
  60. data/_includes/i18n/ru.liquid +0 -29
  61. data/_includes/i18n/sv.liquid +0 -29
  62. data/_includes/i18n/zh-cn.liquid +0 -29
  63. data/_includes/reset/languages.liquid +0 -110
  64. data/_sass/_album.scss +0 -19
  65. data/_sass/_embed.scss +0 -23
  66. data/_sass/fluid.scss +0 -7
  67. data/_sass/jekyll-rtd-theme.scss +0 -128
  68. data/assets/css/rougify/base16.css +0 -1
  69. data/assets/css/rougify/base16.dark.css +0 -1
  70. data/assets/css/rougify/base16.light.css +0 -1
  71. data/assets/css/rougify/base16.monokai.css +0 -1
  72. data/assets/css/rougify/base16.monokai.dark.css +0 -1
  73. data/assets/css/rougify/base16.monokai.light.css +0 -1
  74. data/assets/css/rougify/base16.solarized.css +0 -1
  75. data/assets/css/rougify/base16.solarized.dark.css +0 -1
  76. data/assets/css/rougify/base16.solarized.light.css +0 -1
  77. data/assets/css/rougify/bw.css +0 -1
  78. data/assets/css/rougify/colorful.css +0 -1
  79. data/assets/css/rougify/github.css +0 -1
  80. data/assets/css/rougify/gruvbox.css +0 -1
  81. data/assets/css/rougify/gruvbox.dark.css +0 -1
  82. data/assets/css/rougify/gruvbox.light.css +0 -1
  83. data/assets/css/rougify/igorpro.css +0 -1
  84. data/assets/css/rougify/magritte.css +0 -1
  85. data/assets/css/rougify/molokai.css +0 -1
  86. data/assets/css/rougify/monokai.css +0 -1
  87. data/assets/css/rougify/monokai.sublime.css +0 -1
  88. data/assets/css/rougify/pastie.css +0 -1
  89. data/assets/css/rougify/thankful_eyes.css +0 -1
  90. data/assets/css/rougify/tulip.css +0 -1
  91. data/assets/js/anchor.min.js +0 -9
  92. data/assets/js/html5shiv.min.js +0 -4
@@ -0,0 +1,21 @@
1
+ <meta charset="utf-8">
2
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
3
+ <meta name="description" content="{{ description }}">
4
+ <meta name="revised" content="{{ docs.build_revision }}">
5
+ <meta name="author" content="{{ author }}">
6
+ <meta name="generator" content="jekyll-rtd-theme v{{ version }}">
7
+
8
+ {%- comment %} custom {% endcomment %}
9
+ {% for meta in site.meta -%}
10
+ <meta name="{{ meta.first }}" content="{{ meta.last }}">
11
+ {% endfor -%}
12
+
13
+ {% comment %} https://ogp.me {% endcomment %}
14
+ <meta property="og:title" content="{{ title }}">
15
+ <meta property="og:description" content="{{ description }}">
16
+ <meta property="og:locale" content="{{ lang }}">
17
+ <meta property="og:url" content="{{ schema_surl }}">
18
+ <meta property="og:type" content="article">
19
+ <meta property="article:author" content="{{ author }}">
20
+ <meta property="article:published_time" content="{{ schema_date }}">
21
+ <meta property="article:modified_time" content="{{ schema_modi }}">
@@ -0,0 +1,29 @@
1
+ {%- comment %} mermaid {% endcomment -%}
2
+ {%- if content contains '<pre class="language-mermaid">' -%}
3
+ {%- if site.mermaid.custom -%}
4
+ <script src="{{ site.mermaid.custom }}"></script>
5
+ {%- else -%}
6
+ <script src="{{ cdn }}/assets/js/mermaid.min.js"></script>
7
+ {%- endif %}
8
+ <script>
9
+ mermaid.initialize({% if site.mermaid.initialize %}{{ site.mermaid.initialize | jsonify }}{% else %}{}{% endif %});
10
+ </script>
11
+ {%- endif %}
12
+
13
+ {% comment %} Google Analytics {% endcomment %}
14
+ {%- if site.google.gtag -%}
15
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.gtag }}"></script>
16
+ <script>
17
+ window.dataLayer = window.dataLayer || [];
18
+ function gtag() {
19
+ dataLayer.push(arguments);
20
+ }
21
+ gtag("js", new Date());
22
+ gtag("config", "{{ site.google.gtag }}");
23
+ </script>
24
+ {%- endif -%}
25
+
26
+ {% comment %} Google AdSense {% endcomment %}
27
+ {%- if site.google.adsense -%}
28
+ <script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
29
+ {%- endif -%}
@@ -0,0 +1,20 @@
1
+ <script>
2
+ window.ui = {
3
+ title: "{{ site.title }}",
4
+ lang: "{{ lang }}",
5
+ version: "{{ version }}",
6
+ baseurl: "{{ site.baseurl }}",
7
+ i18n: {
8
+ search_results: "{{ __.search_results | default: 'Search Results' }}",
9
+ search_results_found: "{{ __.search_results_found | default: 'Search finished, found # page(s) matching the search query.' }}",
10
+ search_results_not_found: "{{ __.search_results_not_found | default: 'Your search did not match any documents, please make sure that all characters are spelled correctly!' }}"
11
+ }
12
+ };
13
+ </script>
14
+ <script src="{{ cdn }}/assets/js/jquery.min.js"></script>
15
+
16
+ {%- if custom_script.size > 0 -%}
17
+ <script>{{ custom_script }}</script>
18
+ {%- endif -%}
19
+
20
+ <script src="{{ cdn }}/assets/js/theme{% if site.debug.dist != false %}.min{% endif %}.js"></script>
@@ -0,0 +1,27 @@
1
+ <script type="application/ld+json">
2
+ {
3
+ "@context": "https://schema.org",
4
+ "@type": "Article",
5
+ "mainEntityOfPage": {
6
+ "@type": "WebPage",
7
+ "@id": "{{ schema_surl }}"
8
+ },
9
+ "headline": "{{ title }}",
10
+ "image": [{% for image in page.images %}"{{ image }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
11
+ "author": {
12
+ "@type": "Person",
13
+ "name": "{{ author }}"
14
+ },
15
+ "datePublished": "{{ schema_date }}",
16
+ "dateModified": "{{ schema_modi }}",
17
+ "publisher": {
18
+ "@type": "{{ docs.owner.type }}",
19
+ "name": "{{ author }}",
20
+ "logo": {
21
+ "@type": "ImageObject",
22
+ "url": "{{ docs.owner.avatar_url }}"
23
+ }
24
+ },
25
+ "description": "{{ description }}"
26
+ }
27
+ </script>
@@ -0,0 +1 @@
1
+ <title>{{ title }}</title>
@@ -1,86 +1,89 @@
1
- {%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
2
- {%- assign version = "1.1.3" -%}
3
- {%- assign addons = "github, i18n, plugins, analytics" | split: ", " -%}
1
+ {%- comment %} Copy from v2 unless content {% endcomment -%}
4
2
 
5
- {%- assign schema_date = page.date | default: site.time | date_to_xmlschema -%}
6
- {%- assign schema_modi = site.time | date_to_xmlschema -%}
7
- {%- assign schema_surl = page.url | absolute_url | replace: 'http://', 'https://' | xml_escape -%}
3
+ {%- include reset/site_pages.liquid -%}
4
+ {%- include reset/i18n.liquid -%}
8
5
 
9
- {% comment %} scss {% endcomment %}
10
- {%- capture site_scss -%}
11
- @import "jekyll-rtd-theme.scss";
12
- {% if site.fluid %}@import "fluid.scss";{% endif %}
13
- {% include assets/custom.scss %} {{ site.scss }}
14
- {%- endcapture -%}
6
+ {%- comment %} variables {% endcomment -%}
7
+ {%- assign version = "1.1.8" -%}
8
+ {%- assign docs = site.github -%}
9
+ {%- assign rest = docs.public_repositories | where: "html_url", docs.repository_url | first -%}
15
10
 
16
- {% comment %} cdn {% endcomment %}
17
- {%- if site.debug -%}
18
- {%- assign cdn = site.baseurl -%}
19
- {%- else -%}
20
- {%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
21
- {%- endif -%}
11
+ {%- assign rest_created_at = rest.created_at | default: site.time -%}
12
+ {%- assign rest_updated_at = rest.updated_at | default: site.time -%}
22
13
 
23
- {% comment %} github-metadata {% endcomment %}
24
- {%- if site.github_metadata != false -%}
25
- {%- assign author = site.author | default: site.github.owner_name -%}
26
- {%- assign branch = site.github.source.branch -%}
27
- {%- assign commit = site.github.build_revision | slice: 0, 7 -%}
28
- {%- assign repository_url = site.github.repository_url -%}
29
- {%- assign issues_url = site.github.issues_url -%}
30
- {%- assign zip_url = site.github.zip_url -%}
31
- {%- capture github_edit_link %}{% github_edit_link %}{% endcapture -%}
32
- {%- else -%}
33
- {%- assign author = site.author -%}
34
- {%- assign branch = "" -%}
35
- {%- assign commit = "" -%}
36
- {%- assign repository_url = "" -%}
37
- {%- assign issues_url = "" -%}
38
- {%- assign zip_url = "" -%}
39
- {%- assign github_edit_link = "" -%}
40
- {%- assign addons = "i18n, plugins, analytics" | split: ", " -%}
41
- {%- endif -%}
14
+ {%- assign lang = site.lang | default: "en" -%}
15
+ {%- assign author = docs.owner.name | default: docs.owner_name -%}
42
16
 
43
- {%- include reset/site_pages.liquid %}
44
- {%- include reset/i18n.liquid -%}
17
+ {%- comment %} schema {% endcomment -%}
18
+ {%- assign schema_date = page.date | default: rest_created_at | date_to_xmlschema -%}
19
+ {%- assign schema_modi = site.time | date_to_xmlschema -%}
20
+ {%- assign schema_surl = page.url | absolute_url | xml_escape -%}
45
21
 
46
- {% comment %} title {% endcomment %}
22
+ {%- comment %} title {% endcomment -%}
47
23
  {%- case page.url -%}
48
24
  {%- when "/" -%}
49
- {%- assign title = site.title | append: " · " | append: site.description -%}
25
+ {%- assign title = site.title | append: " · " | append: site.description | truncate: 110 -%}
50
26
  {%- when "/search.html" -%}
51
- {%- assign title = __search | append: " · " | append: site.title -%}
27
+ {%- assign title = __.search | default: "Search" | append: " · " | append: site.title | truncate: 110 -%}
52
28
  {%- when "/404.html" -%}
53
- {%- assign title = __404 | append: " · " | append: site.title -%}
29
+ {%- assign title = "404" | append: " · " | append: site.title | truncate: 110 -%}
54
30
  {%- else -%}
55
- {%- assign title = page.title | default: page.url | append: " · " | append: site.title -%}
31
+ {%- assign title = page.title | default: page.url | append: " · " | append: site.title | truncate: 110 -%}
56
32
  {%- endcase -%}
57
33
 
34
+ {%- comment %} description {% endcomment -%}
35
+ {%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
36
+
37
+ {% comment %} debug {% endcomment %}
38
+ {%- if site.debug -%}
39
+ {%- assign cdn = site.baseurl -%}
40
+ {%- else -%}
41
+ {%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
42
+ {%- endif -%}
43
+
58
44
  {% comment %} content {% endcomment %}
59
45
  {%- assign content = content
60
- | replace: '', "'"
61
- | replace: '<pre class="highlight"><code>', "<pre>"
62
- | replace: '<pre><code class=', "<pre class="
46
+ | replace: "", "'"
47
+ | replace: "", '"'
48
+ | replace: "”", '"'
49
+ | replace: '<pre class="highlight"><code>', '<pre class="highlight">'
50
+ | replace: '<pre><code', '<pre'
63
51
  | replace: "</code></pre>", "</pre>"
64
- | replace: '<code class="language-plaintext highlighter-rouge">', '<code class="literal">'
65
- | replace: "<table>", '<table class="docutils align-default">' -%}
52
+ | replace: '<code class="language-plaintext', '<code class="literal'
53
+ | replace: "<dl>", '<dl class="definition">'
54
+ | replace: "<table>", '<div class="wy-table-responsive"><table class="docutils">'
55
+ | replace: "</table>", '</table></div>'
56
+ | replace: "highlighter-rouge", "highlighter-rouge notranslate" -%}
66
57
 
67
58
  {% comment %} prev and next {% endcomment %}
68
59
  {%- assign workdir_files = site_files | where_exp: "item", "item.dir == page.dir" -%}
69
60
 
70
- {%- assign _index = 0 -%}
61
+ {%- assign index = 0 -%}
71
62
  {%- for item in workdir_files %}
72
63
  {%- if item.url == page.url %}
73
- {%- assign _index = forloop.index -%}
64
+ {%- assign index = forloop.index -%}
74
65
  {%- endif %}
75
66
  {%- endfor -%}
76
67
 
77
68
  {%- for item in workdir_files -%}
78
- {%- assign _index_prev = _index | minus: 1 -%}
79
- {%- assign _index_next = _index | plus: 1 -%}
80
- {%- if forloop.index == _index_prev -%}
69
+ {%- assign index_prev = index | minus: 1 -%}
70
+ {%- assign index_next = index | plus: 1 -%}
71
+ {%- if forloop.index == index_prev -%}
81
72
  {%- assign prev = item -%}
82
73
  {%- endif %}
83
- {%- if forloop.index == _index_next and page.url != page.dir -%}
74
+ {%- if forloop.index == index_next -%}
84
75
  {%- assign next = item -%}
85
76
  {%- endif %}
86
77
  {%- endfor -%}
78
+
79
+ {% comment %} custom {% endcomment %}
80
+ {%- capture custom_script -%}
81
+ {%- include assets/custom.js -%}
82
+ {{- site.script -}}
83
+ {%- endcapture -%}
84
+
85
+ {%- capture custom_scss -%}
86
+ @import "theme.scss";
87
+ {%- include assets/custom.scss -%}
88
+ {{- site.scss -}}
89
+ {%- endcapture -%}
@@ -1,31 +1 @@
1
- {%- include reset/languages.liquid -%}
2
-
3
- {% comment %} Set default lang {% endcomment %}
4
- {%- assign site_lang = "en" -%}
5
- {%- if languages contains site.lang -%}
6
- {%- assign site_lang = site.lang -%}
7
- {%- endif -%}
8
-
9
- {% comment %} Get docs all avaiable langs {% endcomment %}
10
- {%- capture langs -%}
11
- {{ site_lang }}|
12
- {%- for item in site_dirs -%}
13
- {%- assign chapter = item.dir | remove_first: "/" | split: "/" | first -%}
14
- {%- if languages contains chapter -%}
15
- {{ chapter }}|
16
- {%- endif -%}
17
- {%- endfor -%}
18
- {%- endcapture -%}
19
- {%- assign site_langs = langs | split: "|" | uniq -%}
20
-
21
- {% comment %} include language by the root subdirectory {% endcomment %}
22
- {%- assign lang = site_lang -%}
23
-
24
- {%- if page.dir != "/" -%}
25
- {%- assign chapter = page.dir | remove_first: "/" | split: "/" | first -%}
26
- {%- if languages contains chapter -%}
27
- {%- assign lang = chapter -%}
28
- {%- endif -%}
29
- {%- endif -%}
30
-
31
- {%- include i18n/{{ lang }}.liquid -%}
1
+ {%- assign __ = site.translate | default: site.data.translate -%}
File without changes
@@ -1,13 +1,5 @@
1
- {% comment %} Start from the language chapter(eg: en-us) or root(/) {% endcomment %}
2
1
  {%- assign workdir = include.workdir | default: "/" -%}
3
2
 
4
- {%- if page.dir != "/" -%}
5
- {%- assign chapter = page.dir | remove_first: "/" | split: "/" | first -%}
6
- {%- if languages contains chapter -%}
7
- {%- capture workdir %}/{{ chapter }}/{% endcapture -%}
8
- {%- endif -%}
9
- {%- endif -%}
10
-
11
3
  {%- assign workdir_level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
12
4
  {%- assign workdir_files = site_files | where_exp: "item", "item.dir == workdir" -%}
13
5
 
@@ -19,13 +11,7 @@
19
11
  {%- assign dir = item.dir | replace: workdir, temp | split: "@@" | first -%}
20
12
  {% comment %} In the current subdirectory {% endcomment %}
21
13
  {%- if workdir == dir -%}
22
- {% comment %} Root directory does not display other languages {% endcomment %}
23
- {%- if workdir == "/" -%}
24
- {%- assign language = item.dir | replace: "/", "" -%}
25
- {%- unless languages contains language %}{{ item.dir }}|{% endunless -%}
26
- {%- else -%}
27
- {{ item.dir }}|
28
- {%- endif -%}
14
+ {{ item.dir }}|
29
15
  {%- endif -%}
30
16
  {%- endif -%}
31
17
  {%- endfor -%}
@@ -0,0 +1,6 @@
1
+ <div class="admonition danger">
2
+ <p class="admonition-title">
3
+ {{ __.note | default: "Note" }}
4
+ </p>
5
+ {{ codes | markdownify | strip_newlines -}}
6
+ </div>
@@ -0,0 +1 @@
1
+ <div class="mermaid overflow-x-auto">{{ codes }}</div>
@@ -0,0 +1,6 @@
1
+ <div class="admonition note">
2
+ <p class="admonition-title">
3
+ {{ __.note | default: "Note" }}
4
+ </p>
5
+ {{ codes | markdownify | strip_newlines -}}
6
+ </div>
@@ -0,0 +1,6 @@
1
+ <div class="admonition tip">
2
+ <p class="admonition-title">
3
+ {{ __.note | default: "Note" }}
4
+ </p>
5
+ {{ codes | markdownify | strip_newlines -}}
6
+ </div>
@@ -0,0 +1,6 @@
1
+ <div class="admonition warning">
2
+ <p class="admonition-title">
3
+ {{ __.note | default: "Note" }}
4
+ </p>
5
+ {{ codes | markdownify | strip_newlines -}}
6
+ </div>
@@ -5,230 +5,29 @@ layout: plugins/compress
5
5
  {%- include reset/defaults.liquid -%}
6
6
 
7
7
  <!DOCTYPE html>
8
-
9
- <!--
10
- {% if site.remote_theme -%}
11
- rundocs.io, remote_theme: {{ site.remote_theme }}, based on v{{ version }}
12
- {%- else -%}
13
- rundocs.io, theme: {{ site.theme | default: "jekyll-rtd-theme, based on" }} v{{ version }}
14
- {%- endif %}
15
- -->
16
-
17
8
  <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
- <meta content="IE=Edge" http-equiv="X-UA-Compatible">
23
- <title>{{ title | truncate: 110 }}</title>
24
- <script>
25
- window.dataLayer = window.dataLayer || [];
26
-
27
- function gtag() {
28
- dataLayer.push(arguments);
29
- }
30
-
31
- function feedback(messages) {
32
- gtag("event", "exception", {
33
- "description": messages.join(":")
34
- });
35
- }
36
-
37
- gtag("js", new Date());
38
- </script>
39
- <!-- meta -->
40
- <meta name="description" content="{{ description }}">
41
- <meta name="author" content="{{ author }}">
42
- <meta name="revised" content="{{ commit }}">
43
- <meta name="generator" content="jekyll-rtd-theme v{{ version }}">
44
- <!-- meta-ogp -->
45
- {% comment %} https://ogp.me {% endcomment %}
46
- <meta property="og:title" content="{{ title }}">
47
- <meta property="og:description" content="{{ description }}">
48
- <meta property="og:locale" content="{{ lang }}">
49
- <meta property="og:url" content="{{ schema_surl }}">
50
- <meta property="og:type" content="article">
51
- <meta property="article:author" content="{{ author }}">
52
- <meta property="article:published_time" content="{{ schema_date }}">
53
- <meta property="article:modified_time" content="{{ schema_modi }}">
54
- <!-- meta-custom -->
55
- {% for meta in site.meta -%}
56
- <meta name="{{ meta.first }}" content="{{ meta.last }}">
57
- {% endfor -%}
58
- <!-- schema -->
59
- <script type="application/ld+json">
60
- {
61
- "@context": "https://schema.org",
62
- "@type": "Article",
63
- "mainEntityOfPage": {
64
- "@type": "WebPage",
65
- "@id": "{{ schema_surl }}"
66
- },
67
- "headline": "{{ title | truncate: 110 }}",
68
- "image": [{% for image in page.images %}"{{ image }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
69
- "author": {
70
- "@type": "Person",
71
- "name": "{{ author }}"
72
- },
73
- "datePublished": "{{ schema_date }}",
74
- "dateModified": "{{ schema_modi }}",
75
- "publisher": {
76
- "@type": "Organization",
77
- "name": "RunDocs",
78
- "logo": {
79
- "@type": "ImageObject",
80
- "url": "https://rundocs.io/logo.png"
81
- }
82
- },
83
- "description": "{{ description }}"
84
- }
85
- </script>
86
- <!-- link -->
87
- <link rel="canonical" href="{{ schema_surl }}">
88
- {% if prev %}<link rel="prev" href="{{ prev.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
89
- {% if next %}<link rel="next" href="{{ next.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
90
- <!-- theme -->
91
- <link rel="stylesheet" href="{{ cdn }}/assets/css/theme.css">
92
- <link rel="stylesheet" href="{{ cdn }}/assets/css/rougify/{{ site.rougify | default: 'github' }}.css">
93
- <style>{{ site_scss | scssify | strip_newlines }}</style>
94
- <!-- icon -->
95
- <link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/favicon.svg">
96
- <!-- script -->
97
- <!--[if lt IE 9]><script src="{{ cdn }}/assets/js/html5shiv.min.js"></script><![endif]-->
98
- <script src="{{ cdn }}/assets/js/jquery.min.js"></script>
99
- <script>
100
- const ui = {
101
- baseurl: "{{ site.baseurl }}",
102
- title: "{{ site.title }}",
103
- lang: "{{ lang }}",
104
- admonition: {
105
- note: "{{ __note }}",
106
- tip: "{{ __tip }}",
107
- warning: "{{ __warning }}",
108
- danger: "{{ __danger }}"
109
- }
110
- };
111
- </script>
112
- </head>
113
-
114
- <body class="wy-body-for-nav">
115
- <div class="wy-grid-for-nav">
116
- <!-- NAV -->
117
- <nav data-toggle="wy-nav-shift" class="wy-nav-side">
118
- <div class="wy-side-scroll">
119
- <div class="wy-side-nav-search">
120
- {% if site.logo %}
121
- <a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}">
122
- <img src="{{ site.baseurl }}/{{ site.logo }}" class="logo" alt="{{ site.title }}">
123
- </a>
124
- {% else %}
125
- <a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}" class="icon icon-home"> {{ site.title }}</a>
126
- {% endif %}
127
- <div role="search">
128
- <form id="rtd-search-form" class="wy-form" action="{{ site.baseurl }}/search.html" method="get" autocomplete="off">
129
- <input type="text" name="q" placeholder="{{ __search_docs }}...">
130
- <input type="hidden" name="lang" value="{{ lang }}">
131
- </form>
132
- </div>
133
- </div>
134
- <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">{% include toctree.liquid %}</div>
135
- {%- if site.embed -%}
136
- <div class="wy-embed-wrap"><div class="wy-embed">{{ site.embed }}</div></div>
137
- {%- endif -%}
138
- </div>
139
- </nav>
140
-
141
- <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
142
- <!-- MOBILE NAV -->
143
- <nav class="wy-nav-top" aria-label="top navigation">
144
- <div class="flex">
145
- <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
146
- <div class="wy-nav-title">
147
- <a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}">{{ site.title }}</a>
148
- </div>
149
- </div>
150
- </nav>
151
- <div class="wy-nav-content">
152
- <div class="rst-content">
153
- {% include breadcrumbs.liquid %}
154
- <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
155
- <div itemprop="articleBody">
156
- {%- if page.url == "/search.html" -%}
157
- {{ content }}
158
- {%- else -%}
159
- <div class="section">{{ content }}</div>
160
- {%- endif -%}
161
- </div>
162
- {% comment %} comments {% endcomment %}
163
- {% if site.disqus %}
164
- <div id="disqus_thread" class="articleComments"></div>
165
- <script>
166
- (function(script) {
167
- script.src = "https://{{ site.disqus }}.disqus.com/embed.js";
168
- script.setAttribute("data-timestamp", +new Date());
169
- document.head.appendChild(script);
170
- })(document.createElement("script"));
171
- </script>
172
- {% endif %}
173
- </div>
174
- {% include footer.liquid %}
175
- </div>
176
- </div>
177
- </section>
178
- </div>
179
- {%- if site.addons %}{% include addons.liquid %}{% endif %}
180
- <!-- script -->
181
- <script src="{{ cdn }}/assets/js/theme.js"></script>
182
- <script src="{{ cdn }}/assets/js/anchor.min.js"></script>
183
- {% comment %} mermaid {% endcomment %}
184
- {%- if content contains '<pre class="language-mermaid">' -%}
185
- <script src="{{ cdn }}/assets/js/mermaid.min.js"></script>
186
- <script>mermaid.initialize({startOnLoad: true});</script>
187
- {%- endif -%}
188
- <script>
189
- {% include assets/common.js %}
190
- {% include assets/custom.js %} {{ site.script }}
191
- </script>
192
-
193
- {% comment %} Baidu link submit {% endcomment %}
194
- {%- if site.baidu.linksubmit -%}
195
- <script>
196
- (function(script) {
197
- script.src = "https://zz.bdstatic.com/linksubmit/push.js";
198
- document.head.appendChild(script);
199
- })(document.createElement("script"));
200
- </script>
201
- {%- endif -%}
202
-
203
- {% comment %} Baidu Analytics {% endcomment %}
204
- {%- if site.baidu.hm -%}
205
- <script>
206
- var _hmt = _hmt || [];
207
- (function(script) {
208
- script.src = "https://hm.baidu.com/hm.js?{{ site.baidu.hm }}";
209
- document.head.appendChild(script);
210
- })(document.createElement("script"));
211
- </script>
212
- {%- endif -%}
213
-
214
- {% comment %} CNZZ Analytics {% endcomment %}
215
- {%- if site.cnzz -%}
216
- <span id="cnzz_stat_icon_{{ site.cnzz }}" style="display: none;"></span>
217
- <script async src="https://v1.cnzz.com/z_stat.php?id={{ site.cnzz }}"></script>
218
- {%- endif -%}
219
-
220
- {% comment %} Google Analytics {% endcomment %}
221
- {%- if site.google.gtag -%}
222
- <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.gtag }}"></script>
223
- <script>
224
- gtag("config", "{{ site.google.gtag }}");
225
- </script>
226
- {%- endif -%}
227
-
228
- {% comment %} Google AdSense {% endcomment %}
229
- {%- if site.google.adsense -%}
230
- <script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
231
- {%- endif -%}
232
- </body>
233
-
9
+ <head>
10
+ {%- include node/metadata.liquid -%}
11
+
12
+ {%- include node/title.liquid -%}
13
+ {%- include node/links.liquid -%}
14
+
15
+ {%- include node/script.schema.liquid -%}
16
+
17
+ {%- include extra/head.html -%}
18
+ </head>
19
+ <body class="wy-body-for-nav">
20
+ <div class="wy-grid-for-nav">
21
+ {%- include class/wy-nav-side.liquid -%}
22
+ <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
23
+ {%- include class/wy-nav-top.liquid -%}
24
+ {%- include class/wy-nav-content.liquid -%}
25
+ </section>
26
+ </div>
27
+ {% include class/rst-versions.liquid %}
28
+
29
+ {%- include node/script.liquid -%}
30
+ {%- include node/script.extension.liquid -%}
31
+ {% include extra/footer.html %}
32
+ </body>
234
33
  </html>