techdoc-jekyll-theme 0.1.7 → 0.2.3

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: bca6bbfa9e7218ddd42838f3b578fb654c194c409959502aa140f61c0d7a5a50
4
- data.tar.gz: 1d7c49405c64d3e87929d9f7ae8d1951ecdc6636bddb9136ff4e90194243cc63
3
+ metadata.gz: 246ba4aa04ac92c0f4b0eeec697436fb37fea9ed2fef402d021602e9dfec2399
4
+ data.tar.gz: 87790936bc25b117d5a4995bafd994b917b04d41ed52a279214074267253611c
5
5
  SHA512:
6
- metadata.gz: 2e72b3573472a3e0185d772d8c04410e69879531177709c6a7181d3e6beaf970a5e07d53d90b02cdad5f7018cf42d5023408f86044d321e404fccf43b28d2779
7
- data.tar.gz: a639d4ab3d1f573c744b9f3ea9aaf8512268f471d735af85f946f8b3ff005cd0605f37a59e53de05827a6dbf0b1c921eab97f8c4dadbf2cb82f28591a616572b
6
+ metadata.gz: 768b8617f818183018df38783818dca16266438f117a5d235ea801b75e0d101c62b308e88817197a8f2836c795c889ed6e84b00deb90807d5a0361ccaa2899b0
7
+ data.tar.gz: cc611f827b49e9273519e1ebbef9eb844939195e78d74554a23bab8bacf83feab302853c53caefb734f700eb9f485e0ce2398a2e48c1209f145ebc0924a62a73
@@ -5,7 +5,8 @@
5
5
  <meta charset="UTF-8">
6
6
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
- <link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append:site.github.build_revision | relative_url }}">
8
+ <link href="{{ "/assets/css/styles.css?v=" | append:site.github.build_revision | relative_url }}" rel="stylesheet">
9
+ <link href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.1/build/styles/default.min.css" rel="stylesheet">
9
10
  <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.1/build/highlight.min.js"></script>
10
11
  <script>hljs.highlightAll();</script>
11
12
  </head>
@@ -13,16 +14,18 @@
13
14
  <div class="row">
14
15
  <nav class="col menu">
15
16
  <div class="menu-content">
16
- <h1 class="display-1"><a href="{{ "/" | absolute_url }}">{{ site.library_name }}</a></h1>
17
- <p class="text-muted">{{ site.library_description }}</p>
18
- {%- if site.library_link -%}
19
- <a class="nav-link" href="{{ site.library_link }}">Source Code</a>
20
- {%- endif -%}
21
- {%- if site.posts.size > 0 -%}
22
- {%- for post in site.posts -%}
23
- <a class="nav-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
24
- {%- endfor -%}
25
- {%- endif -%}
17
+ <div>
18
+ <h1 class="display-1"><a href="{{ "/" | absolute_url }}">{{ site.library_name }}</a></h1>
19
+ <p class="text-muted">{{ site.library_description }}</p>
20
+ {%- if site.library_link -%}
21
+ <a class="nav-link" href="{{ site.library_link }}">Source Code</a>
22
+ {%- endif -%}
23
+ {%- if site.posts.size > 0 -%}
24
+ {%- for post in site.posts -%}
25
+ <a class="nav-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
26
+ {%- endfor -%}
27
+ {%- endif -%}
28
+ </div>
26
29
  </div>
27
30
  </nav>
28
31
  <div class="col content-container">
