zhangdocs 1.1.7 → 1.1.9

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.
Files changed (41) hide show
  1. package/index.html +20 -20
  2. package/lib/toc.js +15 -0
  3. package/package.json +46 -46
  4. package/theme/handbook/layout.ejs +74 -0
  5. package/theme/handbook/source/css/_partial/markdown.styl +125 -60
  6. package/theme/default/footer.ejs +0 -3
  7. package/theme/default/gitignore +0 -22
  8. package/theme/default/head.ejs +0 -67
  9. package/theme/default/header.ejs +0 -38
  10. package/theme/default/layout.ejs +0 -31
  11. package/theme/default/source/css/_partial/head_nav.styl +0 -239
  12. package/theme/default/source/css/_partial/highlight.styl +0 -103
  13. package/theme/default/source/css/_partial/markdown.styl +0 -121
  14. package/theme/default/source/css/_partial/reset.styl +0 -101
  15. package/theme/default/source/css/_partial/variables.styl +0 -10
  16. package/theme/default/source/css/main.styl +0 -156
  17. package/theme/default/source/img/forkgithub.png +0 -0
  18. package/theme/doc/footer.ejs +0 -25
  19. package/theme/doc/gitignore +0 -22
  20. package/theme/doc/head.ejs +0 -50
  21. package/theme/doc/header.ejs +0 -38
  22. package/theme/doc/layout.ejs +0 -16
  23. package/theme/doc/source/css/_partial/head_nav.styl +0 -239
  24. package/theme/doc/source/css/_partial/highlight.styl +0 -103
  25. package/theme/doc/source/css/_partial/markdown.styl +0 -121
  26. package/theme/doc/source/css/_partial/reset.styl +0 -101
  27. package/theme/doc/source/css/_partial/variables.styl +0 -10
  28. package/theme/doc/source/css/main.styl +0 -166
  29. package/theme/doc/source/img/forkgithub.png +0 -0
  30. package/theme/resume/footer.ejs +0 -2
  31. package/theme/resume/gitignore +0 -22
  32. package/theme/resume/head.ejs +0 -49
  33. package/theme/resume/layout.ejs +0 -30
  34. package/theme/resume/source/css/_partial/highlight.styl +0 -103
  35. package/theme/resume/source/css/_partial/markdown.styl +0 -137
  36. package/theme/resume/source/css/_partial/reset.styl +0 -101
  37. package/theme/resume/source/css/_partial/variables.styl +0 -10
  38. package/theme/resume/source/css/main.styl +0 -50
  39. package/theme/resume/source/js/jquery.2.1.4.min.js +0 -5
  40. package/theme/resume/source/js/pdfmake.js +0 -17
  41. package/theme/resume/source/js/vfs_fonts.js +0 -1
