zhangdocs 0.3.0
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.
- package/.bin/idoc.js +65 -0
- package/.github/FUNDING.yml +9 -0
- package/README.md +108 -0
- package/index.js +56 -0
- package/lib/build.js +126 -0
- package/lib/clean.js +43 -0
- package/lib/copy.js +215 -0
- package/lib/deploy.js +24 -0
- package/lib/file.js +148 -0
- package/lib/imgPath.js +20 -0
- package/lib/init.js +166 -0
- package/lib/menu_json.js +36 -0
- package/lib/menu_update.js +73 -0
- package/lib/nav.js +108 -0
- package/lib/pdf.js +66 -0
- package/lib/pk.json +13 -0
- package/lib/stylus.js +36 -0
- package/lib/theme.js +57 -0
- package/lib/toc.js +119 -0
- package/lib/watch.js +76 -0
- package/lib/whoami.js +23 -0
- package/package.json +41 -0
- package/theme/default/footer.ejs +3 -0
- package/theme/default/gitignore +22 -0
- package/theme/default/head.ejs +17 -0
- package/theme/default/header.ejs +34 -0
- package/theme/default/layout.ejs +16 -0
- package/theme/default/source/css/_partial/head_nav.styl +239 -0
- package/theme/default/source/css/_partial/highlight.styl +103 -0
- package/theme/default/source/css/_partial/markdown.styl +121 -0
- package/theme/default/source/css/_partial/reset.styl +101 -0
- package/theme/default/source/css/_partial/variables.styl +10 -0
- package/theme/default/source/css/main.styl +156 -0
- package/theme/default/source/img/forkgithub.png +0 -0
- package/theme/doc/footer.ejs +25 -0
- package/theme/doc/gitignore +22 -0
- package/theme/doc/head.ejs +17 -0
- package/theme/doc/header.ejs +34 -0
- package/theme/doc/layout.ejs +16 -0
- package/theme/doc/source/css/_partial/head_nav.styl +239 -0
- package/theme/doc/source/css/_partial/highlight.styl +103 -0
- package/theme/doc/source/css/_partial/markdown.styl +121 -0
- package/theme/doc/source/css/_partial/reset.styl +101 -0
- package/theme/doc/source/css/_partial/variables.styl +10 -0
- package/theme/doc/source/css/main.styl +164 -0
- package/theme/doc/source/img/forkgithub.png +0 -0
- package/theme/handbook/footer.ejs +3 -0
- package/theme/handbook/gitignore +22 -0
- package/theme/handbook/head.ejs +10 -0
- package/theme/handbook/header.ejs +14 -0
- package/theme/handbook/layout.ejs +15 -0
- package/theme/handbook/source/css/_partial/highlight.styl +103 -0
- package/theme/handbook/source/css/_partial/markdown.styl +120 -0
- package/theme/handbook/source/css/_partial/reset.styl +101 -0
- package/theme/handbook/source/css/_partial/variables.styl +9 -0
- package/theme/handbook/source/css/main.styl +175 -0
- package/theme/handbook/source/img/background.png +0 -0
- package/theme/handbook/source/img/forkgithub.png +0 -0
- package/theme/resume/footer.ejs +2 -0
- package/theme/resume/gitignore +22 -0
- package/theme/resume/head.ejs +16 -0
- package/theme/resume/layout.ejs +27 -0
- package/theme/resume/source/css/_partial/highlight.styl +103 -0
- package/theme/resume/source/css/_partial/markdown.styl +137 -0
- package/theme/resume/source/css/_partial/reset.styl +101 -0
- package/theme/resume/source/css/_partial/variables.styl +10 -0
- package/theme/resume/source/css/main.styl +50 -0
- package/theme/resume/source/js/jquery.2.1.4.min.js +5 -0
- package/theme/resume/source/js/pdfmake.js +17 -0
- package/theme/resume/source/js/vfs_fonts.js +1 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*
|
|
2
|
+
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
|
|
3
|
+
*/
|
|
4
|
+
.hljs
|
|
5
|
+
display: block
|
|
6
|
+
overflow-x: auto
|
|
7
|
+
padding: 0.5em
|
|
8
|
+
color: #333
|
|
9
|
+
background: #f8f8f8
|
|
10
|
+
-webkit-text-size-adjust: none
|
|
11
|
+
|
|
12
|
+
.hljs-comment,
|
|
13
|
+
.diff .hljs-header
|
|
14
|
+
color: #969896
|
|
15
|
+
font-size: 90%
|
|
16
|
+
|
|
17
|
+
.hljs-keyword,
|
|
18
|
+
.css .rule .hljs-keyword,
|
|
19
|
+
.hljs-winutils,
|
|
20
|
+
.nginx .hljs-title,
|
|
21
|
+
.hljs-subst,
|
|
22
|
+
.hljs-request,
|
|
23
|
+
.hljs-status
|
|
24
|
+
color: #a71d5d
|
|
25
|
+
font-weight: bold
|
|
26
|
+
|
|
27
|
+
.hljs-number,
|
|
28
|
+
.hljs-hexcolor,
|
|
29
|
+
.ruby .hljs-constant
|
|
30
|
+
color: #008080
|
|
31
|
+
|
|
32
|
+
.hljs-string,
|
|
33
|
+
.hljs-tag .hljs-value,
|
|
34
|
+
.hljs-doctag,
|
|
35
|
+
.tex .hljs-formula
|
|
36
|
+
color: #183691
|
|
37
|
+
|
|
38
|
+
.hljs-title,
|
|
39
|
+
.hljs-id,
|
|
40
|
+
.scss .hljs-preprocessor
|
|
41
|
+
color: #900
|
|
42
|
+
font-weight: bold
|
|
43
|
+
|
|
44
|
+
.hljs-list .hljs-keyword,
|
|
45
|
+
.hljs-subst
|
|
46
|
+
font-weight: normal
|
|
47
|
+
|
|
48
|
+
.hljs-class .hljs-title,
|
|
49
|
+
.hljs-type,
|
|
50
|
+
.vhdl .hljs-literal,
|
|
51
|
+
.tex .hljs-command
|
|
52
|
+
color: #458
|
|
53
|
+
font-weight: bold
|
|
54
|
+
|
|
55
|
+
.hljs-tag,
|
|
56
|
+
.hljs-tag .hljs-title,
|
|
57
|
+
.hljs-rule .hljs-property,
|
|
58
|
+
.django .hljs-tag .hljs-keyword
|
|
59
|
+
color: #000080
|
|
60
|
+
font-weight: normal
|
|
61
|
+
|
|
62
|
+
.hljs-attribute,
|
|
63
|
+
.hljs-variable,
|
|
64
|
+
.lisp .hljs-body,
|
|
65
|
+
.hljs-name
|
|
66
|
+
color: #008080
|
|
67
|
+
|
|
68
|
+
.hljs-regexp
|
|
69
|
+
color: #009926
|
|
70
|
+
|
|
71
|
+
.hljs-symbol,
|
|
72
|
+
.ruby .hljs-symbol .hljs-string,
|
|
73
|
+
.lisp .hljs-keyword,
|
|
74
|
+
.clojure .hljs-keyword,
|
|
75
|
+
.scheme .hljs-keyword,
|
|
76
|
+
.tex .hljs-special,
|
|
77
|
+
.hljs-prompt
|
|
78
|
+
color: #990073
|
|
79
|
+
|
|
80
|
+
.hljs-built_in
|
|
81
|
+
color: #0086b3
|
|
82
|
+
|
|
83
|
+
.hljs-preprocessor,
|
|
84
|
+
.hljs-pragma,
|
|
85
|
+
.hljs-pi,
|
|
86
|
+
.hljs-doctype,
|
|
87
|
+
.hljs-shebang,
|
|
88
|
+
.hljs-cdata
|
|
89
|
+
color: #999
|
|
90
|
+
font-weight: bold
|
|
91
|
+
|
|
92
|
+
.hljs-deletion
|
|
93
|
+
background: #fdd
|
|
94
|
+
|
|
95
|
+
.hljs-addition
|
|
96
|
+
background: #dfd
|
|
97
|
+
|
|
98
|
+
.diff .hljs-change
|
|
99
|
+
background: #0086b3
|
|
100
|
+
|
|
101
|
+
.hljs-chunk
|
|
102
|
+
color: #aaa
|
|
103
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
|
|
2
|
+
.markdown-body
|
|
3
|
+
padding: 30px 35px 30px 0
|
|
4
|
+
word-wrap: break-word
|
|
5
|
+
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif
|
|
6
|
+
font-size: 16px
|
|
7
|
+
line-height: 1.4em
|
|
8
|
+
color:#333
|
|
9
|
+
@media mq-mobile
|
|
10
|
+
padding-right 0
|
|
11
|
+
&>*:first-child
|
|
12
|
+
margin-top: 0 !important
|
|
13
|
+
strong
|
|
14
|
+
font-weight: bold
|
|
15
|
+
hr
|
|
16
|
+
border-top: 1px solid #CACACA
|
|
17
|
+
border-width: 1px 0 0 0
|
|
18
|
+
em
|
|
19
|
+
font-style:italic
|
|
20
|
+
img
|
|
21
|
+
max-width 100%
|
|
22
|
+
h1,h2,h3,h4,h5,h6
|
|
23
|
+
position: relative
|
|
24
|
+
margin-top: 1em
|
|
25
|
+
margin-bottom: 16px
|
|
26
|
+
font-weight: bold
|
|
27
|
+
line-height: 1.4
|
|
28
|
+
a
|
|
29
|
+
display:none
|
|
30
|
+
&:hover a
|
|
31
|
+
display:inline
|
|
32
|
+
color:#000
|
|
33
|
+
font-size:85%
|
|
34
|
+
h1,h2
|
|
35
|
+
border-bottom: 1px solid #eee
|
|
36
|
+
h1
|
|
37
|
+
font-size: 2.25em
|
|
38
|
+
line-height: 1.2
|
|
39
|
+
padding-bottom: 0.3em
|
|
40
|
+
h2
|
|
41
|
+
padding-bottom: 0.3em
|
|
42
|
+
font-size: 1.75em
|
|
43
|
+
line-height: 1.225
|
|
44
|
+
border-bottom:1px dashed #DEDEDE
|
|
45
|
+
blockquote
|
|
46
|
+
padding: 0 15px
|
|
47
|
+
color: #777
|
|
48
|
+
border-left: 4px solid #ddd
|
|
49
|
+
margin: 0;
|
|
50
|
+
&>:last-child
|
|
51
|
+
margin-bottom: 0
|
|
52
|
+
&>:first-child
|
|
53
|
+
margin-top: 0
|
|
54
|
+
p,blockquote,ul,ol,dl,table,pre
|
|
55
|
+
margin-top: 0;
|
|
56
|
+
margin-bottom: 16px
|
|
57
|
+
ul,ol
|
|
58
|
+
padding-left: 1.4em
|
|
59
|
+
list-style:initial
|
|
60
|
+
ol
|
|
61
|
+
list-style-type: decimal
|
|
62
|
+
ol ol, ul ol
|
|
63
|
+
list-style-type: lower-roman;
|
|
64
|
+
ul ul ol, ul ol ol, ol ul ol, ol ol ol
|
|
65
|
+
list-style-type: lower-alpha;
|
|
66
|
+
pre
|
|
67
|
+
padding: 5px
|
|
68
|
+
overflow: auto
|
|
69
|
+
background-color: #f7f7f9
|
|
70
|
+
border-radius: 3px
|
|
71
|
+
word-break: break-all
|
|
72
|
+
word-wrap: break-word
|
|
73
|
+
font: 16px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
74
|
+
code
|
|
75
|
+
// letter-spacing: 1px
|
|
76
|
+
background-color:transparent
|
|
77
|
+
color: inherit
|
|
78
|
+
line-height: 16px
|
|
79
|
+
display: block
|
|
80
|
+
font-size: 14px
|
|
81
|
+
code:before,code:after,tt:before,tt:after
|
|
82
|
+
letter-spacing: 0;
|
|
83
|
+
content: "";
|
|
84
|
+
code,tt
|
|
85
|
+
padding: 0
|
|
86
|
+
padding-bottom: 2px
|
|
87
|
+
margin: 0 3px
|
|
88
|
+
vertical-align: top
|
|
89
|
+
background-color: #EDEDF7
|
|
90
|
+
border-radius: 4px
|
|
91
|
+
padding-left: 3px
|
|
92
|
+
padding-right: 3px
|
|
93
|
+
font-size: 14px
|
|
94
|
+
color: #6F5990
|
|
95
|
+
code:before,code:after,tt:before,tt:after
|
|
96
|
+
content: "\00a0"
|
|
97
|
+
vertical-align: text-top
|
|
98
|
+
table
|
|
99
|
+
width: 100%
|
|
100
|
+
border-collapse: collapse
|
|
101
|
+
border-spacing: 0
|
|
102
|
+
max-width: 100%
|
|
103
|
+
display: block
|
|
104
|
+
background-color: transparent
|
|
105
|
+
th,td
|
|
106
|
+
border: 1px solid #ddd
|
|
107
|
+
padding: 4px 10px
|
|
108
|
+
th
|
|
109
|
+
font-weight: bold
|
|
110
|
+
background: #F3F3F3
|
|
111
|
+
tr:nth-child(2n)
|
|
112
|
+
background-color: #f8f8f8
|
|
113
|
+
tbody
|
|
114
|
+
background:#fff
|
|
115
|
+
|
|
116
|
+
// markdown 增强样式
|
|
117
|
+
.markdown-body
|
|
118
|
+
.task-list-item
|
|
119
|
+
padding: 0;
|
|
120
|
+
li
|
|
121
|
+
list-style-type: none
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// Reset
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
//在HTML标签在浏览器里有默认的样式,例如 p 标签有上下边距,strong标签有字体加粗样式,em标签有字体倾斜样式。不同浏览器的默认样式之间也会有差别,例如ul默认带有缩进的样式,在IE下,它的缩进是通过margin实现的,而Firefox下,它的缩进是由padding实现的。在切换页面的时候,浏览器的默认样式往往会给我们带来麻烦,影响开发效率。所以解决的方法就是一开始就将浏览器的默认样式全部去掉,更准确说就是通过重新定义标签样式。“覆盖”浏览器的CSS默认属性。最最简单的说法就是把浏览器提供的默认样式覆盖掉!这就是CSS reset。
|
|
5
|
+
|
|
6
|
+
// global-reset()
|
|
7
|
+
// nested-reset()
|
|
8
|
+
// reset-font()
|
|
9
|
+
// reset-box-model()
|
|
10
|
+
// reset-body()
|
|
11
|
+
// reset-table()
|
|
12
|
+
// reset-table-cell()
|
|
13
|
+
// reset-html5()
|
|
14
|
+
|
|
15
|
+
// http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
|
|
16
|
+
// http://yuilibrary.com/yui/docs/cssreset/
|
|
17
|
+
// http://yui.yahooapis.com/3.18.1/build/cssreset/cssreset-min.css
|
|
18
|
+
// http://cssreset.com/
|
|
19
|
+
|
|
20
|
+
global-reset()
|
|
21
|
+
html, body, div, span, applet, object, iframe,
|
|
22
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
|
23
|
+
a, abbr, acronym, address, big, cite, code,
|
|
24
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
|
25
|
+
small, strike, strong, sub, sup, tt, var,
|
|
26
|
+
dl, dt, dd, ol, ul, li,
|
|
27
|
+
fieldset, form, label, legend,
|
|
28
|
+
table, caption, tbody, tfoot, thead, tr, th, td
|
|
29
|
+
reset-box-model()
|
|
30
|
+
reset-font()
|
|
31
|
+
body
|
|
32
|
+
reset-body()
|
|
33
|
+
ol, ul
|
|
34
|
+
list-style: none
|
|
35
|
+
table
|
|
36
|
+
reset-table()
|
|
37
|
+
caption, th, td
|
|
38
|
+
reset-table-cell()
|
|
39
|
+
a
|
|
40
|
+
text-decoration:inherit
|
|
41
|
+
&:hover
|
|
42
|
+
text-decoration:underline
|
|
43
|
+
a img
|
|
44
|
+
border: none
|
|
45
|
+
*
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
|
|
48
|
+
nested-reset()
|
|
49
|
+
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
|
|
50
|
+
pre, a, abbr, acronym, address, code, del, dfn, em, img,
|
|
51
|
+
dl, dt, dd, ol, ul, li, fieldset, form, label,
|
|
52
|
+
legend, caption, tbody, tfoot, thead, tr
|
|
53
|
+
reset-box-model()
|
|
54
|
+
reset-font()
|
|
55
|
+
table
|
|
56
|
+
reset-table()
|
|
57
|
+
caption, th, td
|
|
58
|
+
reset-table-cell()
|
|
59
|
+
a img
|
|
60
|
+
border: none
|
|
61
|
+
|
|
62
|
+
reset-box-model()
|
|
63
|
+
margin: 0
|
|
64
|
+
padding: 0
|
|
65
|
+
border: 0
|
|
66
|
+
outline: 0
|
|
67
|
+
|
|
68
|
+
reset-font()
|
|
69
|
+
font-weight: inherit
|
|
70
|
+
font-style: inherit
|
|
71
|
+
font-family: inherit
|
|
72
|
+
font-size: 100%
|
|
73
|
+
vertical-align: baseline
|
|
74
|
+
|
|
75
|
+
reset-body()
|
|
76
|
+
line-height: 1
|
|
77
|
+
color: black
|
|
78
|
+
background: white
|
|
79
|
+
|
|
80
|
+
reset-table()
|
|
81
|
+
border-collapse: separate
|
|
82
|
+
border-spacing: 0
|
|
83
|
+
vertical-align: middle
|
|
84
|
+
|
|
85
|
+
reset-table-cell()
|
|
86
|
+
text-align: left
|
|
87
|
+
font-weight: normal
|
|
88
|
+
vertical-align: middle
|
|
89
|
+
|
|
90
|
+
reset-html5()
|
|
91
|
+
article, aside, canvas, details, figcaption,
|
|
92
|
+
figure, footer, header, hgroup, menu, nav,
|
|
93
|
+
section, summary, main
|
|
94
|
+
reset-box-model()
|
|
95
|
+
display: block
|
|
96
|
+
audio, canvas, video
|
|
97
|
+
display inline-block
|
|
98
|
+
*display inline
|
|
99
|
+
*zoom 1
|
|
100
|
+
audio:not([controls]),[hidden]
|
|
101
|
+
display none
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Media queries
|
|
2
|
+
mq-mobile = "screen and (max-width: 479px)"
|
|
3
|
+
mq-tablet = "screen and (min-width: 480px) and (max-width: 1170px)"
|
|
4
|
+
// mq-iPhones4 = "only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2)"
|
|
5
|
+
// mq-normal = "screen and (min-width: 768px)"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
tocwidth = 220px
|
|
10
|
+
nav-height = 49px
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
@import('_partial/reset.styl')
|
|
2
|
+
// CSS reset
|
|
3
|
+
global-reset()
|
|
4
|
+
reset-html()
|
|
5
|
+
|
|
6
|
+
@import('_partial/variables.styl')
|
|
7
|
+
@import('_partial/markdown.styl')
|
|
8
|
+
@import('_partial/highlight.styl')
|
|
9
|
+
@import('_partial/head_nav.styl')
|
|
10
|
+
|
|
11
|
+
*
|
|
12
|
+
box-sizing: border-box
|
|
13
|
+
body,html
|
|
14
|
+
height:100%
|
|
15
|
+
font-family: "Helvetica Neue", Helvetica, Microsoft Yahei, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
|
|
16
|
+
.logo
|
|
17
|
+
float:left
|
|
18
|
+
padding: 0 20px 0 0px
|
|
19
|
+
font-size: 24px
|
|
20
|
+
font-weight: 500
|
|
21
|
+
color: #563d7c
|
|
22
|
+
img
|
|
23
|
+
vertical-align: middle
|
|
24
|
+
margin: -4px 0 0 0
|
|
25
|
+
max-height: 27px
|
|
26
|
+
|
|
27
|
+
.container
|
|
28
|
+
padding-left: 15px
|
|
29
|
+
padding-right: 15px
|
|
30
|
+
width: 1124px
|
|
31
|
+
margin 0 auto
|
|
32
|
+
@media mq-tablet
|
|
33
|
+
width auto
|
|
34
|
+
@media mq-mobile
|
|
35
|
+
width auto
|
|
36
|
+
&:before
|
|
37
|
+
display: table
|
|
38
|
+
content: " "
|
|
39
|
+
&:after
|
|
40
|
+
display: table
|
|
41
|
+
content: " "
|
|
42
|
+
clear: both
|
|
43
|
+
|
|
44
|
+
.bs-docs-header
|
|
45
|
+
background:#445588
|
|
46
|
+
background-image: linear-gradient(to bottom,#445588 0,#458 100%)
|
|
47
|
+
background-repeat: repeat-x
|
|
48
|
+
position: relative
|
|
49
|
+
padding: 88px 0
|
|
50
|
+
color: #A3AFD4
|
|
51
|
+
font-size: 24px
|
|
52
|
+
text-align: left
|
|
53
|
+
text-shadow: 0 1px 0 rgba(0,0,0,.1)
|
|
54
|
+
@media mq-mobile
|
|
55
|
+
padding: 28px 0
|
|
56
|
+
h1,p
|
|
57
|
+
margin-right: 380px
|
|
58
|
+
@media mq-mobile
|
|
59
|
+
margin-right: 0
|
|
60
|
+
@media mq-tablet
|
|
61
|
+
margin-right 50px
|
|
62
|
+
h1
|
|
63
|
+
color: #fff
|
|
64
|
+
font-family: inherit
|
|
65
|
+
font-weight: 500
|
|
66
|
+
margin: .67em 0
|
|
67
|
+
margin-bottom: 10px
|
|
68
|
+
margin-top: 0
|
|
69
|
+
font-size: 60px
|
|
70
|
+
line-height: 1
|
|
71
|
+
text-align: left
|
|
72
|
+
@media mq-mobile
|
|
73
|
+
margin: .37em 0
|
|
74
|
+
text-align center
|
|
75
|
+
p
|
|
76
|
+
margin-bottom: 0
|
|
77
|
+
font-weight: 300
|
|
78
|
+
line-height: 1.4
|
|
79
|
+
.navbar-line
|
|
80
|
+
border-bottom: 1px solid #E9E9F1
|
|
81
|
+
|
|
82
|
+
.markdown-body
|
|
83
|
+
overflow: auto
|
|
84
|
+
.page-toc
|
|
85
|
+
width: 200px
|
|
86
|
+
float: right
|
|
87
|
+
width: 220px
|
|
88
|
+
background: #fff
|
|
89
|
+
padding: 9px 0 25px 20px
|
|
90
|
+
margin-top: 35px
|
|
91
|
+
border-left: 1px solid #EEE
|
|
92
|
+
font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,sans-serif !important
|
|
93
|
+
@media mq-tablet
|
|
94
|
+
width auto
|
|
95
|
+
@media mq-mobile
|
|
96
|
+
display none
|
|
97
|
+
ul
|
|
98
|
+
list-style-type: none
|
|
99
|
+
margin: 0
|
|
100
|
+
a
|
|
101
|
+
display: block
|
|
102
|
+
padding: 3px 0
|
|
103
|
+
color: #151515
|
|
104
|
+
text-decoration: none
|
|
105
|
+
font-weight:bold
|
|
106
|
+
line-height: 16px
|
|
107
|
+
font-size: 14px
|
|
108
|
+
&:hover
|
|
109
|
+
color:red
|
|
110
|
+
text-decoration: underline
|
|
111
|
+
li
|
|
112
|
+
padding-left:3px
|
|
113
|
+
text-align:left
|
|
114
|
+
float: initial
|
|
115
|
+
ul
|
|
116
|
+
margin:0 0 0 10px
|
|
117
|
+
list-style-type: square
|
|
118
|
+
padding: 0 0 0 9px
|
|
119
|
+
li
|
|
120
|
+
a
|
|
121
|
+
font-size:90%
|
|
122
|
+
font-weight:normal
|
|
123
|
+
border-bottom:0
|
|
124
|
+
.copyright
|
|
125
|
+
border-top: 1px dashed #E9E9E9
|
|
126
|
+
padding: 6px 0 5px 2px
|
|
127
|
+
margin: 32px 0 0 0
|
|
128
|
+
line-height: 16px
|
|
129
|
+
font-size: 12px
|
|
130
|
+
color: #dfdfdf
|
|
131
|
+
a
|
|
132
|
+
color: #D6DDF8
|
|
133
|
+
text-decoration: underline
|
|
134
|
+
&:hover
|
|
135
|
+
color:#333
|
|
136
|
+
|
|
137
|
+
.forkgithub
|
|
138
|
+
position: absolute
|
|
139
|
+
z-index: 2
|
|
140
|
+
right: 0
|
|
141
|
+
background: url("../img/forkgithub.png") 14px -15px no-repeat
|
|
142
|
+
@media mq-mobile
|
|
143
|
+
display none
|
|
144
|
+
@media mq-tablet
|
|
145
|
+
background-image inherit
|
|
146
|
+
a
|
|
147
|
+
display: block
|
|
148
|
+
width: 149px
|
|
149
|
+
height: 1px
|
|
150
|
+
padding-top 149px
|
|
151
|
+
overflow hidden
|
|
152
|
+
@media mq-tablet
|
|
153
|
+
padding-top 0
|
|
154
|
+
// height: 149px
|
|
155
|
+
height 50px
|
|
156
|
+
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
</body>
|
|
3
|
+
<script src="http://cdn.bootcss.com/jquery/3.0.0/jquery.min.js"></script>
|
|
4
|
+
<script>
|
|
5
|
+
$('.page-toc li').eq(0).children('a').addClass('red');
|
|
6
|
+
var arr = [];
|
|
7
|
+
$("h2,h3").each(function () {
|
|
8
|
+
$(this).attr('t',$(this).position().top);
|
|
9
|
+
arr.push($(this).position().top);
|
|
10
|
+
});
|
|
11
|
+
$(window).on('scroll', function () {
|
|
12
|
+
var cur = $(document).scrollTop();
|
|
13
|
+
for(var i = arr.length; i >=0;i--){
|
|
14
|
+
if(arr[i]<=cur){
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
if(i===-1){
|
|
19
|
+
i = 0;
|
|
20
|
+
}
|
|
21
|
+
$('.page-toc li a').removeClass('red');
|
|
22
|
+
$('.page-toc li').eq(i).children('a').addClass('red')
|
|
23
|
+
});
|
|
24
|
+
</script>
|
|
25
|
+
</html>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title><%=title%></title>
|
|
7
|
+
<%if(pkg.idoc&&pkg.idoc.logo){ var iconurl = pkg.idoc.logo %>
|
|
8
|
+
<%if(/\.png$/.test(iconurl)){%>
|
|
9
|
+
<link rel="shortcut icon" href="<%=relative_path%><%=pkg.idoc.logo%>" type="image/x-png">
|
|
10
|
+
<%}else if(/\.ico$/.test(iconurl)){%>
|
|
11
|
+
<link rel="shortcut icon" href="<%=relative_path%><%=pkg.idoc.logo%>" type="image/x-icon">
|
|
12
|
+
<%}%>
|
|
13
|
+
<%}%>
|
|
14
|
+
<link rel="stylesheet" type="text/css" href="<%=relative_path%>static/css/main.css">
|
|
15
|
+
</head>
|
|
16
|
+
<body>
|
|
17
|
+
<% include header.ejs %>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<div class="navbar <%if(!index){%>navbar-line<%}%>">
|
|
2
|
+
<div class="container">
|
|
3
|
+
<div class="logo">
|
|
4
|
+
<%if(pkg.idoc.logo){%>
|
|
5
|
+
<img src="<%=relative_path%><%=pkg.idoc.logo%>">
|
|
6
|
+
<%}else{%>
|
|
7
|
+
<%= title %>
|
|
8
|
+
<%}%>
|
|
9
|
+
</div>
|
|
10
|
+
<input type="checkbox" id="idoc_nav" />
|
|
11
|
+
<div class="menu_tree">
|
|
12
|
+
<%- menu_html %>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<% if(pkg&&pkg.repository&&pkg.repository.url) {%>
|
|
16
|
+
<div class="forkgithub"><a target="_blank" href="<%=pkg.repository.url%>">fork on github</a></div>
|
|
17
|
+
<%}%>
|
|
18
|
+
|
|
19
|
+
<section class="idoc_nav_btn">
|
|
20
|
+
<label for="idoc_nav"><span></span></label>
|
|
21
|
+
</section>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
<% if(index){ %>
|
|
28
|
+
<div class="bs-docs-header">
|
|
29
|
+
<div class="container">
|
|
30
|
+
<h1><%= title %></h1>
|
|
31
|
+
<p><%= pkg.description %></p>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
<% } %>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<% include head.ejs %>
|
|
2
|
+
|
|
3
|
+
<div class="container">
|
|
4
|
+
|
|
5
|
+
<div class="page-toc">
|
|
6
|
+
<%- toc_html %>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div class="content markdown-body">
|
|
10
|
+
<%- markdown_html %>
|
|
11
|
+
<div class="copyright">Powered by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a>. Dependence <a href="https://nodejs.org">Node.js</a> run.</div>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<% include footer.ejs %>
|