zhangdocs 1.1.6 → 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 +19 -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,156 +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, 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
-
@@ -1,25 +0,0 @@
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>
@@ -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,50 +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>
50
- <% include header.ejs %>
@@ -1,38 +0,0 @@
1
- <div class="navbar <%if(!index){%>navbar-line<%}%>">
2
- <div class="container">
3
- <div class="logo">
4
- <%if(pkg.zhangdocs.logo){%>
5
- <img src="<%=relative_path%><%=pkg.zhangdocs.logo%>">
6
- <%}else{%>
7
- <%= title %>
8
- <%}%>
9
- </div>
10
- <input type="checkbox" id="zhangdocs_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="zhangdocs_nav_btn">
20
- <label for="zhangdocs_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>
31
- <%= title %>
32
- </h1>
33
- <p>
34
- <%= pkg.description %>
35
- </p>
36
- </div>
37
- </div>
38
- <% } %>
@@ -1,16 +0,0 @@
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/zhangdocs" target="_blank">zhangdocs</a>. Dependence <a href="https://nodejs.org">Node.js</a> run.</div>
12
- </div>
13
-
14
- </div>
15
-
16
- <% include footer.ejs %>
@@ -1,239 +0,0 @@
1
- .navbar
2
- line-height: nav-height
3
- ul
4
- list-style: none
5
- position: relative
6
- display: inline-table
7
- float: left
8
- @media mq-mobile
9
- position: absolute
10
- ul
11
- display: none
12
- background: #FFFFFF
13
- border-radius: 0 0 5px 5px
14
- padding: 3px
15
- position: absolute
16
- top: 100%
17
- z-index: 9
18
- li.active
19
- a
20
- color: #463265
21
- background-color: #f9f9f9
22
- line-height:29px
23
- height:29px
24
- li
25
- float: none
26
- border-bottom: 1px solid #F7F2FF
27
- position: relative
28
- a:hover
29
- color:#573E7D
30
- a
31
- color: #fff
32
- line-height: 29px
33
- white-space:nowrap
34
- word-break:keep-all
35
- ul
36
- position: absolute
37
- left: 100%
38
- top:0
39
- border-radius 0 5px 5px 5px
40
- li
41
- float: left
42
- line-height: nav-height
43
- a
44
- display: block
45
- color: #757575
46
- text-decoration: none
47
- padding: 0 15px
48
- @media mq-mobile
49
- padding: 0 5px
50
- li:hover
51
- background: #F3F3F3
52
- a
53
- color: #333
54
- li.active
55
- a
56
- color: #463265
57
- background-color: #F3F3F3
58
- height: nav-height
59
- ul li:hover > ul
60
- display: block
61
- box-shadow: rgba(0, 0, 0, 0.26) 0px 2px 2px 1px
62
- ul:after
63
- content: ""
64
- clear: both
65
- display: block
66
-
67
- #zhangdocs_nav
68
- display none
69
-
70
- @media mq-tablet
71
- .navbar
72
- z-index: 2
73
- background-image: linear-gradient(to bottom,#fff 0,#f8f8f8 100%)
74
-
75
- section.zhangdocs_nav_btn
76
- position relative
77
- transition all 0.6s
78
- z-index 999
79
- display block
80
- label
81
- position fixed
82
- display block
83
- right 7px
84
- top 10px
85
- cursor pointer
86
- z-index 99
87
- width 26px
88
- height 26px
89
- overflow hidden
90
- span,&:after,&:before
91
- content ''
92
- display block
93
- height 3px
94
- background #333
95
- margin 4px 4px 0 4px
96
- transform rotate(0deg)
97
- transition all 0.6s
98
- .menu_tree
99
- transition all 0.6s
100
- background #fff
101
- position fixted
102
- width 100%
103
- // display none
104
- ul
105
- opacity 0
106
- height 0
107
- overflow hidden
108
- display block
109
- transition all 0.6s
110
- input#zhangdocs_nav:checked ~ section label span
111
- display none
112
- input#zhangdocs_nav:checked ~ section label:before
113
- margin 12px 4px 0 4px
114
- transform rotate(45deg)
115
- border-radius 3px
116
- background #458
117
- input#zhangdocs_nav:checked ~ section label:after
118
- margin -3px 4px 0 4px
119
- transform rotate(-45deg)
120
- border-radius 3px
121
- background #458
122
- input#zhangdocs_nav:checked ~ .menu_tree
123
- display block
124
- ul
125
- width 100%
126
- opacity 1
127
- position relative
128
- transition all 0.6s
129
- padding-bottom 10px
130
- display block
131
- height inherit
132
- li.active
133
- line-height 36px
134
- a
135
- line-height 36px
136
- height 36px
137
- background-color #D7D7D7
138
- li
139
- float initial
140
- line-height 30px
141
- &:hover
142
- background transparent
143
- &:hover > ul
144
- box-shadow #fff 0 0 0 0
145
- ul
146
- display block
147
- position inherit
148
- border-radius 0
149
- float inherit
150
- background #EEE
151
- padding-left 7px
152
- padding-bottom 0px
153
- li
154
- display inline-block
155
- @media mq-mobile
156
- .navbar
157
- z-index: 2
158
- background-image: linear-gradient(to bottom,#fff 0,#f8f8f8 100%)
159
-
160
- section.zhangdocs_nav_btn
161
- position relative
162
- transition all 0.6s
163
- z-index 999
164
- display block
165
- label
166
- position fixed
167
- display block
168
- right 7px
169
- top 10px
170
- cursor pointer
171
- z-index 99
172
- width 26px
173
- height 26px
174
- overflow hidden
175
- span,&:after,&:before
176
- content ''
177
- display block
178
- height 3px
179
- background #333
180
- margin 4px 4px 0 4px
181
- transform rotate(0deg)
182
- transition all 0.6s
183
- .menu_tree
184
- transition all 0.6s
185
- background #fff
186
- position relative
187
- width 100%
188
- // display none
189
- ul
190
- opacity 0
191
- height 0
192
- overflow hidden
193
- display block
194
- transition all 0.6s
195
- input#zhangdocs_nav:checked ~ section label span
196
- display none
197
- input#zhangdocs_nav:checked ~ section label:before
198
- margin 12px 4px 0 4px
199
- transform rotate(45deg)
200
- border-radius 3px
201
- background #458
202
- input#zhangdocs_nav:checked ~ section label:after
203
- margin -3px 4px 0 4px
204
- transform rotate(-45deg)
205
- border-radius 3px
206
- background #458
207
- input#zhangdocs_nav:checked ~ .menu_tree
208
- display block
209
- ul
210
- width 100%
211
- opacity 1
212
- position relative
213
- transition all 0.6s
214
- padding-bottom 10px
215
- display block
216
- height inherit
217
- li.active
218
- line-height 36px
219
- a
220
- line-height 36px
221
- height 36px
222
- background-color #D7D7D7
223
- li
224
- float initial
225
- line-height 30px
226
- &:hover
227
- background transparent
228
- &:hover > ul
229
- box-shadow #fff 0 0 0 0
230
- ul
231
- display block
232
- position inherit
233
- border-radius 0
234
- float inherit
235
- background #EEE
236
- padding-left 7px
237
- padding-bottom 0px
238
- li
239
- display inline-block
@@ -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
-