@@ -1,121 +0,0 @@
1
-
2
- .markdown-body
3
- padding: 30px 35px 30px 0
4
- word-wrap: break-word
5
- font-family: Helvetica Neue,Helvetica,Arial,PingFang SC,Hiragino Sans GB,WenQuanYi Micro Hei,Microsoft Yahei,sans-serif
6
- font-size: 18px
7
- line-height: 1.5em
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
@@ -1,101 +0,0 @@
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
@@ -1,10 +0,0 @@
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
@@ -1,166 +0,0 @@
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,Arial,PingFang SC,Hiragino Sans GB,WenQuanYi Micro Hei,Microsoft Yahei,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
- .red
28
- background: #f3f3f3;
29
- z-index: 1;
30
- border-left: 3px solid #009a61;
31
- -webkit-transition: all .2s ease;
32
- transition: all .2s ease;
33
-
34
- .container
35
- padding-left: 15px
36
- padding-right: 15px
37
- width: 1124px
38
- margin 0 auto
39
- @media mq-tablet
40
- width auto
41
- @media mq-mobile
42
- width auto
43
- &:before
44
- display: table
45
- content: " "
46
- &:after
47
- display: table
48
- content: " "
49
- clear: both
50
-
51
- .bs-docs-header
52
- background:#445588
53
- background-image: linear-gradient(to bottom,#445588 0,#458 100%)
54
- background-repeat: repeat-x
55
- position: relative
56
- padding: 88px 0
57
- color: #A3AFD4
58
- font-size: 24px
59
- text-align: left
60
- text-shadow: 0 1px 0 rgba(0,0,0,.1)
61
- @media mq-mobile
62
- padding: 28px 0
63
- h1,p
64
- margin-right: 380px
65
- @media mq-mobile
66
- margin-right: 0
67
- @media mq-tablet
68
- margin-right 50px
69
- h1
70
- color: #fff
71
- font-family: inherit
72
- font-weight: 500
73
- margin: .67em 0
74
- margin-bottom: 10px
75
- margin-top: 0
76
- font-size: 60px
77
- line-height: 1
78
- text-align: left
79
- @media mq-mobile
80
- margin: .37em 0
81
- text-align center
82
- p
83
- margin-bottom: 0
84
- font-weight: 300
85
- line-height: 1.4
86
- .navbar-line
87
- border-bottom: 1px solid #E9E9F1
88
-
89
- .markdown-body
90
- overflow: auto
91
- .page-toc
92
- float: right
93
- position:fixed
94
- top:30px
95
- right:1px;
96
- width: 320px
97
- background: #fff
98
- padding: 9px 0 25px 20px
99
- margin-top: 35px
100
- border-left: 1px solid #EEE
101
- font-family: Helvetica Neue,Helvetica,Arial,PingFang SC,Hiragino Sans GB,WenQuanYi Micro Hei,Microsoft Yahei,sans-serif
102
- @media mq-tablet
103
- width auto
104
- @media mq-mobile
105
- display none
106
- ul
107
- list-style-type: none
108
- margin: 0
109
- a
110
- display: block
111
- padding: 3px 0
112
- color: #151515
113
- text-decoration: none
114
- font-weight:bold
115
- line-height: 20px
116
- font-size: 18px
117
- &:hover
118
- color:red
119
- text-decoration: underline
120
- li
121
- padding-left:3px
122
- text-align:left
123
- float: initial
124
- ul
125
- margin:0 0 0 10px
126
- list-style-type: square
127
- padding: 0 0 0 9px
128
- li
129
- a
130
- font-size:90%
131
- font-weight:normal
132
- border-bottom:0
133
- .copyright
134
- border-top: 1px dashed #E9E9E9
135
- padding: 6px 0 5px 2px
136
- margin: 32px 0 0 0
137
- line-height: 16px
138
- font-size: 12px
139
- color: #dfdfdf
140
- a
141
- color: #D6DDF8
142
- text-decoration: underline
143
- &:hover
144
- color:#333
145
-
146
- .forkgithub
147
- position: absolute
148
- z-index: 2
149
- right: 0
150
- background: url("../img/forkgithub.png") 14px -15px no-repeat
151
- @media mq-mobile
152
- display none
153
- @media mq-tablet
154
- background-image inherit
155
- a
156
- display: block
157
- width: 149px
158
- height: 1px
159
- padding-top 149px
160
- overflow hidden
161
- @media mq-tablet
162
- padding-top 0
163
- // height: 149px
164
- height 50px
165
- .menu_tree
166
- padding-left: 18px
Binary file
@@ -1,2 +0,0 @@
1
- </body>
2
- </html>
@@ -1,22 +0,0 @@
1
- *.iml
2
- .idea/
3
- .ipr
4
- .iws
5
- *~
6
- ~*
7
- *.diff
8
- *.patch
9
- *.bak
10
- .DS_Store
11
- Thumbs.db
12
- .project
13
- .*proj
14
- .svn/
15
- *.swp
16
- *.swo
17
- *.pyc
18
- *.pyo
19
- .build
20
- node_modules
21
- .cache
22
- zhangdocs-theme-*/
@@ -1,49 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1">
7
- <title>
8
- <%=title%>
9
- </title>
10
- <%if(pkg.zhangdocs&&pkg.zhangdocs.logo){ var iconurl=pkg.zhangdocs.logo %>
11
- <%if( /\.png$/.test(iconurl)){%>
12
- <link rel="shortcut icon" href="<%=relative_path%><%=pkg.zhangdocs.logo%>" type="image/x-png">
13
- <%}else if(/\.ico$/.test(iconurl)){%>
14
- <link rel="shortcut icon" href="<%=relative_path%><%=pkg.zhangdocs.logo%>" type="image/x-icon">
15
- <%}%>
16
- <%}%>
17
- <link rel="stylesheet" type="text/css" href="<%=relative_path%>static/css/main.css">
18
- <!-- 添加MathJax支持 -->
19
- <script type="text/javascript" id="MathJax-script" async
20
- src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
21
- </script>
22
- <script type="text/javascript">
23
- window.MathJax = {
24
- tex: {
25
- inlineMath: [['$', '$'], ['\\(', '\\)'], ['(', ')']],
26
- displayMath: [['$$', '$$'], ['\\[', '\\]']],
27
- processEscapes: true,
28
- processEnvironments: true,
29
- packages: ['base', 'ams', 'noerrors', 'noundefined']
30
- },
31
- options: {
32
- skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
33
- ignoreHtmlClass: 'tex2jax_ignore',
34
- processHtmlClass: 'tex2jax_process'
35
- },
36
- svg: {
37
- fontCache: 'global'
38
- },
39
- chtml: {
40
- scale: 1,
41
- minScale: .5,
42
- mtextInheritFont: true,
43
- merrorInheritFont: true
44
- }
45
- };
46
- </script>
47
- </head>
48
-
49
- <body>
@@ -1,30 +0,0 @@
1
- <% include head.ejs %>
2
-
3
- <header class="header">
4
- <div class="container">
5
- <div class="vertical">
6
- <% if(pkg.zhangdocs && pkg.zhangdocs.name ){ %>
7
- <h1>
8
- <%=pkg.zhangdocs.name%>
9
- </h1>
10
- <% } %>
11
- <% if(pkg.zhangdocs && pkg.zhangdocs.baseinfo ){ %>
12
- <pre><%=pkg.zhangdocs.baseinfo%></pre>
13
- <% } %>
14
- </div>
15
- </div>
16
- </header>
17
-
18
- <div class="container">
19
-
20
- <div class="content markdown-body">
21
- <%- markdown_html %>
22
- <div class="copyright">Powered by <a href="https://github.com/jaywcjlove/zhangdocs"
23
- target="_blank">zhangdocs</a>. Dependence <a href="https://nodejs.org">Node.js</a> run.</div>
24
- </div>
25
-
26
- </div>
27
-
28
-
29
-
30
- <% include footer.ejs %>
@@ -1,103 +0,0 @@
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
-