jekyll-theme-neysa 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_config.yml +40 -4
- data/_includes/head-custom-google-analytics.html +10 -0
- data/_includes/head-custom.html +12 -0
- data/_layouts/default.html +45 -1
- data/_sass/jekyll-theme-neysa.scss +538 -0
- data/_sass/neysa.scss +4 -0
- data/_sass/rouge.scss +209 -0
- data/assets/css/style.scss +12 -0
- data/assets/images/bg_hr.png +0 -0
- data/assets/images/blacktocat.png +0 -0
- data/assets/images/favicon.ico +0 -0
- data/assets/images/icon_download.png +0 -0
- data/assets/images/sprite_download.png +0 -0
- data/assets/js/toc.js +99 -0
- metadata +13 -4
- data/_layouts/page.html +0 -5
- data/_layouts/post.html +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d32827b2b62fea2a3d65f5e17f7bbd53fe41a1c6dec4bdb21a88e2195a232f34
|
4
|
+
data.tar.gz: 6c61df64df4f9752ea1e0960ec2c733e8f9b3d3d3e6269c886f0b7b84182bbd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22a8e2139132a226bdb9be729b89aca1b38a136dd9033ced6f6cd871ca7c585658ebf6aa4e108d2e6351d8f30807266f4e23915eab808d848aba8264c024648a
|
7
|
+
data.tar.gz: 8c7c3610ebe978b83c9dcdfd011e6451321145b50c49aa616b4bc0088b0d87043ac11feb3314e8bc1c765864a855ff4951f43c46c5319b8460098c9792db9b0f
|
data/_config.yml
CHANGED
@@ -1,5 +1,41 @@
|
|
1
|
-
title
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# Hide title of repository
|
2
|
+
name: ""
|
3
|
+
title: null
|
4
|
+
description:
|
5
|
+
show_downloads: false
|
5
6
|
theme: jekyll-theme-neysa
|
7
|
+
|
8
|
+
# Build settings
|
9
|
+
markdown: kramdown # to show TOC
|
10
|
+
kramdown:
|
11
|
+
input: GFM
|
12
|
+
hard_wrap: true
|
13
|
+
auto_ids: true
|
14
|
+
footnote_nr: 1
|
15
|
+
entity_output: as_char
|
16
|
+
toc_levels: 2..6 # TOC start from h2
|
17
|
+
smart_quotes: lsquo,rsquo,ldquo,rdquo
|
18
|
+
enable_coderay: false
|
19
|
+
parse_block_html: true # default for kramdown is false. This will enable using Markdown links
|
20
|
+
|
21
|
+
## => Markdown Enhancements
|
22
|
+
## Mathjax
|
23
|
+
mathjax: true # false (default), true
|
24
|
+
mathjax_autoNumber: true # false (default), true
|
25
|
+
|
26
|
+
parse:
|
27
|
+
myst_enable_extensions:
|
28
|
+
# don't forget to list any other extensions you want enabled,
|
29
|
+
# including those that are enabled by default!
|
30
|
+
- amsmath
|
31
|
+
|
32
|
+
sass:
|
33
|
+
sass_dir: _sass
|
34
|
+
|
35
|
+
# -----------------------------------------------------------------------------
|
36
|
+
# 统计
|
37
|
+
# -----------------------------------------------------------------------------
|
38
|
+
google_analytics: UA—56515654-4
|
39
|
+
|
40
|
+
# 百度统计[https://tongji.baidu.com/](https://tongji.baidu.com/)申请自己的网站ID并在此处替换
|
41
|
+
baidu: 0662740a0d2368cc5cfaa508dd843362
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{% if site.google_analytics %}
|
2
|
+
<script>
|
3
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
4
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
5
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
6
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
7
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
8
|
+
ga('send', 'pageview');
|
9
|
+
</script>
|
10
|
+
{% endif %}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
|
2
|
+
|
3
|
+
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
4
|
+
<script id="MathJax-script” async src=”https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
5
|
+
|
6
|
+
<!-- Setup Google Analytics -->
|
7
|
+
{% include head-custom-google-analytics.html %}
|
8
|
+
|
9
|
+
<!-- You can set your favicon here -->
|
10
|
+
<!-- link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}" -->
|
11
|
+
|
12
|
+
<!-- end custom head snippets -->
|
data/_layouts/default.html
CHANGED
@@ -1 +1,45 @@
|
|
1
|
-
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ site.lang | default: "en-US" }}">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset='utf-8'>
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
7
|
+
<meta name="viewport" content="width=device-width,maximum-scale=2">
|
8
|
+
<link rel="stylesheet" type="text/css" media="screen" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
|
9
|
+
|
10
|
+
{% include head-custom.html %}
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body>
|
14
|
+
|
15
|
+
<!-- HEADER -->
|
16
|
+
<div id="header_wrap" class="outer">
|
17
|
+
<header class="inner">
|
18
|
+
{% if site.github.is_project_page %}
|
19
|
+
<a id="forkme_banner" href="{{ site.github.repository_url }}">View on GitHub</a>
|
20
|
+
{% endif %}
|
21
|
+
|
22
|
+
<h1 id="project_title">{{ site.title | default: site.github.repository_name }}</h1>
|
23
|
+
<h2 id="project_tagline">{{ site.description | default: site.github.project_tagline }}</h2>
|
24
|
+
|
25
|
+
</header>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<!-- MAIN CONTENT -->
|
29
|
+
<div id="main_content_wrap" class="outer">
|
30
|
+
<section id="main_content" class="inner">
|
31
|
+
{{ content }}
|
32
|
+
</section>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<!-- FOOTER -->
|
36
|
+
<div id="footer_wrap" class="outer">
|
37
|
+
<footer class="inner">
|
38
|
+
{% if site.github.is_project_page %}
|
39
|
+
<p class="copyright">{{ site.title | default: site.github.repository_name }} maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
|
40
|
+
{% endif %}
|
41
|
+
<p>Published with <a href="https://pages.github.com">GitHub Pages</a></p>
|
42
|
+
</footer>
|
43
|
+
</div>
|
44
|
+
</body>
|
45
|
+
</html>
|
@@ -0,0 +1,538 @@
|
|
1
|
+
@import "rouge";
|
2
|
+
|
3
|
+
/*******************************************************************************
|
4
|
+
MeyerWeb Reset
|
5
|
+
*******************************************************************************/
|
6
|
+
|
7
|
+
html, body, div, span, applet, object, iframe,
|
8
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
9
|
+
a, abbr, acronym, address, big, cite, code,
|
10
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
11
|
+
small, strike, strong, sub, sup, tt, var,
|
12
|
+
b, u, i, center,
|
13
|
+
dl, dt, dd, ol, ul, li,
|
14
|
+
fieldset, form, label, legend,
|
15
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
16
|
+
article, aside, canvas, details, embed,
|
17
|
+
figure, figcaption, footer, header, hgroup,
|
18
|
+
menu, nav, output, ruby, section, summary,
|
19
|
+
time, mark, audio, video {
|
20
|
+
margin: 0;
|
21
|
+
padding: 0;
|
22
|
+
border: 0;
|
23
|
+
font: inherit;
|
24
|
+
vertical-align: baseline;
|
25
|
+
}
|
26
|
+
|
27
|
+
/* HTML5 display-role reset for older browsers */
|
28
|
+
article, aside, details, figcaption, figure,
|
29
|
+
footer, header, hgroup, menu, nav, section {
|
30
|
+
display: block;
|
31
|
+
}
|
32
|
+
|
33
|
+
ol, ul {
|
34
|
+
list-style: none;
|
35
|
+
}
|
36
|
+
|
37
|
+
table {
|
38
|
+
border-collapse: collapse;
|
39
|
+
border-spacing: 0;
|
40
|
+
margin-left: auto;
|
41
|
+
margin-right: auto;
|
42
|
+
}
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
/*******************************************************************************
|
47
|
+
Theme Styles
|
48
|
+
*******************************************************************************/
|
49
|
+
|
50
|
+
body {
|
51
|
+
box-sizing: border-box;
|
52
|
+
color:#373737;
|
53
|
+
background: #212121;
|
54
|
+
font-size: 16px;
|
55
|
+
font-family: 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
|
56
|
+
line-height: 1.5;
|
57
|
+
-webkit-font-smoothing: antialiased;
|
58
|
+
}
|
59
|
+
|
60
|
+
h1, h2, h3, h4, h5, h6 {
|
61
|
+
margin: 0px 0;
|
62
|
+
font-weight: 700;
|
63
|
+
color:#222222;
|
64
|
+
font-family: 'Lucida Grande', 'Calibri', Helvetica, Arial, sans-serif;
|
65
|
+
letter-spacing: -1px;
|
66
|
+
}
|
67
|
+
|
68
|
+
h1 {
|
69
|
+
text-align: center;
|
70
|
+
font-size: 32px;
|
71
|
+
font-weight: 600;
|
72
|
+
}
|
73
|
+
|
74
|
+
h2 {
|
75
|
+
padding-bottom: 6px;
|
76
|
+
font-size: 28px;
|
77
|
+
background: url('../images/bg_hr.png') repeat-x bottom;
|
78
|
+
}
|
79
|
+
|
80
|
+
h3 {
|
81
|
+
font-size: 24px;
|
82
|
+
}
|
83
|
+
|
84
|
+
h4 {
|
85
|
+
font-size: 21px;
|
86
|
+
}
|
87
|
+
|
88
|
+
h5 {
|
89
|
+
font-size: 18px;
|
90
|
+
}
|
91
|
+
|
92
|
+
h6 {
|
93
|
+
font-size: 16px;
|
94
|
+
}
|
95
|
+
|
96
|
+
p {
|
97
|
+
margin: 10px 0 15px 0;
|
98
|
+
}
|
99
|
+
|
100
|
+
footer p {
|
101
|
+
color: #f2f2f2;
|
102
|
+
margin: 0px;
|
103
|
+
}
|
104
|
+
|
105
|
+
a {
|
106
|
+
text-decoration: none;
|
107
|
+
color: #0F79D0;
|
108
|
+
text-shadow: none;
|
109
|
+
|
110
|
+
transition: color 0.5s ease;
|
111
|
+
transition: text-shadow 0.5s ease;
|
112
|
+
-webkit-transition: color 0.5s ease;
|
113
|
+
-webkit-transition: text-shadow 0.5s ease;
|
114
|
+
-moz-transition: color 0.5s ease;
|
115
|
+
-moz-transition: text-shadow 0.5s ease;
|
116
|
+
-o-transition: color 0.5s ease;
|
117
|
+
-o-transition: text-shadow 0.5s ease;
|
118
|
+
-ms-transition: color 0.5s ease;
|
119
|
+
-ms-transition: text-shadow 0.5s ease;
|
120
|
+
}
|
121
|
+
|
122
|
+
a:hover, a:focus {
|
123
|
+
text-decoration: underline;
|
124
|
+
}
|
125
|
+
|
126
|
+
footer a {
|
127
|
+
color: #F2F2F2;
|
128
|
+
text-decoration: underline;
|
129
|
+
}
|
130
|
+
|
131
|
+
em, cite {
|
132
|
+
font-style: italic;
|
133
|
+
}
|
134
|
+
|
135
|
+
strong {
|
136
|
+
font-weight: bold;
|
137
|
+
}
|
138
|
+
|
139
|
+
img {
|
140
|
+
position: relative;
|
141
|
+
margin: 0 auto;
|
142
|
+
max-width: 739px;
|
143
|
+
padding: 5px;
|
144
|
+
margin: 10px 0 10px 0;
|
145
|
+
border: 1px solid #ebebeb;
|
146
|
+
|
147
|
+
box-shadow: 0 0 5px #ebebeb;
|
148
|
+
-webkit-box-shadow: 0 0 5px #ebebeb;
|
149
|
+
-moz-box-shadow: 0 0 5px #ebebeb;
|
150
|
+
-o-box-shadow: 0 0 5px #ebebeb;
|
151
|
+
-ms-box-shadow: 0 0 5px #ebebeb;
|
152
|
+
}
|
153
|
+
|
154
|
+
p img {
|
155
|
+
display: inline;
|
156
|
+
margin: 0;
|
157
|
+
padding: 0;
|
158
|
+
vertical-align: middle;
|
159
|
+
text-align: center;
|
160
|
+
border: none;
|
161
|
+
}
|
162
|
+
|
163
|
+
pre, code {
|
164
|
+
color: #222;
|
165
|
+
background-color: #fff;
|
166
|
+
|
167
|
+
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
|
168
|
+
font-size: 0.875em;
|
169
|
+
|
170
|
+
border-radius: 2px;
|
171
|
+
-moz-border-radius: 2px;
|
172
|
+
-webkit-border-radius: 2px;
|
173
|
+
}
|
174
|
+
|
175
|
+
pre {
|
176
|
+
padding: 10px;
|
177
|
+
box-shadow: 0 0 10px rgba(0,0,0,.1);
|
178
|
+
overflow: auto;
|
179
|
+
}
|
180
|
+
|
181
|
+
code {
|
182
|
+
padding: 3px;
|
183
|
+
margin: 0 3px;
|
184
|
+
box-shadow: 0 0 10px rgba(0,0,0,.1);
|
185
|
+
}
|
186
|
+
|
187
|
+
pre code {
|
188
|
+
display: block;
|
189
|
+
box-shadow: none;
|
190
|
+
}
|
191
|
+
|
192
|
+
blockquote {
|
193
|
+
color: #666;
|
194
|
+
margin-bottom: 20px;
|
195
|
+
padding: 0 0 0 20px;
|
196
|
+
border-left: 3px solid #bbb;
|
197
|
+
}
|
198
|
+
|
199
|
+
|
200
|
+
ul, ol, dl {
|
201
|
+
margin-bottom: 15px
|
202
|
+
}
|
203
|
+
|
204
|
+
ul {
|
205
|
+
list-style-position: inside;
|
206
|
+
list-style: disc;
|
207
|
+
padding-left: 20px;
|
208
|
+
}
|
209
|
+
|
210
|
+
ol {
|
211
|
+
list-style-position: inside;
|
212
|
+
list-style: decimal;
|
213
|
+
padding-left: 20px;
|
214
|
+
}
|
215
|
+
|
216
|
+
dl dt {
|
217
|
+
font-weight: bold;
|
218
|
+
}
|
219
|
+
|
220
|
+
dl dd {
|
221
|
+
padding-left: 20px;
|
222
|
+
font-style: italic;
|
223
|
+
}
|
224
|
+
|
225
|
+
dl p {
|
226
|
+
padding-left: 20px;
|
227
|
+
font-style: italic;
|
228
|
+
}
|
229
|
+
|
230
|
+
hr {
|
231
|
+
height: 1px;
|
232
|
+
margin-bottom: 5px;
|
233
|
+
border: none;
|
234
|
+
background: url('../images/bg_hr.png') repeat-x center;
|
235
|
+
}
|
236
|
+
|
237
|
+
table {
|
238
|
+
border: 1px solid #373737;
|
239
|
+
margin-bottom: 20px;
|
240
|
+
text-align: left;
|
241
|
+
}
|
242
|
+
|
243
|
+
th {
|
244
|
+
font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
245
|
+
padding: 10px;
|
246
|
+
|
247
|
+
}
|
248
|
+
|
249
|
+
td {
|
250
|
+
padding: 10px;
|
251
|
+
border: 1px solid #373737;
|
252
|
+
}
|
253
|
+
|
254
|
+
form {
|
255
|
+
background: #f2f2f2;
|
256
|
+
padding: 20px;
|
257
|
+
}
|
258
|
+
|
259
|
+
kbd {
|
260
|
+
background-color: #fafbfc;
|
261
|
+
border: 1px solid #c6cbd1;
|
262
|
+
border-bottom-color: #959da5;
|
263
|
+
border-radius: 3px;
|
264
|
+
box-shadow: inset 0 -1px 0 #959da5;
|
265
|
+
color: #444d56;
|
266
|
+
display: inline-block;
|
267
|
+
font-size: 11px;
|
268
|
+
line-height: 11px;
|
269
|
+
padding: 3px 5px;
|
270
|
+
vertical-align: middle;
|
271
|
+
}
|
272
|
+
|
273
|
+
/*******************************************************************************
|
274
|
+
Full-Width Styles
|
275
|
+
*******************************************************************************/
|
276
|
+
|
277
|
+
.outer {
|
278
|
+
width: 100%;
|
279
|
+
}
|
280
|
+
|
281
|
+
.inner {
|
282
|
+
position: relative;
|
283
|
+
max-width: 1080px;
|
284
|
+
padding: 10px 20px;
|
285
|
+
margin: 0 auto;
|
286
|
+
}
|
287
|
+
|
288
|
+
#forkme_banner {
|
289
|
+
display: block;
|
290
|
+
position: absolute;
|
291
|
+
top:0;
|
292
|
+
right: 10px;
|
293
|
+
z-index: 10;
|
294
|
+
padding: 10px 50px 10px 10px;
|
295
|
+
color: #fff;
|
296
|
+
background: url('../images/blacktocat.png') #0090ff no-repeat 95% 50%;
|
297
|
+
font-weight: 700;
|
298
|
+
box-shadow: 0 0 10px rgba(0,0,0,.5);
|
299
|
+
border-bottom-left-radius: 2px;
|
300
|
+
border-bottom-right-radius: 2px;
|
301
|
+
}
|
302
|
+
|
303
|
+
#header_wrap {
|
304
|
+
background: #212121;
|
305
|
+
background: -moz-linear-gradient(top, #373737, #212121);
|
306
|
+
background: -webkit-linear-gradient(top, #373737, #212121);
|
307
|
+
background: -ms-linear-gradient(top, #373737, #212121);
|
308
|
+
background: -o-linear-gradient(top, #373737, #212121);
|
309
|
+
background: linear-gradient(to top, #373737, #212121);
|
310
|
+
}
|
311
|
+
|
312
|
+
#header_wrap .inner {
|
313
|
+
padding: 0px 0px 0px 0px;
|
314
|
+
}
|
315
|
+
|
316
|
+
#project_title {
|
317
|
+
margin: 0;
|
318
|
+
color: #fff;
|
319
|
+
font-size: 42px;
|
320
|
+
font-weight: 700;
|
321
|
+
text-shadow: #111 0px 0px 10px;
|
322
|
+
}
|
323
|
+
|
324
|
+
#project_tagline {
|
325
|
+
color: #fff;
|
326
|
+
font-size: 24px;
|
327
|
+
font-weight: 300;
|
328
|
+
background: none;
|
329
|
+
text-shadow: #111 0px 0px 10px;
|
330
|
+
}
|
331
|
+
|
332
|
+
#downloads {
|
333
|
+
position: absolute;
|
334
|
+
width: 210px;
|
335
|
+
z-index: 10;
|
336
|
+
bottom: -40px;
|
337
|
+
right: 0;
|
338
|
+
height: 70px;
|
339
|
+
background: url('../images/icon_download.png') no-repeat 0% 90%;
|
340
|
+
}
|
341
|
+
|
342
|
+
.zip_download_link {
|
343
|
+
display: block;
|
344
|
+
float: right;
|
345
|
+
width: 90px;
|
346
|
+
height:70px;
|
347
|
+
text-indent: -5000px;
|
348
|
+
overflow: hidden;
|
349
|
+
background: url(../images/sprite_download.png) no-repeat bottom left;
|
350
|
+
}
|
351
|
+
|
352
|
+
.tar_download_link {
|
353
|
+
display: block;
|
354
|
+
float: right;
|
355
|
+
width: 90px;
|
356
|
+
height:70px;
|
357
|
+
text-indent: -5000px;
|
358
|
+
overflow: hidden;
|
359
|
+
background: url(../images/sprite_download.png) no-repeat bottom right;
|
360
|
+
margin-left: 10px;
|
361
|
+
}
|
362
|
+
|
363
|
+
.zip_download_link:hover {
|
364
|
+
background: url(../images/sprite_download.png) no-repeat top left;
|
365
|
+
}
|
366
|
+
|
367
|
+
.tar_download_link:hover {
|
368
|
+
background: url(../images/sprite_download.png) no-repeat top right;
|
369
|
+
}
|
370
|
+
|
371
|
+
#main_content_wrap {
|
372
|
+
background: #ffffff;
|
373
|
+
border-top: 1px solid #111;
|
374
|
+
border-bottom: 1px solid #111;
|
375
|
+
}
|
376
|
+
|
377
|
+
#main_content {
|
378
|
+
padding-top: 40px;
|
379
|
+
}
|
380
|
+
|
381
|
+
#footer_wrap {
|
382
|
+
background: #212121;
|
383
|
+
}
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
/*******************************************************************************
|
388
|
+
Small Device Styles
|
389
|
+
*******************************************************************************/
|
390
|
+
|
391
|
+
@media screen and (max-width: 992px) {
|
392
|
+
img {
|
393
|
+
max-width: 100%;
|
394
|
+
}
|
395
|
+
}
|
396
|
+
|
397
|
+
@media screen and (max-width: 480px) {
|
398
|
+
body {
|
399
|
+
font-size:14px;
|
400
|
+
}
|
401
|
+
|
402
|
+
#downloads {
|
403
|
+
display: none;
|
404
|
+
}
|
405
|
+
|
406
|
+
.inner {
|
407
|
+
min-width: 320px;
|
408
|
+
max-width: 480px;
|
409
|
+
}
|
410
|
+
|
411
|
+
#project_title {
|
412
|
+
font-size: 32px;
|
413
|
+
}
|
414
|
+
|
415
|
+
h1 {
|
416
|
+
font-size: 28px;
|
417
|
+
}
|
418
|
+
|
419
|
+
h2 {
|
420
|
+
font-size: 24px;
|
421
|
+
}
|
422
|
+
|
423
|
+
h3 {
|
424
|
+
font-size: 21px;
|
425
|
+
}
|
426
|
+
|
427
|
+
h4 {
|
428
|
+
font-size: 18px;
|
429
|
+
}
|
430
|
+
|
431
|
+
h5 {
|
432
|
+
font-size: 14px;
|
433
|
+
}
|
434
|
+
|
435
|
+
h6 {
|
436
|
+
font-size: 12px;
|
437
|
+
}
|
438
|
+
|
439
|
+
code, pre {
|
440
|
+
font-size: 11px;
|
441
|
+
}
|
442
|
+
|
443
|
+
}
|
444
|
+
|
445
|
+
@media screen and (max-width: 320px) {
|
446
|
+
body {
|
447
|
+
font-size:14px;
|
448
|
+
}
|
449
|
+
|
450
|
+
#downloads {
|
451
|
+
display: none;
|
452
|
+
}
|
453
|
+
|
454
|
+
.inner {
|
455
|
+
min-width: 240px;
|
456
|
+
max-width: 320px;
|
457
|
+
}
|
458
|
+
|
459
|
+
#project_title {
|
460
|
+
font-size: 28px;
|
461
|
+
}
|
462
|
+
|
463
|
+
h1 {
|
464
|
+
font-size: 24px;
|
465
|
+
}
|
466
|
+
|
467
|
+
h2 {
|
468
|
+
font-size: 21px;
|
469
|
+
}
|
470
|
+
|
471
|
+
h3 {
|
472
|
+
font-size: 18px;
|
473
|
+
}
|
474
|
+
|
475
|
+
h4 {
|
476
|
+
font-size: 16px;
|
477
|
+
}
|
478
|
+
|
479
|
+
h5 {
|
480
|
+
font-size: 14px;
|
481
|
+
}
|
482
|
+
|
483
|
+
h6 {
|
484
|
+
font-size: 12px;
|
485
|
+
}
|
486
|
+
|
487
|
+
code, pre {
|
488
|
+
min-width: 240px;
|
489
|
+
max-width: 320px;
|
490
|
+
font-size: 11px;
|
491
|
+
}
|
492
|
+
|
493
|
+
}
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
/*
|
499
|
+
.markdown-body p + h1 {font-size:8rem;font-weight:900; line-height:.9em;letter-spacing:-1px;margin-bottom:2rem;color:red;}
|
500
|
+
.markdown-body h2 {font-size:4rem;font-weight:bold;letter-spacing:-1px;margin-bottom:2rem;}
|
501
|
+
p, ul, ol {font-family:Times,"Times New Roman","New York",serif;font-size:1.25rem;width:40rem;max-width:40rem;}
|
502
|
+
*/
|
503
|
+
|
504
|
+
// Adding 'Contents' headline to the TOC
|
505
|
+
#markdown-toc::before {
|
506
|
+
content: "Table of Contents";
|
507
|
+
font-weight: bold;
|
508
|
+
font-size: 26px;
|
509
|
+
text-align: center;
|
510
|
+
margin-left: auto;
|
511
|
+
margin-right: auto;
|
512
|
+
}
|
513
|
+
|
514
|
+
|
515
|
+
// Using numbers instead of bullets for listing
|
516
|
+
#markdown-toc ul {
|
517
|
+
list-style: decimal;
|
518
|
+
}
|
519
|
+
|
520
|
+
#markdown-toc {
|
521
|
+
padding: 1.5em;
|
522
|
+
list-style: decimal;
|
523
|
+
display: flex;
|
524
|
+
flex-direction: column;
|
525
|
+
flex-wrap: nowrap;
|
526
|
+
align-content: center;
|
527
|
+
justify-content: center;
|
528
|
+
align-items: flex-start;
|
529
|
+
width: fit-content;
|
530
|
+
margin: auto;
|
531
|
+
max-width: 450px;
|
532
|
+
}
|
533
|
+
|
534
|
+
|
535
|
+
.markdown-body table {
|
536
|
+
margin-left: auto;
|
537
|
+
margin-right: auto;
|
538
|
+
}
|
data/_sass/neysa.scss
ADDED
data/_sass/rouge.scss
ADDED
@@ -0,0 +1,209 @@
|
|
1
|
+
.highlight table td { padding: 5px; }
|
2
|
+
.highlight table pre { margin: 0; }
|
3
|
+
.highlight .cm {
|
4
|
+
color: #777772;
|
5
|
+
font-style: italic;
|
6
|
+
}
|
7
|
+
.highlight .cp {
|
8
|
+
color: #797676;
|
9
|
+
font-weight: bold;
|
10
|
+
}
|
11
|
+
.highlight .c1 {
|
12
|
+
color: #777772;
|
13
|
+
font-style: italic;
|
14
|
+
}
|
15
|
+
.highlight .cs {
|
16
|
+
color: #797676;
|
17
|
+
font-weight: bold;
|
18
|
+
font-style: italic;
|
19
|
+
}
|
20
|
+
.highlight .c, .highlight .cd {
|
21
|
+
color: #777772;
|
22
|
+
font-style: italic;
|
23
|
+
}
|
24
|
+
.highlight .err {
|
25
|
+
color: #a61717;
|
26
|
+
background-color: #e3d2d2;
|
27
|
+
}
|
28
|
+
.highlight .gd {
|
29
|
+
color: #000000;
|
30
|
+
background-color: #ffdddd;
|
31
|
+
}
|
32
|
+
.highlight .ge {
|
33
|
+
color: #000000;
|
34
|
+
font-style: italic;
|
35
|
+
}
|
36
|
+
.highlight .gr {
|
37
|
+
color: #aa0000;
|
38
|
+
}
|
39
|
+
.highlight .gh {
|
40
|
+
color: #797676;
|
41
|
+
}
|
42
|
+
.highlight .gi {
|
43
|
+
color: #000000;
|
44
|
+
background-color: #ddffdd;
|
45
|
+
}
|
46
|
+
.highlight .go {
|
47
|
+
color: #888888;
|
48
|
+
}
|
49
|
+
.highlight .gp {
|
50
|
+
color: #555555;
|
51
|
+
}
|
52
|
+
.highlight .gs {
|
53
|
+
font-weight: bold;
|
54
|
+
}
|
55
|
+
.highlight .gu {
|
56
|
+
color: #aaaaaa;
|
57
|
+
}
|
58
|
+
.highlight .gt {
|
59
|
+
color: #aa0000;
|
60
|
+
}
|
61
|
+
.highlight .kc {
|
62
|
+
color: #000000;
|
63
|
+
font-weight: bold;
|
64
|
+
}
|
65
|
+
.highlight .kd {
|
66
|
+
color: #000000;
|
67
|
+
font-weight: bold;
|
68
|
+
}
|
69
|
+
.highlight .kn {
|
70
|
+
color: #000000;
|
71
|
+
font-weight: bold;
|
72
|
+
}
|
73
|
+
.highlight .kp {
|
74
|
+
color: #000000;
|
75
|
+
font-weight: bold;
|
76
|
+
}
|
77
|
+
.highlight .kr {
|
78
|
+
color: #000000;
|
79
|
+
font-weight: bold;
|
80
|
+
}
|
81
|
+
.highlight .kt {
|
82
|
+
color: #445588;
|
83
|
+
font-weight: bold;
|
84
|
+
}
|
85
|
+
.highlight .k, .highlight .kv {
|
86
|
+
color: #000000;
|
87
|
+
font-weight: bold;
|
88
|
+
}
|
89
|
+
.highlight .mf {
|
90
|
+
color: #009999;
|
91
|
+
}
|
92
|
+
.highlight .mh {
|
93
|
+
color: #009999;
|
94
|
+
}
|
95
|
+
.highlight .il {
|
96
|
+
color: #009999;
|
97
|
+
}
|
98
|
+
.highlight .mi {
|
99
|
+
color: #009999;
|
100
|
+
}
|
101
|
+
.highlight .mo {
|
102
|
+
color: #009999;
|
103
|
+
}
|
104
|
+
.highlight .m, .highlight .mb, .highlight .mx {
|
105
|
+
color: #009999;
|
106
|
+
}
|
107
|
+
.highlight .sb {
|
108
|
+
color: #d14;
|
109
|
+
}
|
110
|
+
.highlight .sc {
|
111
|
+
color: #d14;
|
112
|
+
}
|
113
|
+
.highlight .sd {
|
114
|
+
color: #d14;
|
115
|
+
}
|
116
|
+
.highlight .s2 {
|
117
|
+
color: #d14;
|
118
|
+
}
|
119
|
+
.highlight .se {
|
120
|
+
color: #d14;
|
121
|
+
}
|
122
|
+
.highlight .sh {
|
123
|
+
color: #d14;
|
124
|
+
}
|
125
|
+
.highlight .si {
|
126
|
+
color: #d14;
|
127
|
+
}
|
128
|
+
.highlight .sx {
|
129
|
+
color: #d14;
|
130
|
+
}
|
131
|
+
.highlight .sr {
|
132
|
+
color: #009926;
|
133
|
+
}
|
134
|
+
.highlight .s1 {
|
135
|
+
color: #d14;
|
136
|
+
}
|
137
|
+
.highlight .ss {
|
138
|
+
color: #990073;
|
139
|
+
}
|
140
|
+
.highlight .s {
|
141
|
+
color: #d14;
|
142
|
+
}
|
143
|
+
.highlight .na {
|
144
|
+
color: #008080;
|
145
|
+
}
|
146
|
+
.highlight .bp {
|
147
|
+
color: #797676;
|
148
|
+
}
|
149
|
+
.highlight .nb {
|
150
|
+
color: #0086B3;
|
151
|
+
}
|
152
|
+
.highlight .nc {
|
153
|
+
color: #445588;
|
154
|
+
font-weight: bold;
|
155
|
+
}
|
156
|
+
.highlight .no {
|
157
|
+
color: #008080;
|
158
|
+
}
|
159
|
+
.highlight .nd {
|
160
|
+
color: #3c5d5d;
|
161
|
+
font-weight: bold;
|
162
|
+
}
|
163
|
+
.highlight .ni {
|
164
|
+
color: #800080;
|
165
|
+
}
|
166
|
+
.highlight .ne {
|
167
|
+
color: #990000;
|
168
|
+
font-weight: bold;
|
169
|
+
}
|
170
|
+
.highlight .nf {
|
171
|
+
color: #990000;
|
172
|
+
font-weight: bold;
|
173
|
+
}
|
174
|
+
.highlight .nl {
|
175
|
+
color: #990000;
|
176
|
+
font-weight: bold;
|
177
|
+
}
|
178
|
+
.highlight .nn {
|
179
|
+
color: #555555;
|
180
|
+
}
|
181
|
+
.highlight .nt {
|
182
|
+
color: #000080;
|
183
|
+
}
|
184
|
+
.highlight .vc {
|
185
|
+
color: #008080;
|
186
|
+
}
|
187
|
+
.highlight .vg {
|
188
|
+
color: #008080;
|
189
|
+
}
|
190
|
+
.highlight .vi {
|
191
|
+
color: #008080;
|
192
|
+
}
|
193
|
+
.highlight .nv {
|
194
|
+
color: #008080;
|
195
|
+
}
|
196
|
+
.highlight .ow {
|
197
|
+
color: #000000;
|
198
|
+
font-weight: bold;
|
199
|
+
}
|
200
|
+
.highlight .o {
|
201
|
+
color: #000000;
|
202
|
+
font-weight: bold;
|
203
|
+
}
|
204
|
+
.highlight .w {
|
205
|
+
color: #bbbbbb;
|
206
|
+
}
|
207
|
+
.highlight {
|
208
|
+
background-color: #f8f8f8;
|
209
|
+
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/assets/js/toc.js
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
// https://github.com/ghiculescu/jekyll-table-of-contents
|
2
|
+
(function($){
|
3
|
+
$.fn.toc = function(options) {
|
4
|
+
var defaults = {
|
5
|
+
noBackToTopLinks: false,
|
6
|
+
title: '<i>Jump to...</i>',
|
7
|
+
minimumHeaders: 3,
|
8
|
+
headers: 'h2, h3, h4, h5, h6',
|
9
|
+
listType: 'ol', // values: [ol|ul]
|
10
|
+
showEffect: 'show', // values: [show|slideDown|fadeIn|none]
|
11
|
+
showSpeed: 'slow', // set to 0 to deactivate effect
|
12
|
+
classes: { list: '',
|
13
|
+
item: '',
|
14
|
+
link: ''
|
15
|
+
}
|
16
|
+
},
|
17
|
+
settings = $.extend(defaults, options);
|
18
|
+
|
19
|
+
function fixedEncodeURIComponent (str) {
|
20
|
+
return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
|
21
|
+
return '%' + c.charCodeAt(0).toString(16);
|
22
|
+
});
|
23
|
+
}
|
24
|
+
|
25
|
+
function createLink (header) {
|
26
|
+
var innerText = (header.textContent === undefined) ? header.innerText : header.textContent;
|
27
|
+
return "<a class='"+settings.classes.link+"' href='#" + fixedEncodeURIComponent(header.id) + "'>" + innerText + "</a>";
|
28
|
+
}
|
29
|
+
|
30
|
+
var headers = $(settings.headers).filter(function() {
|
31
|
+
// get all headers with an ID
|
32
|
+
var previousSiblingName = $(this).prev().attr( "name" );
|
33
|
+
if (!this.id && previousSiblingName) {
|
34
|
+
this.id = $(this).attr( "id", previousSiblingName.replace(/\./g, "-") );
|
35
|
+
}
|
36
|
+
return this.id;
|
37
|
+
}), output = $(this);
|
38
|
+
if (!headers.length || headers.length < settings.minimumHeaders || !output.length) {
|
39
|
+
$(this).hide();
|
40
|
+
return;
|
41
|
+
}
|
42
|
+
|
43
|
+
if (0 === settings.showSpeed) {
|
44
|
+
settings.showEffect = 'none';
|
45
|
+
}
|
46
|
+
|
47
|
+
var render = {
|
48
|
+
show: function() { output.hide().html(html).show(settings.showSpeed); },
|
49
|
+
slideDown: function() { output.hide().html(html).slideDown(settings.showSpeed); },
|
50
|
+
fadeIn: function() { output.hide().html(html).fadeIn(settings.showSpeed); },
|
51
|
+
none: function() { output.html(html); }
|
52
|
+
};
|
53
|
+
|
54
|
+
var get_level = function(ele) { return parseInt(ele.nodeName.replace("H", ""), 10); };
|
55
|
+
var highest_level = headers.map(function(_, ele) { return get_level(ele); }).get().sort()[0];
|
56
|
+
var return_to_top = '<i class="icon-arrow-up back-to-top"> </i>';
|
57
|
+
|
58
|
+
var level = get_level(headers[0]),
|
59
|
+
this_level,
|
60
|
+
html = settings.title + " <" +settings.listType + " class=\"" + settings.classes.list +"\">";
|
61
|
+
headers.on('click', function() {
|
62
|
+
if (!settings.noBackToTopLinks) {
|
63
|
+
window.location.hash = this.id;
|
64
|
+
}
|
65
|
+
})
|
66
|
+
.addClass('clickable-header')
|
67
|
+
.each(function(_, header) {
|
68
|
+
this_level = get_level(header);
|
69
|
+
if (!settings.noBackToTopLinks && this_level === highest_level) {
|
70
|
+
$(header).addClass('top-level-header').after(return_to_top);
|
71
|
+
}
|
72
|
+
if (this_level === level) // same level as before; same indenting
|
73
|
+
html += "<li class=\"" + settings.classes.item + "\">" + createLink(header);
|
74
|
+
else if (this_level <= level){ // higher level than before; end parent ol
|
75
|
+
for(var i = this_level; i < level; i++) {
|
76
|
+
html += "</li></"+settings.listType+">"
|
77
|
+
}
|
78
|
+
html += "<li class=\"" + settings.classes.item + "\">" + createLink(header);
|
79
|
+
}
|
80
|
+
else if (this_level > level) { // lower level than before; expand the previous to contain a ol
|
81
|
+
for(i = this_level; i > level; i--) {
|
82
|
+
html += "<" + settings.listType + " class=\"" + settings.classes.list +"\">" +
|
83
|
+
"<li class=\"" + settings.classes.item + "\">"
|
84
|
+
}
|
85
|
+
html += createLink(header);
|
86
|
+
}
|
87
|
+
level = this_level; // update for the next one
|
88
|
+
});
|
89
|
+
html += "</"+settings.listType+">";
|
90
|
+
if (!settings.noBackToTopLinks) {
|
91
|
+
$(document).on('click', '.back-to-top', function() {
|
92
|
+
$(window).scrollTop(0);
|
93
|
+
window.location.hash = '';
|
94
|
+
});
|
95
|
+
}
|
96
|
+
|
97
|
+
render[settings.showEffect]();
|
98
|
+
};
|
99
|
+
})(jQuery);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-neysa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neysa Chen
|
@@ -34,10 +34,19 @@ files:
|
|
34
34
|
- LICENSE.txt
|
35
35
|
- README.md
|
36
36
|
- _config.yml
|
37
|
+
- _includes/head-custom-google-analytics.html
|
38
|
+
- _includes/head-custom.html
|
37
39
|
- _layouts/default.html
|
38
|
-
- _layouts/page.html
|
39
|
-
- _layouts/post.html
|
40
40
|
- _sass/jekyll-theme-neysa.scss
|
41
|
+
- _sass/neysa.scss
|
42
|
+
- _sass/rouge.scss
|
43
|
+
- assets/css/style.scss
|
44
|
+
- assets/images/bg_hr.png
|
45
|
+
- assets/images/blacktocat.png
|
46
|
+
- assets/images/favicon.ico
|
47
|
+
- assets/images/icon_download.png
|
48
|
+
- assets/images/sprite_download.png
|
49
|
+
- assets/js/toc.js
|
41
50
|
homepage: http://ni-chen.github.io
|
42
51
|
licenses:
|
43
52
|
- MIT
|
@@ -60,5 +69,5 @@ requirements: []
|
|
60
69
|
rubygems_version: 3.1.6
|
61
70
|
signing_key:
|
62
71
|
specification_version: 4
|
63
|
-
summary: Neysa's Github theme
|
72
|
+
summary: Neysa's Github theme.
|
64
73
|
test_files: []
|
data/_layouts/page.html
DELETED