jekyll-rtd-theme 2.0.0.pre.beta → 2.0.0.pre.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -22
  3. data/_includes/assets/defaults.liquid +69 -0
  4. data/_includes/assets/i18n.liquid +1 -0
  5. data/_includes/{reset → assets}/site_pages.liquid +0 -0
  6. data/_includes/{extend → assets}/tabs.liquid +0 -0
  7. data/_includes/{reset → assets}/workdir.liquid +0 -0
  8. data/_includes/{breadcrumbs.liquid → class/_breadcrumbs.liquid} +10 -4
  9. data/_includes/{footer.liquid → class/_footer.liquid} +14 -9
  10. data/_includes/{extend/toctree.liquid → class/_toctree.extend.liquid} +5 -5
  11. data/_includes/{toctree.liquid → class/_toctree.liquid} +4 -4
  12. data/_includes/class/addons-wrap.liquid +26 -0
  13. data/_includes/{addons → class/addons}/analytics.liquid +2 -2
  14. data/_includes/class/addons/github.liquid +21 -0
  15. data/_includes/class/content-wrap.liquid +20 -0
  16. data/_includes/class/sidebar-wrap.liquid +18 -0
  17. data/_includes/head/links.liquid +16 -0
  18. data/_includes/head/metadata.liquid +21 -0
  19. data/_includes/head/script.extension.liquid +24 -0
  20. data/_includes/head/script.liquid +16 -0
  21. data/_includes/head/script.schema.liquid +27 -0
  22. data/_includes/head/title.liquid +1 -0
  23. data/_includes/{extend/list.liquid → list.extend.liquid} +5 -5
  24. data/_includes/list.liquid +3 -3
  25. data/_includes/shortcodes/danger.liquid +8 -6
  26. data/_includes/shortcodes/note.liquid +8 -6
  27. data/_includes/shortcodes/tip.liquid +8 -6
  28. data/_includes/shortcodes/warning.liquid +8 -6
  29. data/_layouts/default.liquid +16 -184
  30. data/_layouts/plugins/extension.liquid +3 -1
  31. data/_sass/_icons.scss +4 -0
  32. data/_sass/_layout.scss +3 -4
  33. data/_sass/_variables.scss +11 -8
  34. data/_sass/class/admonition.scss +47 -0
  35. data/_sass/class/container.scss +1 -1
  36. data/_sass/class/markdown-body.scss +15 -7
  37. data/_sass/class/sidebar-wrap.scss +31 -20
  38. data/_sass/class/title.scss +0 -1
  39. data/_sass/theme.scss +8 -7
  40. data/assets/404.liquid +3 -1
  41. data/assets/css/theme.min.css +1 -1
  42. data/assets/js/mermaid.min.js +0 -1
  43. data/assets/js/theme.js +95 -18
  44. data/assets/js/theme.min.js +1 -1
  45. data/assets/pages.liquid +1 -1
  46. data/assets/search.liquid +5 -14
  47. data/assets/sitemap.liquid +1 -1
  48. data/assets/sw.caches.liquid +1 -1
  49. metadata +24 -15
  50. data/_includes/addons/github.liquid +0 -18
  51. data/_includes/reset/defaults.liquid +0 -54
  52. data/_includes/safe/shortcodes.liquid +0 -9
  53. data/assets/js/search.js +0 -90
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15185d69e5df3312de8226fdf843da12d6f1cbc754a0b439c0be998be05fe524
4
- data.tar.gz: ede7f10389e609983db0b3429ad717366016205c4c19447fe2db68056596d7b1
3
+ metadata.gz: 9d5f271a444c19902ca9cef4a2a5861863fa6afa932326101d2a4d1a3db4b8d3
4
+ data.tar.gz: 78baf17dd546c3717a466a51862545ed22f980c935bf5b40243027f7ce98b184
5
5
  SHA512:
6
- metadata.gz: 1dc680274eb05e270130ec057f902794f53b622af56dfe222d194d53d0fc90e3598c16d52c0b7cf84b71f53406d81fd480be150f06c54ee3228a9fbafae49037
7
- data.tar.gz: 611d1d5a0752e19bb708b55f3f878a1747f447e5348f7b8b98265befe6af025482275b5babfe042e7e7d21cda4140d6a900208fae9ba0f2fe2287a8a6553e70d
6
+ metadata.gz: aebf7861d009713ce800cb0fdef796ec33b53c743bcfbfd139a0589f3c7c46dfc15229bbd626946057a448a3bd4a1791c4f39278e7baf3749ac6d99c159281ff
7
+ data.tar.gz: '09f541286274d91918604f15439f9d4faeff580cf5a798322d2be370e6f5d85e73758c936fe5c104f35cc386d60b3e71ede3f7cdc81df9f84503d1f69b88ab26'
data/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # jekyll-rtd-theme
2
2
 
3
- [![CI](https://github.com/rundocs/jekyll-rtd-theme/workflows/CI/badge.svg)][repository]
4
- [![jsDelivr](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)][cdn]
3
+ ![CI](https://github.com/rundocs/jekyll-rtd-theme/workflows/CI/badge.svg)
4
+ ![jsDelivr](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)
5
5
 
6
- Opinionated github flavored documentation theme for open source projects
6
+ Opinionated github flavored documentation theme for open source projects, with few options, just use it!
7
+
8
+ # Waiting for your contribution 2.0
7
9
 
8
10
  ## Quick start
9
11
 
@@ -13,31 +15,42 @@ remote_theme: rundocs/jekyll-rtd-theme
13
15
 
14
16
  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/)
15
17
 
16
- ## Features
18
+ ## Options
19
+
20
+ ```yml
21
+ title: Your awesome title
22
+ lang: en
23
+ description: Write an awesome description for your new site here
24
+
25
+ # plugin options
26
+ readme_index:
27
+ with_frontmatter: true
17
28
 
18
- - Automatically generate nested sidebar based on directory
19
- - Multi-language supported
20
- - Search engine optimized
21
- - Document search (RegExp supported)
22
- - Support third-party comments
23
- - Google, Baidu, CNZZ Analytics supported
24
- - Just need one file `_config.yml` to configure site
25
29
 
26
- ## Documents
30
+ # optional settings
31
+ meta:
32
+ key1: value1
33
+ key2: value2
34
+ .
35
+ .
36
+ .
27
37
 
28
- For full documentation, please refer to our website ([rundocs.io](https://rundocs.io/)) for details
38
+ google:
39
+ gtag:
40
+ adsense:
29
41
 
30
- ### test
42
+ mermaid:
43
+ custom: # mermaid link
44
+ initialize: # mermaid options
31
45
 
32
- - Latest test document: [rundocs.github.io/jekyll-rtd-theme](https://rundocs.github.io/jekyll-rtd-theme)
33
- - Preview debug branch, please refer to [rundocs.github.io/debug](https://rundocs.github.io/debug)
46
+
47
+ # optional plugins
48
+ plugins:
49
+ - jemoji
50
+ - jekyll-avatar
51
+ - jekyll-mentions
52
+ ```
34
53
 
35
54
  ## The license
36
55
 
37
56
  The theme is available as open source under the terms of the MIT License
38
-
39
- [repository]: https://github.com/rundocs/jekyll-rtd-theme
40
- [rubygem]: https://rubygems.org/gems/jekyll-rtd-theme
41
- [cdn]: https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme/
42
- [codefactor]: https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme
43
- [gitter]: https://gitter.im/rundocs/jekyll-rtd-theme?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
@@ -0,0 +1,69 @@
1
+ {%- include assets/site_pages.liquid -%}
2
+ {%- include assets/i18n.liquid -%}
3
+
4
+ {%- comment %} variables {% endcomment -%}
5
+ {%- assign version = "2.0.0-beta1" -%}
6
+ {%- assign docs = site.github -%}
7
+ {%- assign rest = docs.public_repositories | where: "html_url", docs.repository_url | first -%}
8
+
9
+ {%- assign rest_created_at = rest.created_at | default: site.time -%}
10
+ {%- assign rest_updated_at = rest.updated_at | default: site.time -%}
11
+
12
+ {%- assign lang = site.lang | default: "en" -%}
13
+ {%- assign author = docs.owner.name | default: docs.owner_name -%}
14
+
15
+ {%- comment %} schema {% endcomment -%}
16
+ {%- assign schema_date = page.date | default: rest_created_at | date_to_xmlschema -%}
17
+ {%- assign schema_modi = site.time | date_to_xmlschema -%}
18
+ {%- assign schema_surl = page.url | absolute_url | xml_escape -%}
19
+
20
+ {%- comment %} title {% endcomment -%}
21
+ {%- case page.url -%}
22
+ {%- when "/" -%}
23
+ {%- assign title = site.title | append: " · " | append: site.description | truncate: 110 -%}
24
+ {%- when "/search.html" -%}
25
+ {%- assign title = __.search | default: "Search" | append: " · " | append: site.title | truncate: 110 -%}
26
+ {%- when "/404.html" -%}
27
+ {%- assign title = "404" | append: " · " | append: site.title | truncate: 110 -%}
28
+ {%- else -%}
29
+ {%- assign title = page.title | default: page.url | append: " · " | append: site.title | truncate: 110 -%}
30
+ {%- endcase -%}
31
+
32
+ {%- comment %} description {% endcomment -%}
33
+ {%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
34
+
35
+ {% comment %} debug {% endcomment %}
36
+ {%- if site.debug -%}
37
+ {%- assign cdn = site.baseurl -%}
38
+ {%- else -%}
39
+ {%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
40
+ {%- endif -%}
41
+
42
+ {% comment %} content {% endcomment %}
43
+ {%- assign content = content
44
+ | replace: '’', "'"
45
+ | replace: "“", '"'
46
+ | replace: '”', '"'
47
+ | replace: "highlighter-rouge", "highlighter-rouge notranslate" -%}
48
+
49
+
50
+ {% comment %} prev and next {% endcomment %}
51
+ {%- assign workdir_files = site_files | where_exp: "item", "item.dir == page.dir" -%}
52
+
53
+ {%- assign index = 0 -%}
54
+ {%- for item in workdir_files %}
55
+ {%- if item.url == page.url %}
56
+ {%- assign index = forloop.index -%}
57
+ {%- endif %}
58
+ {%- endfor -%}
59
+
60
+ {%- for item in workdir_files -%}
61
+ {%- assign index_prev = index | minus: 1 -%}
62
+ {%- assign index_next = index | plus: 1 -%}
63
+ {%- if forloop.index == index_prev -%}
64
+ {%- assign prev = item -%}
65
+ {%- endif %}
66
+ {%- if forloop.index == index_next and page.url != page.dir -%}
67
+ {%- assign next = item -%}
68
+ {%- endif %}
69
+ {%- endfor -%}
@@ -0,0 +1 @@
1
+ {%- assign __ = site.translate | default: site.data.translate -%}
File without changes
@@ -1,13 +1,19 @@
1
1
  <div class="navigation-top d-flex flex-justify-between">
2
2
  <ul class="breadcrumb" role="navigation" aria-label="breadcrumbs navigation">
3
3
  <li class="breadcrumb-item">
4
- <a href="{{ site.baseurl }}/" title="{{ site.github.source.branch }}"><i class="fa fa-home"></i></a>
4
+ <a href="{{ site.baseurl }}/">
5
+ <i class="fa fa-home"></i>
6
+ </a>
5
7
  </li>
6
8
  {%- case page.url -%}
7
9
  {%- when "/search.html" -%}
8
- <li class="breadcrumb-item" aria-current="page">{{ site.data.translate.search | default: "Search" }}</li>
10
+ <li class="breadcrumb-item" aria-current="page">
11
+ {{ __.search | default: "Search" }}
12
+ </li>
9
13
  {%- when "/404.html" -%}
10
- <li class="breadcrumb-item" aria-current="page">404</li>
14
+ <li class="breadcrumb-item" aria-current="page">
15
+ 404
16
+ </li>
11
17
  {%- else -%}
12
18
  {%- assign blocks = page.path | split: "/" -%}
13
19
  {%- for block in blocks -%}
@@ -21,7 +27,7 @@
21
27
  {%- endfor -%}
22
28
  {%- endcase -%}
23
29
  </ul>
24
- <a class="edit" href="{% github_edit_link %}" title="{{ site.data.translate.edit | default: 'Edit on GitHub'}}" target="_blank">
30
+ <a class="edit" href="{% github_edit_link %}" title="{{ __.edit | default: 'Edit on GitHub'}}" target="_blank">
25
31
  <i class="fa fa-edit"></i>
26
32
  </a>
27
33
  </div>
@@ -5,14 +5,14 @@
5
5
  <div class="prev">
6
6
  {%- if prev -%}
7
7
  <a href="{{ prev.url | relative_url }}" class="btn" title="{{ prev.title }}" accesskey="p" rel="prev">
8
- <i class="fa fa-arrow-circle-left"></i> {{ site.data.translate.previous | default: "Previous" }}
8
+ <i class="fa fa-arrow-circle-left"></i> {{ __.previous | default: "Previous" }}
9
9
  </a>
10
10
  {%- endif -%}
11
11
  </div>
12
12
  <div class="next">
13
13
  {%- if next -%}
14
14
  <a href="{{ next.url | relative_url }}" class="btn" title="{{ next.title }}" accesskey="n" rel="next">
15
- {{ site.data.translate.next | default: "Next" }} <i class="fa fa-arrow-circle-right"></i>
15
+ {{ __.next | default: "Next" }} <i class="fa fa-arrow-circle-right"></i>
16
16
  </a>
17
17
  {%- endif -%}
18
18
  </div>
@@ -24,13 +24,18 @@
24
24
 
25
25
  <div class="copyright text-center text-gray" role="contentinfo">
26
26
  <i class="fa fa-copyright"></i>
27
- {%- if site.rundocs.since %}{{ site.rundocs.since }}-{% endif -%}
28
- {{- site.time | date: "%Y" }},
29
- <a class="text-gray" href="{{ site.github.owner_url }}" target="_blank">
30
- {{ site.github.owner_name }}
27
+ {%- assign created_time = rest_created_at | date: "%Y" -%}
28
+ {%- assign updated_time = rest_updated_at | date: "%Y" -%}
29
+ {%- if created_time == updated_time -%}
30
+ {{ created_time }},
31
+ {%- else -%}
32
+ {{ created_time }}-{{ updated_time }},
33
+ {%- endif %}
34
+ <a class="text-gray" href="{{ docs.owner_url }}" target="_blank">
35
+ {{ author }}
31
36
  </a>
32
- {{ site.data.translate.revision | default: "Revision" }}
33
- <a class="text-gray" href="{{ site.github.repository_url }}/commit/{{ site.github.build_revision }}" title="{{ site.github.build_revision }}" target="_blank">
34
- {{ site.github.build_revision | slice: 0, 7 }}
37
+ {{ __.revision | default: "Revision" }}
38
+ <a class="text-gray" href="{{ docs.repository_url }}/commit/{{ docs.build_revision }}" title="{{ docs.build_revision }}" target="_blank">
39
+ {{ docs.build_revision | slice: 0, 7 }}
35
40
  </a>
36
41
  </div>
@@ -1,4 +1,4 @@
1
- {%- include reset/workdir.liquid %}
1
+ {%- include assets/workdir.liquid %}
2
2
 
3
3
  {% comment %} display the directory name {% endcomment %}
4
4
  {%- assign dir = site_pages | where: "url", workdir | first -%}
@@ -7,7 +7,7 @@
7
7
  {% comment %} display the root sub-directory as "p.caption" {% endcomment %}
8
8
  <p class="caption text-uppercase no-wrap px-2 mb-0">{{ dir.title | default: dir.url }}</p>
9
9
  {%- else %}
10
- <a class="d-flex" href="{{ dir.url | relative_url }}">{{ dir.title | default: dir.url }}</a>
10
+ <a class="d-flex flex-items-baseline" href="{{ dir.url | relative_url }}">{{ dir.title | default: dir.url }}</a>
11
11
  {%- endif -%}
12
12
 
13
13
  <ul>
@@ -19,8 +19,8 @@
19
19
  {%- endcapture %}
20
20
 
21
21
  <li class="toc level-{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
22
- <a class="d-flex {{ current }}" href="{{ item.url | relative_url }}">
23
- {%- if item.sort and site.show_sorted != false -%}
22
+ <a class="d-flex flex-items-baseline {{ current }}" href="{{ item.url | relative_url }}">
23
+ {%- if item.sort -%}
24
24
  {{ item.sort }}. {{ item.title | default: item.url }}
25
25
  {%- else -%}
26
26
  {{ item.title | default: item.url }}
@@ -32,6 +32,6 @@
32
32
  {% comment %} list dirs {% endcomment %}
33
33
  {%- for workdir in workdir_dirs -%}
34
34
  {%- assign level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 2 %}
35
- <li class="toc level-{{ level }}">{% include extend/toctree.liquid %}</li>
35
+ <li class="toc level-{{ level }}">{% include class/_toctree.extend.liquid %}</li>
36
36
  {%- endfor -%}
37
37
  </ul>
@@ -1,4 +1,4 @@
1
- {%- include reset/workdir.liquid %}
1
+ {%- include assets/workdir.liquid %}
2
2
 
3
3
  {% comment %} list the root files {% endcomment %}
4
4
  <ul>
@@ -8,8 +8,8 @@
8
8
  {%- if page.url == item.url %}current{% endif -%}
9
9
  {%- endcapture %}
10
10
  <li class="toc level-{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
11
- <a class="d-flex {{ current }}" href="{{ item.url | relative_url }}">
12
- {%- if item.sort and site.show_sorted != false -%}
11
+ <a class="d-flex flex-items-baseline {{ current }}" href="{{ item.url | relative_url }}">
12
+ {%- if item.sort -%}
13
13
  {{ item.sort }}. {{ item.title | default: item.url }}
14
14
  {%- else -%}
15
15
  {{ item.title | default: item.url }}
@@ -20,4 +20,4 @@
20
20
  </ul>
21
21
 
22
22
  {% comment %} list the root dirs {% endcomment %}
23
- {%- for workdir in workdir_dirs %}{% include extend/toctree.liquid %}{% endfor -%}
23
+ {%- for workdir in workdir_dirs %}{% include class/_toctree.extend.liquid %}{% endfor -%}
@@ -0,0 +1,26 @@
1
+ <div class="addons-wrap d-flex flex-column overflow-y-auto">
2
+ <div class="status d-flex flex-justify-between p-2">
3
+ <div class="title p-1">
4
+ <i class="fa fa-book"></i> {{ site.title }}
5
+ </div>
6
+ <div class="branch p-1">
7
+ <span class="name">
8
+ {{ docs.source.branch }}
9
+ </span>
10
+ <i class="fa fa-caret-down"></i>
11
+ </div>
12
+ </div>
13
+ <div class="addons d-flex flex-column height-full p-2 d-none">
14
+ {%- assign items = "github, analytics" | split: ", " -%}
15
+ {% for item in items -%}
16
+ {% include class/addons/{{ item }}.liquid %}
17
+ {% endfor -%}
18
+ <hr>
19
+ <div class="generator f6 pb-2">
20
+ Built with
21
+ <a href="https://github.com/rundocs/jekyll-rtd-theme" target="_blank" title="{% if site.remote_theme %}remote{% endif %} theme v{{ version }}">jekyll-rtd-theme</a>
22
+ provided by
23
+ <a href="https://rundocs.io" target="_blank">RunDocs</a>
24
+ </div>
25
+ </div>
26
+ </div>
@@ -1,8 +1,8 @@
1
1
  <dl>
2
- <dt>{{ site.data.translate.statistics | default: "Statistics" }}</dt>
2
+ <dt>{{ __.statistics | default: "Statistics" }}</dt>
3
3
  <dd>
4
4
  <a href="https://github.com/rundocs/analytics" target="_blank">
5
- {{ site.data.translate.total_visits | default: "Total visits" }}:
5
+ {{ __.total_visits | default: "Total visits" }}:
6
6
  <span id="counter">
7
7
  <span class="progress"></span>
8
8
  </span>
@@ -0,0 +1,21 @@
1
+ <dl>
2
+ <dt>{{ __.github | default: "GitHub" }}</dt>
3
+ <dd>
4
+ <a href="{{ docs.repository_url }}" title="{{ __.stars | default: 'Stars' }}: {{ rest.stargazers_count }}">
5
+ <i class="fa fa-github"></i>
6
+ {{ __.homepage | default: "Homepage" }}
7
+ </a>
8
+ </dd>
9
+ <dd>
10
+ <a href="{{ docs.issues_url }}" title="{{ __.open_issues | default: 'Open issues' }}: {{ rest.open_issues }}">
11
+ <i class="fa fa-question-circle-o"></i>
12
+ {{ __.issues | default: "Issues" }}
13
+ </a>
14
+ </dd>
15
+ <dd>
16
+ <a href="{{ docs.zip_url }}" title="{{ __.size | default: 'Size' }}: {{ rest.size }} Kb">
17
+ <i class="fa fa-download"></i>
18
+ {{ __.download | default: "Download" }}
19
+ </a>
20
+ </dd>
21
+ </dl>
@@ -0,0 +1,20 @@
1
+ <div class="content-wrap">
2
+ <div class="header d-flex flex-justify-between p-2 hide-lg hide-xl" aria-label="top navigation">
3
+ <button id="toggle" class="btn-octicon p-2 m-0 text-white" type="button">
4
+ <i class="fa fa-bars"></i>
5
+ </button>
6
+ <div class="title flex-1 no-underline d-flex flex-justify-center">
7
+ <a class="h4 py-1 px-2 rounded-1" href="{{ site.baseurl }}/">{{ site.title }}</a>
8
+ </div>
9
+ </div>
10
+ <div class="content p-5">
11
+ {% include class/_breadcrumbs.liquid %}
12
+ <hr>
13
+ <div role="main" itemscope="itemscope" itemtype="http://schema.org/Article">
14
+ <div class="markdown-body" itemprop="articleBody">
15
+ {{ content }}
16
+ </div>
17
+ </div>
18
+ {% include class/_footer.liquid %}
19
+ </div>
20
+ </div>
@@ -0,0 +1,18 @@
1
+ <div class="sidebar-wrap overflow-hidden">
2
+ <div class="sidebar d-flex flex-column height-full overflow-y-scroll overflow-x-hidden">
3
+ <div class="header d-flex flex-column p-3 text-center">
4
+ <div class="title pb-1 no-underline">
5
+ <a class="h4 py-1 px-2 rounded-1" href="{{ site.baseurl }}/" title="{{ site.description }}">
6
+ <i class="fa fa-home"></i> {{ site.title }}
7
+ </a>
8
+ </div>
9
+ <span class="version text-gray">{{ docs.latest_release.name }}</span>
10
+ <form class="search pt-2" action="{{ site.baseurl }}/search.html" method="get" autocomplete="off">
11
+ <input class="form-control input-block input-sm" type="text" name="q" placeholder="{{ __.search_docs | default: 'Search docs...' }}">
12
+ </form>
13
+ </div>
14
+ <div class="toctree py-2" data-spy="affix" role="navigation" aria-label="main navigation">
15
+ {% include class/_toctree.liquid %}
16
+ </div>
17
+ </div>
18
+ </div>
@@ -0,0 +1,16 @@
1
+ {%- comment %} canonical link {% endcomment %}
2
+ <link rel="canonical" href="{{ schema_surl }}">
3
+
4
+ {%- if prev -%}
5
+ <link rel="prev" href="{{ prev.url | absolute_url }}">
6
+ {%- endif -%}
7
+
8
+ {%- if next -%}
9
+ <link rel="next" href="{{ next.url | absolute_url }}">
10
+ {%- endif -%}
11
+
12
+ {% comment %} theme {% endcomment %}
13
+ <link rel="stylesheet" href="{{ cdn }}/assets/css/theme{% if site.debug.dist != false %}.min{% endif %}.css">
14
+
15
+ {% comment %} icon {% endcomment %}
16
+ <link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/favicon.svg">
@@ -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,24 @@
1
+ {%- comment %} mermaid {% endcomment -%}
2
+ {%- if content contains '<code 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 -%}