doc-theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +50 -0
- data/_data/locales/ar.yml +91 -0
- data/_data/locales/bg-BG.yml +81 -0
- data/_data/locales/cs-CZ.yml +89 -0
- data/_data/locales/de-DE.yml +87 -0
- data/_data/locales/el-GR.yml +91 -0
- data/_data/locales/en.yml +91 -0
- data/_data/locales/es-ES.yml +77 -0
- data/_data/locales/fi-FI.yml +90 -0
- data/_data/locales/fr-FR.yml +77 -0
- data/_data/locales/hu-HU.yml +79 -0
- data/_data/locales/id-ID.yml +77 -0
- data/_data/locales/it-IT.yml +90 -0
- data/_data/locales/ko-KR.yml +84 -0
- data/_data/locales/my-MM.yml +77 -0
- data/_data/locales/pt-BR.yml +77 -0
- data/_data/locales/ru-RU.yml +87 -0
- data/_data/locales/sl-SI.yml +91 -0
- data/_data/locales/sv-SE.yml +91 -0
- data/_data/locales/th.yml +91 -0
- data/_data/locales/tr-TR.yml +77 -0
- data/_data/locales/uk-UA.yml +77 -0
- data/_data/locales/vi-VN.yml +76 -0
- data/_data/locales/zh-CN.yml +83 -0
- data/_data/locales/zh-TW.yml +83 -0
- data/_data/origin/basic.yml +46 -0
- data/_data/origin/cors.yml +59 -0
- data/_includes/.DS_Store +0 -0
- data/_includes/analytics/goatcounter.html +6 -0
- data/_includes/analytics/google.html +13 -0
- data/_includes/comments/disqus.html +50 -0
- data/_includes/comments/giscus.html +65 -0
- data/_includes/comments/utterances.html +50 -0
- data/_includes/comments.html +5 -0
- data/_includes/datetime.html +20 -0
- data/_includes/embed/bilibili.html +9 -0
- data/_includes/embed/twitch.html +8 -0
- data/_includes/embed/video.html +38 -0
- data/_includes/embed/youtube.html +9 -0
- data/_includes/favicons.html +19 -0
- data/_includes/footer.html +42 -0
- data/_includes/head.html +111 -0
- data/_includes/img-url.html +39 -0
- data/_includes/js-selector.html +126 -0
- data/_includes/jsdelivr-combine.html +26 -0
- data/_includes/lang.html +10 -0
- data/_includes/language-alias.html +70 -0
- data/_includes/mermaid.html +58 -0
- data/_includes/metadata-hook.html +1 -0
- data/_includes/mode-toggle.html +143 -0
- data/_includes/no-linenos.html +10 -0
- data/_includes/notification.html +24 -0
- data/_includes/origin-type.html +13 -0
- data/_includes/pageviews/goatcounter.html +18 -0
- data/_includes/post-nav.html +34 -0
- data/_includes/post-paginator.html +91 -0
- data/_includes/post-sharing.html +52 -0
- data/_includes/read-time.html +37 -0
- data/_includes/refactor-content.html +255 -0
- data/_includes/related-posts.html +96 -0
- data/_includes/search-loader.html +47 -0
- data/_includes/search-results.html +10 -0
- data/_includes/sidebar.html +99 -0
- data/_includes/toc.html +13 -0
- data/_includes/topbar.html +77 -0
- data/_includes/trending-tags.html +46 -0
- data/_includes/update-list.html +40 -0
- data/_layouts/archives.html +35 -0
- data/_layouts/categories.html +138 -0
- data/_layouts/category.html +24 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +87 -0
- data/_layouts/home.html +118 -0
- data/_layouts/page.html +20 -0
- data/_layouts/post.html +149 -0
- data/_layouts/tag.html +23 -0
- data/_layouts/tags.html +22 -0
- data/_sass/.DS_Store +0 -0
- data/_sass/addon/commons.scss +1553 -0
- data/_sass/addon/module.scss +200 -0
- data/_sass/addon/syntax.scss +292 -0
- data/_sass/addon/variables.scss +33 -0
- data/_sass/colors/syntax-dark.scss +164 -0
- data/_sass/colors/syntax-light.scss +214 -0
- data/_sass/colors/typography-dark.scss +147 -0
- data/_sass/colors/typography-light.scss +112 -0
- data/_sass/layout/archives.scss +144 -0
- data/_sass/layout/categories.scss +83 -0
- data/_sass/layout/category-tag.scss +72 -0
- data/_sass/layout/home.scss +189 -0
- data/_sass/layout/post.scss +357 -0
- data/_sass/layout/tags.scss +19 -0
- data/_sass/main.scss +13 -0
- data/_sass/variables-hook.scss +3 -0
- data/assets/.DS_Store +0 -0
- data/assets/404.html +14 -0
- data/assets/css/doc-theme.scss +6 -0
- data/assets/feed.xml +61 -0
- data/assets/img/favicons/android-chrome-192x192.png +0 -0
- data/assets/img/favicons/android-chrome-512x512.png +0 -0
- data/assets/img/favicons/apple-touch-icon.png +0 -0
- data/assets/img/favicons/browserconfig.xml +13 -0
- data/assets/img/favicons/favicon-16x16.png +0 -0
- data/assets/img/favicons/favicon-32x32.png +0 -0
- data/assets/img/favicons/favicon.ico +0 -0
- data/assets/img/favicons/mstile-150x150.png +0 -0
- data/assets/img/favicons/site.webmanifest +26 -0
- data/assets/js/data/search.json +20 -0
- data/assets/js/data/swconf.js +51 -0
- data/assets/js/pwa/app.js +54 -0
- data/assets/js/pwa/sw.js +101 -0
- data/assets/robots.txt +10 -0
- metadata +260 -0
data/_layouts/post.html
ADDED
@@ -0,0 +1,149 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
refactor: true
|
4
|
+
panel_includes:
|
5
|
+
- toc
|
6
|
+
tail_includes:
|
7
|
+
- related-posts
|
8
|
+
- post-nav
|
9
|
+
- comments
|
10
|
+
---
|
11
|
+
|
12
|
+
{% include lang.html %}
|
13
|
+
|
14
|
+
<article class="px-1">
|
15
|
+
<header>
|
16
|
+
<h1 data-toc-skip>{{ page.title }}</h1>
|
17
|
+
|
18
|
+
<div class="post-meta text-muted">
|
19
|
+
<!-- published date -->
|
20
|
+
<span>
|
21
|
+
{{ site.data.locales[lang].post.posted }}
|
22
|
+
{% include datetime.html date=page.date tooltip=true lang=lang %}
|
23
|
+
</span>
|
24
|
+
|
25
|
+
<!-- lastmod date -->
|
26
|
+
{% if page.last_modified_at and page.last_modified_at != page.date %}
|
27
|
+
<span>
|
28
|
+
{{ site.data.locales[lang].post.updated }}
|
29
|
+
{% include datetime.html date=page.last_modified_at tooltip=true lang=lang %}
|
30
|
+
</span>
|
31
|
+
{% endif %}
|
32
|
+
|
33
|
+
{% if page.image %}
|
34
|
+
{% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %}
|
35
|
+
{% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %}
|
36
|
+
{% capture alt %}alt="{{ page.image.alt | xml_escape | default: "Preview Image" }}"{% endcapture %}
|
37
|
+
|
38
|
+
{% if page.image.lqip %}
|
39
|
+
{%- capture lqip -%}lqip="{{ page.image.lqip }}"{%- endcapture -%}
|
40
|
+
{% endif %}
|
41
|
+
|
42
|
+
<div class="mt-3 mb-3">
|
43
|
+
<img {{ src }} {{ class }} {{ alt }} w="1200" h="630" {{ lqip }}>
|
44
|
+
{%- if page.image.alt -%}
|
45
|
+
<figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
|
46
|
+
{%- endif -%}
|
47
|
+
</div>
|
48
|
+
{% endif %}
|
49
|
+
|
50
|
+
<div class="d-flex justify-content-between">
|
51
|
+
<!-- author(s) -->
|
52
|
+
<span>
|
53
|
+
{% if page.author %}
|
54
|
+
{% assign authors = page.author %}
|
55
|
+
{% elsif page.authors %}
|
56
|
+
{% assign authors = page.authors %}
|
57
|
+
{% endif %}
|
58
|
+
|
59
|
+
{{ site.data.locales[lang].post.written_by }}
|
60
|
+
|
61
|
+
<em>
|
62
|
+
{% if authors %}
|
63
|
+
{% for author in authors %}
|
64
|
+
{% if site.data.authors[author].url -%}
|
65
|
+
<a href="{{ site.data.authors[author].url }}">{{ site.data.authors[author].name }}</a>
|
66
|
+
{%- else -%}
|
67
|
+
{{ site.data.authors[author].name }}
|
68
|
+
{%- endif %}
|
69
|
+
{% unless forloop.last %}{{ '</em>, <em>' }}{% endunless %}
|
70
|
+
{% endfor %}
|
71
|
+
{% else %}
|
72
|
+
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
|
73
|
+
{% endif %}
|
74
|
+
</em>
|
75
|
+
</span>
|
76
|
+
|
77
|
+
<div>
|
78
|
+
<!-- pageviews -->
|
79
|
+
{% if site.pageviews.provider and site.analytics[site.pageviews.provider].id %}
|
80
|
+
<span>
|
81
|
+
<em id="pageviews">
|
82
|
+
<i class="fas fa-spinner fa-spin small"></i>
|
83
|
+
</em>
|
84
|
+
{{ site.data.locales[lang].post.pageview_measure }}
|
85
|
+
</span>
|
86
|
+
{% endif %}
|
87
|
+
|
88
|
+
<!-- read time -->
|
89
|
+
{% include read-time.html content=content prompt=true lang=lang %}
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
</header>
|
94
|
+
|
95
|
+
<div class="content">
|
96
|
+
{{ content }}
|
97
|
+
</div>
|
98
|
+
|
99
|
+
<div class="post-tail-wrapper text-muted">
|
100
|
+
<!-- categories -->
|
101
|
+
{% if page.categories.size > 0 %}
|
102
|
+
<div class="post-meta mb-3">
|
103
|
+
<i class="far fa-folder-open fa-fw me-1"></i>
|
104
|
+
{% for category in page.categories %}
|
105
|
+
<a href="{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/">{{ category }}</a>
|
106
|
+
{%- unless forloop.last -%},{%- endunless -%}
|
107
|
+
{% endfor %}
|
108
|
+
</div>
|
109
|
+
{% endif %}
|
110
|
+
|
111
|
+
<!-- tags -->
|
112
|
+
{% if page.tags.size > 0 %}
|
113
|
+
<div class="post-tags">
|
114
|
+
<i class="fa fa-tags fa-fw me-1"></i>
|
115
|
+
{% for tag in page.tags %}
|
116
|
+
<a
|
117
|
+
href="{{ site.baseurl }}/tags/{{ tag | slugify | url_encode }}/"
|
118
|
+
class="post-tag no-text-decoration"
|
119
|
+
>
|
120
|
+
{{- tag -}}
|
121
|
+
</a>
|
122
|
+
{% endfor %}
|
123
|
+
</div>
|
124
|
+
{% endif %}
|
125
|
+
|
126
|
+
<div
|
127
|
+
class="
|
128
|
+
post-tail-bottom
|
129
|
+
d-flex justify-content-between align-items-center mt-5 pb-2
|
130
|
+
"
|
131
|
+
>
|
132
|
+
<div class="license-wrapper">
|
133
|
+
{% if site.data.locales[lang].copyright.license.template %}
|
134
|
+
{% capture _replacement %}
|
135
|
+
<a href="{{ site.data.locales[lang].copyright.license.link }}">
|
136
|
+
{{ site.data.locales[lang].copyright.license.name }}
|
137
|
+
</a>
|
138
|
+
{% endcapture %}
|
139
|
+
|
140
|
+
{{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
|
141
|
+
{% endif %}
|
142
|
+
</div>
|
143
|
+
|
144
|
+
{% include post-sharing.html lang=lang %}
|
145
|
+
</div>
|
146
|
+
<!-- .post-tail-bottom -->
|
147
|
+
</div>
|
148
|
+
<!-- div.post-tail-wrapper -->
|
149
|
+
</article>
|
data/_layouts/tag.html
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
# The layout for Tag page
|
4
|
+
---
|
5
|
+
|
6
|
+
{% include lang.html %}
|
7
|
+
|
8
|
+
<div id="page-tag">
|
9
|
+
<h1 class="ps-lg-2">
|
10
|
+
<i class="fa fa-tag fa-fw text-muted"></i>
|
11
|
+
{{ page.title }}
|
12
|
+
<span class="lead text-muted ps-2">{{ page.posts | size }}</span>
|
13
|
+
</h1>
|
14
|
+
<ul class="content ps-0">
|
15
|
+
{% for post in page.posts %}
|
16
|
+
<li class="d-flex justify-content-between px-md-3">
|
17
|
+
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
18
|
+
<span class="dash flex-grow-1"></span>
|
19
|
+
{% include datetime.html date=post.date class='text-muted small text-nowrap' lang=lang %}
|
20
|
+
</li>
|
21
|
+
{% endfor %}
|
22
|
+
</ul>
|
23
|
+
</div>
|
data/_layouts/tags.html
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
# All the Tags of posts.
|
4
|
+
---
|
5
|
+
|
6
|
+
<div id="tags" class="d-flex flex-wrap mx-xl-2">
|
7
|
+
{% assign tags = '' | split: '' %}
|
8
|
+
{% for t in site.tags %}
|
9
|
+
{% assign tags = tags | push: t[0] %}
|
10
|
+
{% endfor %}
|
11
|
+
|
12
|
+
{% assign sorted_tags = tags | sort_natural %}
|
13
|
+
|
14
|
+
{% for t in sorted_tags %}
|
15
|
+
<div>
|
16
|
+
<a class="tag" href="{{ t | slugify | url_encode | prepend: '/tags/' | append: '/' | relative_url }}">
|
17
|
+
{{ t -}}
|
18
|
+
<span class="text-muted">{{ site.tags[t].size }}</span>
|
19
|
+
</a>
|
20
|
+
</div>
|
21
|
+
{% endfor %}
|
22
|
+
</div>
|
data/_sass/.DS_Store
ADDED
Binary file
|