jekyll-rtd-theme 1.0.5 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e0d0a1744c43d43056bd120dc6e607de9d244daff4ba47c13859ded600bbd71
4
- data.tar.gz: 9fd29cc43e9243a76a6d6faa10f4312d4abf9d84551c1cf6b5c17121b06dfcf3
3
+ metadata.gz: 23a52d768800e6af7ea1d5c4c35a91cee56046bade55174bcc0eb4d31e9ed676
4
+ data.tar.gz: 3d005a4cb29f27c512492cccfcdc9da428303af00df3f2ba5a7f3bc3a22e5c07
5
5
  SHA512:
6
- metadata.gz: 1f6e05a1edd9c5ab8883da9e5370d2c5da33c7999060f54b4e1802a666692ba5d325de5ee25021884dc880947fc64496bcfb9698a182581d1de965fbd1d1ac23
7
- data.tar.gz: 36c4d109990688a69a95ea52606a75984f04055ded488db6609c6f2731d168c6ff683d47bee4ef7186059f137cb6e6db82bdbdc58a02016f6b3b7e37f907cb96
6
+ metadata.gz: 022acda52128c5ced54cb84635fd067ff26ed77c99a8bc4e50762ba40d3769104d739e82ad08f56958b802f8eed716407c7d1e094cdcec75c7e3c264791cf0a8
7
+ data.tar.gz: 68f91d2be6fb03d1c00b2d29c84acd297c4539478a6b1622fbf69dee85a71b91d8ea1326d98e1687b6676621bba2027e2e858602bb24f8333eaaa0a6bc7815c5
data/README.md CHANGED
@@ -5,31 +5,35 @@
5
5
  [![](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)][cdn]
6
6
  [![](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme/badge)][codefactor]