@@ -0,0 +1,290 @@
1
+ /* Import Google Fonts */
2
+ @import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=Roboto&family=Playfair+Display&display=swap');
3
+
4
+ :root {
5
+ --main-theme-color: #454545;
6
+ --text-color: #6c757d;
7
+ }
8
+
9
+ * {
10
+ -webkit-box-sizing: border-box;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ /*
15
+ * Basic setup for body
16
+ */
17
+ body, html {
18
+ font-family: "Roboto", sans-serif;
19
+ margin: 0;
20
+ padding: 0;
21
+ min-height: 100vh;
22
+ }
23
+
24
+ img {
25
+ max-width: 100%;
26
+ }
27
+
28
+ /*
29
+ * Basic typography setup
30
+ */
31
+ a {
32
+ color: #454545;
33
+ font-size: 0.995rem;
34
+ margin: 5px 0;
35
+ text-decoration: none;
36
+ -webkit-transition: opacity 0.2s;
37
+ -o-transition: opacity 0.2s;
38
+ transition: opacity 0.2s;
39
+ }
40
+ a:hover {
41
+ opacity: 0.8;
42
+ }
43
+
44
+ code {
45
+ font-family: "Fira Code", monospace;
46
+ }
47
+
48
+ .display-1 {
49
+ font-family: "Playfair Display", sans-serif;
50
+ margin-top: 4rem;
51
+ }
52
+ .display-1 a {
53
+ color: white;
54
+ display: block;
55
+ font-size: 5rem;
56
+ word-wrap: break-word;
57
+ }
58
+
59
+ .text-muted {
60
+ color: #6c757d;
61
+ }
62
+
63
+ /*
64
+ * Flex layout
65
+ */
66
+ .row {
67
+ display: -webkit-box;
68
+ display: -ms-flexbox;
69
+ display: flex;
70
+ }
71
+
72
+ /*
73
+ * Styles for menu
74
+ */
75
+ .menu {
76
+ background-color: var(--main-theme-color);
77
+ -webkit-box-flex: 1;
78
+ -ms-flex: 1;
79
+ flex: 1;
80
+ }
81
+
82
+ .menu .menu-content {
83
+ -webkit-box-align: end;
84
+ -ms-flex-align: end;
85
+ align-items: flex-end;
86
+ color: white;
87
+ display: -webkit-box;
88
+ display: -ms-flexbox;
89
+ display: flex;
90
+ font-size: 1.2rem;
91
+ padding: 45px;
92
+ position: -webkit-sticky;
93
+ position: sticky;
94
+ top: 0;
95
+ left: 0;
96
+ height: 100vh;
97
+ }
98
+
99
+ /* Navigation links */
100
+ .menu .nav-link {
101
+ color: white;
102
+ font-size: 0.995rem;
103
+ display: block;
104
+ }
105
+
106
+ /*
107
+ * Styles for content
108
+ */
109
+ .content-container {
110
+ -webkit-box-flex: 3;
111
+ -ms-flex: 3;
112
+ flex: 3;
113
+ padding: 30px 60px;
114
+ }
115
+
116
+ .content {
117
+ color: #808080;
118
+ line-height: 1.5;
119
+ }
120
+
121
+ .content a {font-size: 0.995rem;}
122
+
123
+ .content blockquote {
124
+ background-color: #f1f1f1;
125
+ color: var(--text-color);
126
+ margin: 0;
127
+ padding: 15px 30px;
128
+ }
129
+
130
+ .content dt {font-weight: 800;}
131
+
132
+ .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
133
+ border-bottom: 1px solid #f1f1f1;
134
+ color: gray;
135
+ font-weight: 400;
136
+ margin: 15px 0;
137
+ padding: 5px 0;
138
+ }
139
+
140
+ .content h1 {
141
+ font-size: 2.5rem;
142
+ }
143
+ .content h2 {
144
+ font-size: 2.4rem;
145
+ }
146
+ .content h3 {
147
+ font-size: 2.3rem;
148
+ }
149
+ .content h4 {
150
+ font-size: 2.2rem;
151
+ }
152
+ .content h5 {
153
+ font-size: 2.1rem;
154
+ }
155
+ .content h6 {
156
+ font-size: 2rem;
157
+ }
158
+
159
+ .content h1:before, .content h2:before, .content h3:before, .content h4:before, .content h5:before, .content h6:before {
160
+ color: #ccc;
161
+ margin-right: 10px;
162
+ }
163
+ .content h1:before {
164
+ content: "#";
165
+ font-size: 2.2rem;
166
+ }
167
+ .content h2:before {
168
+ content: "##";
169
+ font-size: 2.1rem;
170
+ }
171
+ .content h3:before {
172
+ content: "###";
173
+ font-size: 2rem;
174
+ }
175
+ .content h4:before {
176
+ content: "####";
177
+ font-size: 1.9rem;
178
+ }
179
+ .content h5:before {
180
+ content: "#####";
181
+ font-size: 1.8rem;
182
+ }
183
+ .content h6:before {
184
+ content: "######";
185
+ font-size: 1.7rem;
186
+ }
187
+
188
+ .content :not(pre) > code {
189
+ font-size: 0.98rem;
190
+ font-style: italic;
191
+ word-wrap: break-word;
192
+ }
193
+
194
+ .content pre > code {
195
+ border-radius: 15px;
196
+ font-size: 0.95rem;
197
+ padding: 15px 30px;
198
+ white-space: pre-wrap;
199
+ }
200
+
201
+ .content table {
202
+ border: 1px solid #f1f1f1;
203
+ border-collapse: collapse;
204
+ overflow-x: scroll;
205
+ min-width: 100%;
206
+ }
207
+
208
+ .content thead > tr, .content tr:nth-child(even) {
209
+ background-color: #f1f1f1;
210
+ }
211
+
212
+ .content th {
213
+ font-weight: 700;
214
+ }
215
+ .content th, .content td {
216
+ padding: 14px 28px;
217
+ text-align: left !important;
218
+ }
219
+
220
+ .content ul {
221
+ margin: 0;
222
+ }
223
+
224
+ /*
225
+ * Styles for footer
226
+ */
227
+ .footer {
228
+ border-top: 1px solid #dee2e6;
229
+ color: #808080;
230
+ margin: 45px 0 15px 0;
231
+ padding: 15px;
232
+ text-align: center;
233
+ }
234
+
235
+ /* Styling for desktop */
236
+ @media screen and (min-width: 1200px) {
237
+ .content-container {
238
+ padding: 60px 120px;
239
+ }
240
+ }
241
+
242
+ @media screen and (min-width: 992px) {
243
+ .menu {
244
+ min-height: 100vh;
245
+ }
246
+
247
+ .content-container {
248
+ -webkit-box-shadow: 0 4px 8px 0 var(--main-theme-color);
249
+ box-shadow: 0 4px 8px 0 var(--main-theme-color);
250
+ }
251
+ }
252
+
253
+ /* Styling for mobile */
254
+ @media screen and (max-width: 991px) {
255
+ .display-1 {
256
+ margin: 2rem 0;
257
+ }
258
+
259
+ .row {
260
+ display: block;
261
+ }
262
+
263
+ .menu .menu-content {
264
+ padding: 25px;
265
+ height: 100%;
266
+ }
267
+
268
+ .content-container {
269
+ padding: 25px;
270
+ }
271
+
272
+ .content h1 {
273
+ font-size: 2rem;
274
+ }
275
+ .content h2 {
276
+ font-size: 1.95rem;
277
+ }
278
+ .content h3 {
279
+ font-size: 1.9rem;
280
+ }
281
+ .content h4 {
282
+ font-size: 1.85rem;
283
+ }
284
+ .content h5 {
285
+ font-size: 1.8rem;
286
+ }
287
+ .content h6 {
288
+ font-size: 1.75rem;
289
+ }
290
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: techdoc-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jianmin-chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-22 00:00:00.000000000 Z
11
+ date: 2021-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -64,8 +64,7 @@ files:
64
64
  - _config.yml
65
65
  - _layouts/default.html
66
66
  - _layouts/post.html
67
- - assets/css/hljs-theme.css
68
- - assets/css/style.css
67
+ - assets/css/styles.css
69
68
  homepage: https://jianmin-chen.github.io/techdoc/
70
69
  licenses:
71
70
  - MIT
@@ -1,154 +0,0 @@
1
- .hljs {
2
- background: #2e3440;
3
- display: block;
4
- overflow-x: auto;
5
- padding: 0.5em;
6
- }
7
-
8
- .hljs, .hljs-subst {color: #d8dee9;}
9
-
10
- .hljs-selector-tag {color: #81a1c1;}
11
-
12
- .hljs-selector-id {
13
- color: #8fbcbb;
14
- font-weight: 700;
15
- }
16
-
17
- .hljs-selector-class {color: #8fbcbb;}
18
-
19
- .hljs-selector-attr {color: #8fbcbb;}
20
-
21
- .hljs-selector-pseudo {color: #88c0d0;}
22
-
23
- .hljs-addition {background-color: rgba(163,190,140,.5);}
24
-
25
- .hljs-deletion {background-color: rgba(191,97,106,.5);}
26
-
27
- .hljs-built_in,.hljs-type {color: #8fbcbb;}
28
-
29
- .hljs-class {color: #8fbcbb;}
30
-
31
- .hljs-function {color: #88c0d0;}
32
-
33
- .hljs-function > .hljs-title {color: #88c0d0;}
34
-
35
- .hljs-keyword, .hljs-literal, .hljs-symbol {color: #81a1c1;}
36
-
37
- .hljs-number {color: #b48ead;}
38
-
39
- .hljs-regexp {color: #ebcb8b;}
40
-
41
- .hljs-string {color: #a3be8c;}
42
-
43
- .hljs-title {color: #8fbcbb;}
44
-
45
- .hljs-params {color: #d8dee9;}
46
-
47
- .hljs-bullet {color: #81a1c1;}
48
-
49
- .hljs-code {color: #8fbcbb;}
50
-
51
- .hljs-emphasis {font-style: italic;}
52
-
53
- .hljs-formula {color: #8fbcbb;}
54
-
55
- .hljs-strong {font-weight: 700;}
56
-
57
- .hljs-link:hover {text-decoration: underline;}
58
-
59
- .hljs-quote {color: #4c566a;}
60
-
61
- .hljs-comment {color: #4c566a;}
62
-
63
- .hljs-doctag {color: #8fbcbb;}
64
-
65
- .hljs-meta, .hljs-meta-keyword {color: #5e81ac;}
66
-
67
- .hljs-meta-string {color: #a3be8c;}
68
-
69
- .hljs-attr {color: #8fbcbb;}
70
-
71
- .hljs-attribute {color: #d8dee9;}
72
-
73
- .hljs-builtin-name {color: #81a1c1;}
74
-
75
- .hljs-name {color: #81a1c1;}
76
-
77
- .hljs-section {color: #88c0d0;}
78
-
79
- .hljs-tag {color: #81a1c1;}
80
-
81
- .hljs-variable {color: #d8dee9;}
82
-
83
- .hljs-template-variable {color: #d8dee9;}
84
-
85
- .hljs-template-tag {color: #5e81ac;}
86
-
87
- .abnf .hljs-attribute {color: #88c0d0;}
88
-
89
- .abnf .hljs-symbol {color: #ebcb8b;}
90
-
91
- .apache .hljs-attribute {color: #88c0d0;}
92
-
93
- .apache .hljs-section {color: #81a1c1;}
94
-
95
- .arduino .hljs-built_in {color: #88c0d0;}
96
-
97
- .aspectj .hljs-meta {color: #d08770;}
98
-
99
- .aspectj > .hljs-title {color: #88c0d0;}
100
-
101
- .bnf .hljs-attribute {color: #8fbcbb;}
102
-
103
- .clojure .hljs-name {color: #88c0d0;}
104
-
105
- .clojure .hljs-symbol {color: #ebcb8b;}
106
-
107
- .coq .hljs-built_in {color: #88c0d0;}
108
-
109
- .cpp .hljs-meta-string {color: #8fbcbb;}
110
-
111
- .css .hljs-built_in {color: #88c0d0;}
112
-
113
- .css .hljs-keyword {color: #d08770;}
114
-
115
- .diff .hljs-meta {color: #8fbcbb;}
116
-
117
- .ebnf .hljs-attribute {color: #8fbcbb;}
118
-
119
- .glsl .hljs-built_in {color: #88c0d0;}
120
-
121
- .groovy .hljs-meta:not(:first-child) {color: #d08770;}
122
-
123
- .haxe .hljs-meta {color: #d08770;}
124
-
125
- .java .hljs-meta {color: #d08770;}
126
-
127
- .ldif .hljs-attribute {color: #8fbcbb;}
128
-
129
- .lisp .hljs-name {color: #88c0d0;}
130
-
131
- .lua .hljs-built_in {color: #88c0d0;}
132
-
133
- .moonscript .hljs-built_in {color: #88c0d0;}
134
-
135
- .nginx .hljs-attribute{color: #88c0d0}
136
-
137
- .nginx .hljs-section {color: #5e81ac;}
138
-
139
- .pf .hljs-built_in {color:#88c0d0;}
140
-
141
- .processing .hljs-built_in {color: #88c0d0;}
142
-
143
- .scss .hljs-keyword {color: #81a1c1;}
144
-
145
- .stylus .hljs-keyword {color: #81a1c1;}
146
-
147
- .swift .hljs-meta {color: #d08770;}
148
-
149
- .vim .hljs-built_in {
150
- color: #88c0d0;
151
- font-style:italic;
152
- }
153
-
154
- .yaml .hljs-meta {color: #d08770;}
data/assets/css/style.css DELETED
@@ -1,191 +0,0 @@
1
- /* Import Google Fonts */
2
- @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=Open+Sans:wght@400;700&display=swap');
3
-
4
- /* Import highlight.js theme */
5
- @import "hljs-theme.css";
6
-
7
- :root {
8
- --main-theme-color: #273036;
9
- --text-color: #6c757d;
10
- }
11
-
12
- * {
13
- -webkit-box-sizing: border-box;
14
- box-sizing: border-box;
15
- }
16
-
17
- /*
18
- * Basic setup for body
19
- */
20
- body, html {
21
- font-family: "Noto Sans", sans-serif;
22
- margin: 0;
23
- padding: 0;
24
- min-height: 100vh;
25
- }
26
-
27
- img {width: 100%;}
28
-
29
- /*
30
- * Basic typography setup
31
- */
32
- a {
33
- color: var(--text-color);
34
- font-size: 0.95rem;
35
- margin: 5px 0;
36
- text-decoration: none;
37
- -webkit-transition: opacity 0.2s;
38
- -o-transition: opacity 0.2s;
39
- transition: opacity 0.2s;
40
- }
41
- a:hover {opacity: 0.8;}
42
-
43
- .display-1 {margin: 4rem 0;}
44
- .display-1 a {
45
- color: white;
46
- display: block;
47
- font-size: 5rem;
48
- word-wrap: break-word;
49
- }
50
-
51
- .text-muted {color: #6c757d;}
52
-
53
- /*
54
- * Flex layout
55
- */
56
- .row {
57
- display: -webkit-box;
58
- display: -ms-flexbox;
59
- display: flex;
60
- }
61
-
62
- /*
63
- * Styles for menu
64
- */
65
- .menu {
66
- background-color: var(--main-theme-color);
67
- -webkit-box-flex: 1;
68
- -ms-flex: 1;
69
- flex: 1;
70
- }
71
-
72
- .menu .menu-content {
73
- color: white;
74
- font-size: 1.2rem;
75
- padding: 45px;
76
- position: -webkit-sticky;
77
- position: sticky;
78
- top: 0;
79
- left: 0;
80
- }
81
-
82
- /* Navigation links */
83
- .menu .nav-link {
84
- color: white;
85
- display: block;
86
- }
87
-
88
- /*
89
- * Styles for content
90
- */
91
- .content-container {
92
- -webkit-box-flex: 2;
93
- -ms-flex: 2;
94
- flex: 2;
95
- padding: 45px;
96
- }
97
-
98
- .content {
99
- color: #242526;
100
- line-height: 1.5;
101
- font-family: "Open Sans", sans-serif;
102
- }
103
-
104
- .content a {font-size: 0.995rem;}
105
-
106
- .content blockquote {
107
- border-left: 0.3rem solid var(--text-color);
108
- color: var(--text-color);
109
- margin: 0;
110
- padding: 0 1rem;
111
- }
112
-
113
- .content dt {font-weight: 800;}
114
-
115
- .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
116
- color: var(--text-color);
117
- font-weight: 400;
118
- margin: 15px 0;
119
- }
120
- .content h1 {font-size: 2.5rem;}
121
- .content h2 {font-size: 2.4rem;}
122
- .content h3 {font-size: 2.3rem;}
123
- .content h4 {font-size: 2.2rem;}
124
- .content h5 {font-size: 2.1rem;}
125
- .content h6 {font-size: 2rem;}
126
-
127
- .content :not(pre) > code {
128
- color: #dc3545;
129
- font-size: 1rem;
130
- word-wrap: break-word;
131
- }
132
-
133
- .content pre > code {
134
- -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4);
135
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4);
136
- font-size: 0.95rem;
137
- padding: 15px 30px;
138
- white-space: pre-wrap;
139
- }
140
-
141
- .content table {
142
- border-collapse: collapse;
143
- overflow-x: scroll;
144
- }
145
-
146
- .content thead > tr, .content tr:nth-child(even) {background-color: #dee2e6;}
147
-
148
- .content th {font-weight: 700;}
149
- .content th, .content td {
150
- padding: 7px 14px;
151
- text-align: left !important;
152
- }
153
-
154
- /*
155
- * Styles for footer
156
- */
157
- .footer {
158
- border-top: 1px solid #dee2e6;
159
- color: #808080;
160
- margin: 45px 15px 15px 15px;
161
- padding: 15px;
162
- text-align: center;
163
- }
164
-
165
- /* Styling for desktop */
166
- @media screen and (min-width: 992px) {
167
- .menu {
168
- -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.7);
169
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.7);
170
- min-height: 100vh;
171
- }
172
- }
173
-
174
- /* Styling for mobile */
175
- @media screen and (max-width: 991px) {
176
- .display-1 {margin: 2rem 0;}
177
- .display-1 a {font-size: 3.5rem;}
178
-
179
- .row {display: block;}
180
-
181
- .menu .menu-content {padding: 25px;}
182
-
183
- .content-container {padding: 25px;}
184
-
185
- .content h1 {font-size: 2rem;}
186
- .content h2 {font-size: 1.95rem;}
187
- .content h3 {font-size: 1.9rem;}
188
- .content h4 {font-size: 1.85rem;}
189
- .content h5 {font-size: 1.8rem;}
190
- .content h6 {font-size: 1.75rem;}
191
- }