doc-theme 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +50 -0
  4. data/_data/locales/ar.yml +91 -0
  5. data/_data/locales/bg-BG.yml +81 -0
  6. data/_data/locales/cs-CZ.yml +89 -0
  7. data/_data/locales/de-DE.yml +87 -0
  8. data/_data/locales/el-GR.yml +91 -0
  9. data/_data/locales/en.yml +91 -0
  10. data/_data/locales/es-ES.yml +77 -0
  11. data/_data/locales/fi-FI.yml +90 -0
  12. data/_data/locales/fr-FR.yml +77 -0
  13. data/_data/locales/hu-HU.yml +79 -0
  14. data/_data/locales/id-ID.yml +77 -0
  15. data/_data/locales/it-IT.yml +90 -0
  16. data/_data/locales/ko-KR.yml +84 -0
  17. data/_data/locales/my-MM.yml +77 -0
  18. data/_data/locales/pt-BR.yml +77 -0
  19. data/_data/locales/ru-RU.yml +87 -0
  20. data/_data/locales/sl-SI.yml +91 -0
  21. data/_data/locales/sv-SE.yml +91 -0
  22. data/_data/locales/th.yml +91 -0
  23. data/_data/locales/tr-TR.yml +77 -0
  24. data/_data/locales/uk-UA.yml +77 -0
  25. data/_data/locales/vi-VN.yml +76 -0
  26. data/_data/locales/zh-CN.yml +83 -0
  27. data/_data/locales/zh-TW.yml +83 -0
  28. data/_data/origin/basic.yml +46 -0
  29. data/_data/origin/cors.yml +59 -0
  30. data/_includes/.DS_Store +0 -0
  31. data/_includes/analytics/goatcounter.html +6 -0
  32. data/_includes/analytics/google.html +13 -0
  33. data/_includes/comments/disqus.html +50 -0
  34. data/_includes/comments/giscus.html +65 -0
  35. data/_includes/comments/utterances.html +50 -0
  36. data/_includes/comments.html +5 -0
  37. data/_includes/datetime.html +20 -0
  38. data/_includes/embed/bilibili.html +9 -0
  39. data/_includes/embed/twitch.html +8 -0
  40. data/_includes/embed/video.html +38 -0
  41. data/_includes/embed/youtube.html +9 -0
  42. data/_includes/favicons.html +19 -0
  43. data/_includes/footer.html +42 -0
  44. data/_includes/head.html +111 -0
  45. data/_includes/img-url.html +39 -0
  46. data/_includes/js-selector.html +126 -0
  47. data/_includes/jsdelivr-combine.html +26 -0
  48. data/_includes/lang.html +10 -0
  49. data/_includes/language-alias.html +70 -0
  50. data/_includes/mermaid.html +58 -0
  51. data/_includes/metadata-hook.html +1 -0
  52. data/_includes/mode-toggle.html +143 -0
  53. data/_includes/no-linenos.html +10 -0
  54. data/_includes/notification.html +24 -0
  55. data/_includes/origin-type.html +13 -0
  56. data/_includes/pageviews/goatcounter.html +18 -0
  57. data/_includes/post-nav.html +34 -0
  58. data/_includes/post-paginator.html +91 -0
  59. data/_includes/post-sharing.html +52 -0
  60. data/_includes/read-time.html +37 -0
  61. data/_includes/refactor-content.html +255 -0
  62. data/_includes/related-posts.html +96 -0
  63. data/_includes/search-loader.html +47 -0
  64. data/_includes/search-results.html +10 -0
  65. data/_includes/sidebar.html +99 -0
  66. data/_includes/toc.html +13 -0
  67. data/_includes/topbar.html +77 -0
  68. data/_includes/trending-tags.html +46 -0
  69. data/_includes/update-list.html +40 -0
  70. data/_layouts/archives.html +35 -0
  71. data/_layouts/categories.html +138 -0
  72. data/_layouts/category.html +24 -0
  73. data/_layouts/compress.html +10 -0
  74. data/_layouts/default.html +87 -0
  75. data/_layouts/home.html +118 -0
  76. data/_layouts/page.html +20 -0
  77. data/_layouts/post.html +149 -0
  78. data/_layouts/tag.html +23 -0
  79. data/_layouts/tags.html +22 -0
  80. data/_sass/.DS_Store +0 -0
  81. data/_sass/addon/commons.scss +1553 -0
  82. data/_sass/addon/module.scss +200 -0
  83. data/_sass/addon/syntax.scss +292 -0
  84. data/_sass/addon/variables.scss +33 -0
  85. data/_sass/colors/syntax-dark.scss +164 -0
  86. data/_sass/colors/syntax-light.scss +214 -0
  87. data/_sass/colors/typography-dark.scss +147 -0
  88. data/_sass/colors/typography-light.scss +112 -0
  89. data/_sass/layout/archives.scss +144 -0
  90. data/_sass/layout/categories.scss +83 -0
  91. data/_sass/layout/category-tag.scss +72 -0
  92. data/_sass/layout/home.scss +189 -0
  93. data/_sass/layout/post.scss +357 -0
  94. data/_sass/layout/tags.scss +19 -0
  95. data/_sass/main.scss +13 -0
  96. data/_sass/variables-hook.scss +3 -0
  97. data/assets/.DS_Store +0 -0
  98. data/assets/404.html +14 -0
  99. data/assets/css/doc-theme.scss +6 -0
  100. data/assets/feed.xml +61 -0
  101. data/assets/img/favicons/android-chrome-192x192.png +0 -0
  102. data/assets/img/favicons/android-chrome-512x512.png +0 -0
  103. data/assets/img/favicons/apple-touch-icon.png +0 -0
  104. data/assets/img/favicons/browserconfig.xml +13 -0
  105. data/assets/img/favicons/favicon-16x16.png +0 -0
  106. data/assets/img/favicons/favicon-32x32.png +0 -0
  107. data/assets/img/favicons/favicon.ico +0 -0
  108. data/assets/img/favicons/mstile-150x150.png +0 -0
  109. data/assets/img/favicons/site.webmanifest +26 -0
  110. data/assets/js/data/search.json +20 -0
  111. data/assets/js/data/swconf.js +51 -0
  112. data/assets/js/pwa/app.js +54 -0
  113. data/assets/js/pwa/sw.js +101 -0
  114. data/assets/robots.txt +10 -0
  115. metadata +260 -0
@@ -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>
@@ -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