7
7
  [![](https://img.shields.io/badge/featured%20on-JekyllThemes-red.svg)](https://jekyll-themes.com)
8
+ [![](https://badges.gitter.im/rundocs/jekyll-rtd-theme.svg)][gitter]
8
9
 
9
- Just another documentation theme compatible with GitHub Pages, based on sphinx_rtd_theme
10
+ GitHub-flavored docs theme for Jekyll, based on sphinx_rtd_theme
10
11
 
11
- ![](https://user-images.githubusercontent.com/68011645/89026666-ad3a8680-d35b-11ea-9f4b-d3fe26ae12ed.png)
12
+ <img class="shadow-box" width="50%" alt="jekyll-rtd-theme" src="https://user-images.githubusercontent.com/68011645/89026666-ad3a8680-d35b-11ea-9f4b-d3fe26ae12ed.png">
13
+
14
+ ## Quick start
15
+ ```yml
16
+ remote_theme: rundocs/jekyll-rtd-theme
17
+ ```
18
+ You can [generate](https://github.com/rundocs/starter-slim/generate) with the same files and folders from [rundocs/starter-slim](https://github.com/rundocs/starter-slim/)
12
19
 
13
20
  ## Features
14
- - Automatically generate sidebar based on directory
15
- - Only need one file `_config.yml` to configure site
16
- - Search engine optimized
21
+ - Automatically generate nested sidebar based on directory
17
22
  - Multi-language supported
23
+ - Search engine optimized
18
24
  - Document search (RegExp supported)
19
25
  - Support third-party comments
20
- - Google, Baidu, CNZZ Analytics support
21
-
22
- ## Roadmap
23
- See the [open issues](https://github.com/rundocs/jekyll-rtd-theme/issues) for a list of proposed features (and known issues)
26
+ - Google, Baidu, CNZZ Analytics supported
27
+ - Just need one file `_config.yml` to configure site
24
28
 
25
29
  ## Documents
26
- You can view theme related [tests](https://jekyll-rtd-theme.rundocs.io), For full documentation, please refer to [https://rundocs.io](https://rundocs.io)
30
+ For full documentation, please refer to [rundocs.io](https://rundocs.io/), You can also view [the theme related tests documentation](https://rundocs.github.io/jekyll-rtd-theme)
27
31
 
28
- ## The License
32
+ ## License
29
33
  The theme is available as open source under the terms of the [MIT License](https://github.com/rundocs/jekyll-rtd-theme/blob/master/LICENSE).
30
34
 
31
-
32
35
  [repository]: https://github.com/rundocs/jekyll-rtd-theme
33
36
  [rubygem]: https://rubygems.org/gems/jekyll-rtd-theme
34
37
  [cdn]: https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme/
35
38
  [codefactor]: https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme
39
+ [gitter]: https://gitter.im/rundocs/jekyll-rtd-theme?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
@@ -2,13 +2,7 @@
2
2
  <dt>{{ __statistics }}</dt>
3
3
  <dd>
4
4
  <a href="https://github.com/rundocs/analytics" target="_blank">
5
- {{ __total_visits }} <span id="counter"></span> <i class="fa fa-eye"></i>
5
+ {{ __total_visits }} <span id="counter"><span class="progress"></span></span> <i class="fa fa-eye"></i>
6
6
  </a>
7
7
  </dd>
8
8
  </dl>
9
-
10
- <script>
11
- $(document).ready(function() {
12
- $.getJSON("https://rundocs-analytics.glitch.me/analytics?host=" + location.host, (data) => $("#counter").html(data.count));
13
- });
14
- </script>
@@ -1,21 +1,39 @@
1
1
  $(document).ready(function() {
2
+ let analytics = new URL("https://rundocs-analytics.glitch.me/collect?v={{ version }}&lang={{ lang }}");
2
3
  let highlight = new URL(location.href).searchParams.get("highlight");
4
+ let current = $(".wy-menu-vertical").find(`[href="${location.pathname}"]`);
3
5
 
4
- SphinxRtdTheme.Navigation.reset = function() {
5
- const link = $(".wy-menu-vertical").find(`[href="${location.pathname}"]`);
6
- if (link.length > 0) {
7
- $(".wy-menu-vertical .current").removeClass("current");
8
- link.addClass("current");
9
- link.closest("li.toctree-l1").parent().addClass("current");
10
- link.closest("li.toctree-l1").addClass("current");
11
- link.closest("li.toctree-l2").addClass("current");
12
- link.closest("li.toctree-l3").addClass("current");
13
- link.closest("li.toctree-l4").addClass("current");
14
- link.closest("li.toctree-l5").addClass("current");
6
+ /* directory toc */
7
+ if (current.length > 0) {
8
+ current.closest("li.toctree-l1").parent().addClass("current");
9
+ current.closest("li.toctree-l1").addClass("current");
10
+ current.closest("li.toctree-l2").addClass("current");
11
+ current.closest("li.toctree-l3").addClass("current");
12
+ current.closest("li.toctree-l4").addClass("current");
13
+ current.closest("li.toctree-l5").addClass("current");
14
+ current[0].scrollIntoView();
15
+ }
16
+ /* content toc */
17
+ $(".wy-menu-vertical li.current").append(function() {
18
+ let level = parseInt($(this).attr("class").match(/toctree-l(\d+)/)[1]) + 1;
19
+ let toc = ["<ul>"];
20
+ let sort = parseInt(this.dataset.sort);
21
+
22
+ $(".document").find("h2,h3,h4,h5,h6").each(function() {
23
+ toc.push(`<li class="toctree-l${level}"><a class="reference internal" href="#${this.id}">${$(this).text()}</a></li>`);
24
+ });
25
+ toc.push("</ul>");
26
+ /* return is apend */
27
+ if (toc.length == 2) {
28
+ return "";
29
+ } else {
30
+ return toc.join("");
15
31
  }
16
- };
32
+ });
33
+ /* native nav */
17
34
  SphinxRtdTheme.Navigation.enable(true);
18
35
 
36
+ /* search highlight */
19
37
  if (highlight) {
20
38
  $(".section").find("*").each(function() {
21
39
  try {
@@ -32,9 +50,16 @@ $(document).ready(function() {
32
50
  }
33
51
  });
34
52
  }
35
- for (let item in ui.admonition) {
36
- let content = $(`.language-${item}`).html();
37
- $(`.language-${item}`).replaceWith(`<div class="admonition ${item}"><p class="admonition-title">${ui.admonition[item]}</p><p>${content}</p></div>`);
38
- }
53
+ /* admonition */
54
+ $(".admonition-title").each(function() {
55
+ $(this).html(ui.admonition[$(this).attr("ui")]);
56
+ });
57
+ /* anchors */
39
58
  anchors.add();
59
+
60
+ /* analytics */
61
+ analytics.searchParams.append("user_lang", navigator.language);
62
+ analytics.searchParams.append("host", location.host);
63
+ analytics.searchParams.append("platform", navigator.platform);
64
+ $.getJSON(analytics.toString(), (data) => $("#counter").html(data.count));
40
65
  });
@@ -1,18 +1,22 @@
1
1
  {%- include reset/workdir.liquid %}
2
2
 
3
+ {% comment %} display the directory name {% endcomment %}
3
4
  {%- assign dir = site_pages | where: "url", workdir | first -%}
4
5
  {%- if site_lang != lang -%}
6
+ {% comment %} current in language directory (level-1) {% endcomment %}
5
7
  {%- assign workdir_level = workdir_level | minus: 1 -%}
6
8
  {%- endif -%}
7
9
  {%- if workdir_level == 2 %}
10
+ {% comment %} display the root sub-directory as "p.caption" {% endcomment %}
8
11
  <p class="caption"><span class="caption-text">{{ dir.title | default: dir.url }}</span></p>
9
12
  {%- else %}
10
13
  <a class="reference internal" href="{{ dir.url | relative_url }}">{{ dir.title | default: dir.url }}</a>
11
14
  {%- endif -%}
12
15
 
13
16
  <ul>
17
+ {% comment %} list file {% endcomment %}
14
18
  {%- for item in workdir_files -%}
15
- {%- assign level = item.dir | append: "temp/" | split: "/" | size | minus: 2 -%}
19
+ {%- assign level = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 1 -%}
16
20
  {%- capture current -%}
17
21
  {%- if page.url == item.url %}current{% endif -%}
18
22
  {%- endcapture %}
@@ -20,7 +24,7 @@
20
24
  {%- assign level = level | minus: 1 -%}
21
25
  {%- endif -%}
22
26
 
23
- <li class="toctree-l{{ level }} {{ current }}">
27
+ <li class="toctree-l{{ level }} {{ current }}" data-sort="{{ item.sort }}">
24
28
  <a class="reference internal {{ current }}" href="{{ item.url | relative_url }}">
25
29
  {%- if item.sort and site.show_sorted != false -%}
26
30
  {{ item.sort }}. {{ item.title | default: item.url }}
@@ -30,8 +34,10 @@
30
34
  </a>
31
35
  </li>
32
36
  {%- endfor -%}
37
+
38
+ {% comment %} list dirs {% endcomment %}
33
39
  {%- for workdir in workdir_dirs -%}
34
- {%- assign level = workdir | append: "temp/" | split: "/" | size | minus: 3 %}
40
+ {%- assign level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 2 %}
35
41
  {%- if site_lang != lang -%}
36
42
  {%- assign level = level | minus: 1 -%}
37
43
  {%- endif -%}
File without changes
File without changes
@@ -32,6 +32,6 @@
32
32
  </div>
33
33
  {%- endif -%}
34
34
  <div role="contentinfo" class="copyright rundocs">
35
- <p>Powered by <a href="https://rundocs.io">rundocs.io</a> using the jekyll docs theme <a href="https://jekyll-rtd-theme.rundocs.io">jekyll-rtd-theme</a></p>
35
+ <p>Powered by <a href="https://rundocs.io">rundocs.io</a> using the jekyll docs theme <a href="https://rundocs.github.io/jekyll-rtd-theme">jekyll-rtd-theme</a></p>
36
36
  </div>
37
37
  </footer>
@@ -0,0 +1,29 @@
1
+ {% comment %} Spanish {% endcomment %}
2
+ {%- assign __github = "Github" -%}
3
+ {%- assign __homepage = "Página principal" -%}
4
+ {%- assign __issues = "Cuestiones" -%}
5
+ {%- assign __download = "Descargar" -%}
6
+ {%- assign __plugins = "Complementos temáticos" -%}
7
+ {%- assign __translations = "Traducciones" -%}
8
+ {%- assign __statistics = "Estadísticas" -%}
9
+ {%- assign __total_visits = "Visitas totales:" -%}
10
+
11
+ {%- assign __note = "Observaciones" -%}
12
+ {%- assign __tip = "Consejos" -%}
13
+ {%- assign __warning = "Advertencia" -%}
14
+ {%- assign __danger = "Peligro" -%}
15
+
16
+ {%- assign __next = "Siguiente página" -%}
17
+ {%- assign __previous = "Pagina anterior" -%}
18
+ {%- assign __copyright = "Derechos de autor" -%}
19
+ {%- assign __revision = "Revisión" -%}
20
+
21
+ {%- assign __404 = "404" -%}
22
+ {%- assign __not_found = "¡Esta página aún no existe!" -%}
23
+
24
+ {%- assign __searching = "Buscando" -%}
25
+ {%- assign __search = "Buscar" -%}
26
+ {%- assign __search_docs = "Buscar documentos" -%}
27
+ {%- assign __search_results = "Resultados de la búsqueda" -%}
28
+ {%- assign __search_results_found = "Búsqueda finalizada, se encontraron # páginas que coinciden con la consulta de búsqueda." -%}
29
+ {%- assign __search_results_not_found = "Su búsqueda no coincide con ningún documento, asegúrese de que todos los caracteres estén escritos correctamente." -%}
@@ -0,0 +1,29 @@
1
+ {% comment %} Swedish {% endcomment %}
2
+ {%- assign __github = "Github" -%}
3
+ {%- assign __homepage = "Hemsida" -%}
4
+ {%- assign __issues = "frågor" -%}
5
+ {%- assign __download = "Ladda ner" -%}
6
+ {%- assign __plugins = "Tema Plugins" -%}
7
+ {%- assign __translations = "översättningar" -%}
8
+ {%- assign __statistics = "Statistik" -%}
9
+ {%- assign __total_visits = "Totalt antal besök:" -%}
10
+
11
+ {%- assign __note = "Anmärkningar" -%}
12
+ {%- assign __tip = "tips" -%}
13
+ {%- assign __warning = "Varning" -%}
14
+ {%- assign __danger = "Fara" -%}
15
+
16
+ {%- assign __next = "Nästa sida" -%}
17
+ {%- assign __previous = "Föregående sida" -%}
18
+ {%- assign __copyright = "upphovsrätt" -%}
19
+ {%- assign __revision = "Revision" -%}
20
+
21
+ {%- assign __404 = "404" -%}
22
+ {%- assign __not_found = "Den här sidan finns inte ännu!" -%}
23
+
24
+ {%- assign __searching = "Sökande" -%}
25
+ {%- assign __search = "Sök" -%}
26
+ {%- assign __search_docs = "Sök i dokument" -%}
27
+ {%- assign __search_results = "sökresultat" -%}
28
+ {%- assign __search_results_found = "Sökningen är klar, hittade # sida (er) som matchar sökfrågan." -%}
29
+ {%- assign __search_results_not_found = "Din sökning matchade inga dokument, se till att alla tecken stavas korrekt!" -%}
@@ -1,13 +1,14 @@
1
1
  {%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
2
- {%- assign version = "1.0.5" -%}
2
+ {%- assign version = "1.1.4" -%}
3
3
  {%- assign addons = "github, i18n, plugins, analytics" | split: ", " -%}
4
4
 
5
- {%- assign schema_lastmod = site.time | date_to_xmlschema -%}
6
- {%- assign schema_url = page.url | absolute_url | replace: 'http://', 'https://' | xml_escape -%}
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 -%}
7
8
 
8
9
  {% comment %} scss {% endcomment %}
9
10
  {%- capture site_scss -%}
10
- @import "site.scss";
11
+ @import "jekyll-rtd-theme.scss";
11
12
  {% if site.fluid %}@import "fluid.scss";{% endif %}
12
13
  {% include assets/custom.scss %} {{ site.scss }}
13
14
  {%- endcapture -%}
@@ -21,25 +22,15 @@
21
22
 
22
23
  {% comment %} github-metadata {% endcomment %}
23
24
  {%- if site.github_metadata != false -%}
24
- {%- if jekyll.environment == "production" -%}
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 | default: "[author]" -%}
34
- {%- assign branch = "[branch]" -%}
35
- {%- assign commit = "[commit]" -%}
36
- {%- assign repository_url = "#" -%}
37
- {%- assign issues_url = "#" -%}
38
- {%- assign zip_url = "#" -%}
39
- {%- assign github_edit_link = "#" -%}
40
- {%- endif -%}
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 -%}
41
32
  {%- else -%}
42
- {%- assign author = site.author | default: "[author]" -%}
33
+ {%- assign author = site.author -%}
43
34
  {%- assign branch = "" -%}
44
35
  {%- assign commit = "" -%}
45
36
  {%- assign repository_url = "" -%}
@@ -8,12 +8,12 @@
8
8
  {%- endif -%}
9
9
  {%- endif -%}
10
10
 
11
- {%- assign workdir_level = workdir | append: "temp/" | split: "/" | size | minus: 1 -%}
11
+ {%- assign workdir_level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
12
12
  {%- assign workdir_files = site_files | where_exp: "item", "item.dir == workdir" -%}
13
13
 
14
14
  {%- capture items -%}
15
15
  {%- for item in site_dirs -%}
16
- {%- assign current_m1 = item.dir | append: "temp/" | split: "/" | size | minus: 2 -%}
16
+ {%- assign current_m1 = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 1 -%}
17
17
  {%- if workdir_level == current_m1 -%}
18
18
  {%- assign temp = workdir | append: "@@" -%}
19
19
  {%- assign dir = item.dir | replace: workdir, temp | split: "@@" | first -%}
@@ -1,8 +1,12 @@
1
1
  {%- include reset/workdir.liquid %}
2
2
 
3
+ {% comment %} list the root files {% endcomment %}
3
4
  <ul>
4
5
  {%- for item in workdir_files -%}
5
- {%- assign level = item.dir | append: "temp/" | split: "/" | size | minus: 1 -%}
6
+ {%- assign level = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
7
+ {%- if site_lang != lang -%}
8
+ {%- assign level = level | minus: 1 -%}
9
+ {%- endif -%}
6
10
  {%- capture current -%}
7
11
  {%- if page.url == item.url %}current{% endif -%}
8
12
  {%- endcapture %}
@@ -14,4 +18,5 @@
14
18
  {%- endfor %}
15
19
  </ul>
16
20
 
21
+ {% comment %} list the root dirs {% endcomment %}
17
22
  {%- for workdir in workdir_dirs %}{% include extend/toctree.liquid %}{% endfor -%}
@@ -14,7 +14,7 @@ layout: plugins/compress
14
14
  {%- endif %}
15
15
  -->
16
16
 
17
- <html amp class="writer-html5" lang="{{ lang }}">
17
+ <html class="writer-html5" lang="{{ lang }}">
18
18
 
19
19
  <head>
20
20
  <meta charset="utf-8">
@@ -41,14 +41,16 @@ layout: plugins/compress
41
41
  <meta name="author" content="{{ author }}">
42
42
  <meta name="revised" content="{{ commit }}">
43
43
  <meta name="generator" content="jekyll-rtd-theme v{{ version }}">
44
- <!-- meta-og -->
44
+ <!-- meta-ogp -->
45
+ {% comment %} https://ogp.me {% endcomment %}
45
46
  <meta property="og:title" content="{{ title }}">
46
47
  <meta property="og:description" content="{{ description }}">
47
48
  <meta property="og:locale" content="{{ lang }}">
48
- <meta property="og:url" content="{{ schema_url }}">
49
+ <meta property="og:url" content="{{ schema_surl }}">
49
50
  <meta property="og:type" content="article">
50
51
  <meta property="article:author" content="{{ author }}">
51
- <meta property="article:modified_time" content="{{ schema_lastmod }}">
52
+ <meta property="article:published_time" content="{{ schema_date }}">
53
+ <meta property="article:modified_time" content="{{ schema_modi }}">
52
54
  <!-- meta-custom -->
53
55
  {% for meta in site.meta -%}
54
56
  <meta name="{{ meta.first }}" content="{{ meta.last }}">
@@ -60,7 +62,7 @@ layout: plugins/compress
60
62
  "@type": "Article",
61
63
  "mainEntityOfPage": {
62
64
  "@type": "WebPage",
63
- "@id": "{{ schema_url }}"
65
+ "@id": "{{ schema_surl }}"
64
66
  },
65
67
  "headline": "{{ title | truncate: 110 }}",
66
68
  "image": [{% for image in page.images %}"{{ image }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
@@ -68,8 +70,8 @@ layout: plugins/compress
68
70
  "@type": "Person",
69
71
  "name": "{{ author }}"
70
72
  },
71
- "datePublished": "{{ page.date | default: site.time | date_to_xmlschema }}",
72
- "dateModified": "{{ schema_lastmod }}",
73
+ "datePublished": "{{ schema_date }}",
74
+ "dateModified": "{{ schema_modi }}",
73
75
  "publisher": {
74
76
  "@type": "Organization",
75
77
  "name": "RunDocs",
@@ -82,15 +84,15 @@ layout: plugins/compress
82
84
  }
83
85
  </script>
84
86
  <!-- link -->
85
- <link rel="canonical" href="{{ schema_url }}">
87
+ <link rel="canonical" href="{{ schema_surl }}">
86
88
  {% if prev %}<link rel="prev" href="{{ prev.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
87
89
  {% if next %}<link rel="next" href="{{ next.url | absolute_url | replace: 'http://', 'https://' }}">{% endif %}
88
90
  <!-- theme -->
89
91
  <link rel="stylesheet" href="{{ cdn }}/assets/css/theme.css">
90
92
  <link rel="stylesheet" href="{{ cdn }}/assets/css/rougify/{{ site.rougify | default: 'github' }}.css">
91
- <style>{{ site_scss | scssify }}</style>
93
+ <style>{{ site_scss | scssify | strip_newlines }}</style>
92
94
  <!-- icon -->
93
- <link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
95
+ <link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/favicon.svg">
94
96
  <!-- script -->
95
97
  <!--[if lt IE 9]><script src="{{ cdn }}/assets/js/html5shiv.min.js"></script><![endif]-->
96
98
  <script src="{{ cdn }}/assets/js/jquery.min.js"></script>
@@ -107,6 +109,7 @@ layout: plugins/compress
107
109
  }
108
110
  };
109
111
  </script>
112
+ {% include extra/head.html %}
110
113
  </head>
111
114
 
112
115
  <body class="wy-body-for-nav">
@@ -139,19 +142,24 @@ layout: plugins/compress
139
142
  <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
140
143
  <!-- MOBILE NAV -->
141
144
  <nav class="wy-nav-top" aria-label="top navigation">
142
- <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
143
- <a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}">{{ site.title }}</a>
145
+ <div class="flex">
146
+ <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
147
+ <div class="wy-nav-title">
148
+ <a href="{{ site.baseurl }}/{% if site_lang != lang %}{{ lang }}/{% endif %}">{{ site.title }}</a>
149
+ </div>
150
+ </div>
144
151
  </nav>
145
152
  <div class="wy-nav-content">
146
153
  <div class="rst-content">
147
154
  {% include breadcrumbs.liquid %}
148
- <div class="document" role="main">
149
- {%- if page.url == "/search.html" -%}
150
- {{ content }}
151
- {%- else -%}
152
- <div class="section">{{ content }}</div>
153
- {%- endif -%}
154
-
155
+ <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
156
+ <div itemprop="articleBody">
157
+ {%- if page.url == "/search.html" -%}
158
+ {{ content }}
159
+ {%- else -%}
160
+ <div class="section">{{ content }}</div>
161
+ {%- endif -%}
162
+ </div>
155
163
  {% comment %} comments {% endcomment %}
156
164
  {% if site.disqus %}
157
165
  <div id="disqus_thread" class="articleComments"></div>
@@ -170,9 +178,19 @@ layout: plugins/compress
170
178
  </section>
171
179
  </div>
172
180
  {%- if site.addons %}{% include addons.liquid %}{% endif %}
181
+ {% include extra/footer.html %}
173
182
  <!-- script -->
174
183
  <script src="{{ cdn }}/assets/js/theme.js"></script>
175
184
  <script src="{{ cdn }}/assets/js/anchor.min.js"></script>
185
+ {% comment %} mermaid {% endcomment %}
186
+ {%- if content contains '<pre class="language-mermaid">' -%}
187
+ {%- if site.mermaid.src -%}
188
+ <script src="{{ site.mermaid.src }}"></script>
189
+ {%- else -%}
190
+ <script src="{{ cdn }}/assets/js/mermaid.min.js"></script>
191
+ {%- endif -%}
192
+ <script>mermaid.initialize({startOnLoad: true});</script>
193
+ {%- endif -%}
176
194
  <script>
177
195
  {% include assets/common.js %}
178
196
  {% include assets/custom.js %} {{ site.script }}