clean-jsdoc-theme 3.2.8 → 3.3.1

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 (59) hide show
  1. package/.eslintignore +4 -4
  2. package/.eslintrc.js +3 -3
  3. package/.github/ISSUE_TEMPLATE/bug_report.md +43 -43
  4. package/.github/ISSUE_TEMPLATE/feature_request.md +27 -27
  5. package/.github/pull_request_template.md +16 -16
  6. package/.github/workflows/codeql-analysis.yml +67 -67
  7. package/.prettierignore +2 -2
  8. package/.prettierrc +5 -5
  9. package/.stylelintignore +3 -3
  10. package/.stylelintrc +23 -23
  11. package/.travis.yml +30 -30
  12. package/CHANGELOG.md +210 -191
  13. package/CODE_OF_CONDUCT.md +76 -76
  14. package/CODE_OF_CONDUCT_HINDI.md +46 -46
  15. package/CONTRIBUTING.md +24 -24
  16. package/LICENSE +21 -21
  17. package/README.md +535 -500
  18. package/SECURITY.md +21 -21
  19. package/helpers/down-arrow.js +9 -9
  20. package/jsdoc-config.json +60 -59
  21. package/package.json +46 -46
  22. package/publish.js +1195 -941
  23. package/static/fonts/Montserrat-Regular.ttf +0 -0
  24. package/static/fonts/OFL-hind.txt +0 -0
  25. package/static/fonts/OFL-montserrat.txt +0 -0
  26. package/static/scripts/fix-code-block.js +53 -53
  27. package/static/scripts/fix-navbar.js +25 -25
  28. package/static/scripts/linenumber.js +25 -25
  29. package/static/scripts/misc.js +217 -210
  30. package/static/scripts/resize.js +85 -85
  31. package/static/scripts/search.js +83 -83
  32. package/static/scripts/third-party/Apache-License-2.0.txt +202 -202
  33. package/static/scripts/third-party/fuse.js +8 -8
  34. package/static/scripts/third-party/lang-css.js +2 -2
  35. package/static/scripts/third-party/prettify.js +28 -28
  36. package/static/styles/clean-jsdoc-theme-base.css +393 -393
  37. package/static/styles/clean-jsdoc-theme-dark.css +324 -324
  38. package/static/styles/clean-jsdoc-theme-light.css +319 -319
  39. package/static/styles/reset.css +351 -346
  40. package/static/styles/third-party/ionicons.min.css +11 -11
  41. package/static/styles/third-party/prettify-jsdoc.css +111 -111
  42. package/static/styles/third-party/prettify-tomorrow.css +5 -5
  43. package/tmpl/augments.tmpl +10 -10
  44. package/tmpl/container.tmpl +189 -189
  45. package/tmpl/details.tmpl +208 -209
  46. package/tmpl/example.tmpl +3 -3
  47. package/tmpl/examples.tmpl +38 -38
  48. package/tmpl/exceptions.tmpl +32 -32
  49. package/tmpl/icons.tmpl +34 -34
  50. package/tmpl/layout.tmpl +171 -167
  51. package/tmpl/mainpage.tmpl +10 -10
  52. package/tmpl/members.tmpl +43 -43
  53. package/tmpl/method.tmpl +140 -140
  54. package/tmpl/params.tmpl +124 -124
  55. package/tmpl/properties.tmpl +109 -109
  56. package/tmpl/returns.tmpl +18 -18
  57. package/tmpl/source.tmpl +7 -7
  58. package/tmpl/tutorial.tmpl +19 -19
  59. package/tmpl/type.tmpl +6 -6
@@ -1,189 +1,189 @@
1
- <?js
2
- var self = this;
3
- var isGlobalPage;
4
-
5
- docs.forEach(function(doc, i) {
6
- ?>
7
-
8
- <?js
9
- // we only need to check this once
10
- if (typeof isGlobalPage === 'undefined') {
11
- isGlobalPage = (doc.kind === 'globalobj');
12
- }
13
- ?>
14
- <?js if (doc.kind === 'mainpage' || (doc.kind === 'package')) { ?>
15
- <?js= self.partial('mainpage.tmpl', doc) ?>
16
- <?js } else if (doc.kind === 'source') { ?>
17
- <?js= self.partial('source.tmpl', doc) ?>
18
- <?js } else { ?>
19
-
20
- <section>
21
-
22
- <?js if (((doc.ancestors && doc.ancestors.length) || doc.name || doc.variation) || (doc.kind === 'module' && doc.modules)) { ?>
23
- <header>
24
- <?js if (!doc.longname || doc.kind !== 'module') { ?>
25
- <?js if ((doc.ancestors && doc.ancestors.length) || doc.name || doc.variation) { ?>
26
- <h2>
27
- <?js if (doc.ancestors && doc.ancestors.length) { ?>
28
- <span class="ancestors"><?js= doc.ancestors.join('') ?></span>
29
- <?js } ?>
30
- <?js= doc.name ?>
31
- <?js if (doc.variation) { ?>
32
- <sup class="variation"><?js= doc.variation ?></sup>
33
- <?js } ?>
34
- </h2>
35
- <?js } ?>
36
- <?js if (doc.classdesc) { ?>
37
- <div class="class-description"><?js= doc.classdesc ?></div>
38
- <?js } ?>
39
- <?js } else if (doc.kind === 'module' && doc.modules) { ?>
40
- <?js doc.modules.forEach(function(module) { ?>
41
- <?js if (module.classdesc) { ?>
42
- <div class="class-description"><?js= module.classdesc ?></div>
43
- <?js } ?>
44
- <?js }) ?>
45
- <?js } ?>
46
- </header>
47
- <?js } ?>
48
-
49
- <article>
50
- <div class="container-overview">
51
- <?js if (doc.kind === 'module' && doc.modules) { ?>
52
- <?js if (doc.description) { ?>
53
- <div class="description"><?js= doc.description ?></div>
54
- <?js } ?>
55
-
56
- <?js doc.modules.forEach(function(module) { ?>
57
- <?js= self.partial('method.tmpl', module) ?>
58
- <?js }) ?>
59
- <?js } else if (doc.kind === 'class') { ?>
60
- <?js= self.partial('method.tmpl', doc) ?>
61
- <?js } else { ?>
62
- <?js if (doc.description) { ?>
63
- <div class="description"><?js= doc.description ?></div>
64
- <?js } ?>
65
-
66
- <?js= self.partial('details.tmpl', doc) ?>
67
-
68
- <?js if (doc.examples && doc.examples.length) { ?>
69
- <h3>Example<?js= doc.examples.length > 1? 's':'' ?></h3>
70
- <?js= self.partial('examples.tmpl', doc.examples) ?>
71
- <?js } ?>
72
- <?js } ?>
73
- </div>
74
-
75
- <?js if (doc.augments && doc.augments.length) { ?>
76
- <h3 class="subsection-title">Extends</h3>
77
-
78
- <?js= self.partial('augments.tmpl', doc) ?>
79
- <?js } ?>
80
-
81
- <?js if (doc.requires && doc.requires.length) { ?>
82
- <h3 class="subsection-title">Requires</h3>
83
-
84
- <ul><?js doc.requires.forEach(function(r) { ?>
85
- <li><?js= self.linkto(r, r) ?></li>
86
- <?js }); ?></ul>
87
- <?js } ?>
88
-
89
- <?js
90
- var classes = self.find({kind: 'class', memberof: doc.longname});
91
- if (!isGlobalPage && classes && classes.length) {
92
- ?>
93
- <h3 class="subsection-title">Classes</h3>
94
-
95
- <dl><?js classes.forEach(function(c) { ?>
96
- <dt><?js= self.linkto(c.longname, c.name) ?></dt>
97
- <dd><?js if (c.summary) { ?><?js= c.summary ?><?js } ?></dd>
98
- <?js }); ?></dl>
99
- <?js } ?>
100
-
101
- <?js
102
- var mixins = self.find({kind: 'mixin', memberof: doc.longname});
103
- if (!isGlobalPage && mixins && mixins.length) {
104
- ?>
105
- <h3 class="subsection-title">Mixins</h3>
106
-
107
- <dl><?js mixins.forEach(function(m) { ?>
108
- <dt><?js= self.linkto(m.longname, m.name) ?></dt>
109
- <dd><?js if (m.summary) { ?><?js= m.summary ?><?js } ?></dd>
110
- <?js }); ?></dl>
111
- <?js } ?>
112
-
113
- <?js
114
- var namespaces = self.find({kind: 'namespace', memberof: doc.longname});
115
- if (!isGlobalPage && namespaces && namespaces.length) {
116
- ?>
117
- <h3 class="subsection-title">Namespaces</h3>
118
-
119
- <dl><?js namespaces.forEach(function(n) { ?>
120
- <dt><?js= self.linkto(n.longname, n.name) ?></dt>
121
- <dd><?js if (n.summary) { ?><?js= n.summary ?><?js } ?></dd>
122
- <?js }); ?></dl>
123
- <?js } ?>
124
-
125
- <?js
126
- var members = self.find({kind: 'member', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
127
-
128
- // symbols that are assigned to module.exports are not globals, even though they're not a memberof anything
129
- if (isGlobalPage && members && members.length && members.forEach) {
130
- members = members.filter(function(m) {
131
- return m.longname && m.longname.indexOf('module:') !== 0;
132
- });
133
- }
134
- if (members && members.length && members.forEach) {
135
- ?>
136
- <h3 class="subsection-title">Members</h3>
137
-
138
- <?js members.forEach(function(p) { ?>
139
- <?js= self.partial('members.tmpl', p) ?>
140
- <?js }); ?>
141
- <?js } ?>
142
-
143
- <?js
144
- var methods = self.find({kind: 'function', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
145
- if (methods && methods.length && methods.forEach) {
146
- ?>
147
- <h3 class="subsection-title">Methods</h3>
148
-
149
- <?js methods.forEach(function(m) { ?>
150
- <?js= self.partial('method.tmpl', m) ?>
151
- <?js }); ?>
152
- <?js } ?>
153
-
154
- <?js
155
- var typedefs = self.find({kind: 'typedef', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
156
- if (typedefs && typedefs.length && typedefs.forEach) {
157
- ?>
158
- <h3 class="subsection-title">Type Definitions</h3>
159
-
160
- <?js typedefs.forEach(function(e) {
161
- if (e.signature) {
162
- ?>
163
- <?js= self.partial('method.tmpl', e) ?>
164
- <?js
165
- }
166
- else {
167
- ?>
168
- <?js= self.partial('members.tmpl', e) ?>
169
- <?js
170
- }
171
- }); ?>
172
- <?js } ?>
173
-
174
- <?js
175
- var events = self.find({kind: 'event', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
176
- if (events && events.length && events.forEach) {
177
- ?>
178
- <h3 class="subsection-title">Events</h3>
179
-
180
- <?js events.forEach(function(e) { ?>
181
- <?js= self.partial('method.tmpl', e) ?>
182
- <?js }); ?>
183
- <?js } ?>
184
- </article>
185
-
186
- </section>
187
- <?js } ?>
188
-
189
- <?js }); ?>
1
+ <?js
2
+ var self = this;
3
+ var isGlobalPage;
4
+
5
+ docs.forEach(function(doc, i) {
6
+ ?>
7
+
8
+ <?js
9
+ // we only need to check this once
10
+ if (typeof isGlobalPage === 'undefined') {
11
+ isGlobalPage = (doc.kind === 'globalobj');
12
+ }
13
+ ?>
14
+ <?js if (doc.kind === 'mainpage' || (doc.kind === 'package')) { ?>
15
+ <?js= self.partial('mainpage.tmpl', doc) ?>
16
+ <?js } else if (doc.kind === 'source') { ?>
17
+ <?js= self.partial('source.tmpl', doc) ?>
18
+ <?js } else { ?>
19
+
20
+ <section>
21
+
22
+ <?js if (((doc.ancestors && doc.ancestors.length) || doc.name || doc.variation) || (doc.kind === 'module' && doc.modules)) { ?>
23
+ <header>
24
+ <?js if (!doc.longname || doc.kind !== 'module') { ?>
25
+ <?js if ((doc.ancestors && doc.ancestors.length) || doc.name || doc.variation) { ?>
26
+ <h2>
27
+ <?js if (doc.ancestors && doc.ancestors.length) { ?>
28
+ <span class="ancestors"><?js= doc.ancestors.join('') ?></span>
29
+ <?js } ?>
30
+ <?js= doc.name ?>
31
+ <?js if (doc.variation) { ?>
32
+ <sup class="variation"><?js= doc.variation ?></sup>
33
+ <?js } ?>
34
+ </h2>
35
+ <?js } ?>
36
+ <?js if (doc.classdesc) { ?>
37
+ <div class="class-description"><?js= doc.classdesc ?></div>
38
+ <?js } ?>
39
+ <?js } else if (doc.kind === 'module' && doc.modules) { ?>
40
+ <?js doc.modules.forEach(function(module) { ?>
41
+ <?js if (module.classdesc) { ?>
42
+ <div class="class-description"><?js= module.classdesc ?></div>
43
+ <?js } ?>
44
+ <?js }) ?>
45
+ <?js } ?>
46
+ </header>
47
+ <?js } ?>
48
+
49
+ <article>
50
+ <div class="container-overview">
51
+ <?js if (doc.kind === 'module' && doc.modules) { ?>
52
+ <?js if (doc.description) { ?>
53
+ <div class="description"><?js= doc.description ?></div>
54
+ <?js } ?>
55
+
56
+ <?js doc.modules.forEach(function(module) { ?>
57
+ <?js= self.partial('method.tmpl', module) ?>
58
+ <?js }) ?>
59
+ <?js } else if (doc.kind === 'class') { ?>
60
+ <?js= self.partial('method.tmpl', doc) ?>
61
+ <?js } else { ?>
62
+ <?js if (doc.description) { ?>
63
+ <div class="description"><?js= doc.description ?></div>
64
+ <?js } ?>
65
+
66
+ <?js= self.partial('details.tmpl', doc) ?>
67
+
68
+ <?js if (doc.examples && doc.examples.length) { ?>
69
+ <h3>Example<?js= doc.examples.length > 1? 's':'' ?></h3>
70
+ <?js= self.partial('examples.tmpl', doc.examples) ?>
71
+ <?js } ?>
72
+ <?js } ?>
73
+ </div>
74
+
75
+ <?js if (doc.augments && doc.augments.length) { ?>
76
+ <h3 class="subsection-title">Extends</h3>
77
+
78
+ <?js= self.partial('augments.tmpl', doc) ?>
79
+ <?js } ?>
80
+
81
+ <?js if (doc.requires && doc.requires.length) { ?>
82
+ <h3 class="subsection-title">Requires</h3>
83
+
84
+ <ul><?js doc.requires.forEach(function(r) { ?>
85
+ <li><?js= self.linkto(r, r) ?></li>
86
+ <?js }); ?></ul>
87
+ <?js } ?>
88
+
89
+ <?js
90
+ var classes = self.find({kind: 'class', memberof: doc.longname});
91
+ if (!isGlobalPage && classes && classes.length) {
92
+ ?>
93
+ <h3 class="subsection-title">Classes</h3>
94
+
95
+ <dl><?js classes.forEach(function(c) { ?>
96
+ <dt><?js= self.linkto(c.longname, c.name) ?></dt>
97
+ <dd><?js if (c.summary) { ?><?js= c.summary ?><?js } ?></dd>
98
+ <?js }); ?></dl>
99
+ <?js } ?>
100
+
101
+ <?js
102
+ var mixins = self.find({kind: 'mixin', memberof: doc.longname});
103
+ if (!isGlobalPage && mixins && mixins.length) {
104
+ ?>
105
+ <h3 class="subsection-title">Mixins</h3>
106
+
107
+ <dl><?js mixins.forEach(function(m) { ?>
108
+ <dt><?js= self.linkto(m.longname, m.name) ?></dt>
109
+ <dd><?js if (m.summary) { ?><?js= m.summary ?><?js } ?></dd>
110
+ <?js }); ?></dl>
111
+ <?js } ?>
112
+
113
+ <?js
114
+ var namespaces = self.find({kind: 'namespace', memberof: doc.longname});
115
+ if (!isGlobalPage && namespaces && namespaces.length) {
116
+ ?>
117
+ <h3 class="subsection-title">Namespaces</h3>
118
+
119
+ <dl><?js namespaces.forEach(function(n) { ?>
120
+ <dt><?js= self.linkto(n.longname, n.name) ?></dt>
121
+ <dd><?js if (n.summary) { ?><?js= n.summary ?><?js } ?></dd>
122
+ <?js }); ?></dl>
123
+ <?js } ?>
124
+
125
+ <?js
126
+ var members = self.find({kind: 'member', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
127
+
128
+ // symbols that are assigned to module.exports are not globals, even though they're not a memberof anything
129
+ if (isGlobalPage && members && members.length && members.forEach) {
130
+ members = members.filter(function(m) {
131
+ return m.longname && m.longname.indexOf('module:') !== 0;
132
+ });
133
+ }
134
+ if (members && members.length && members.forEach) {
135
+ ?>
136
+ <h3 class="subsection-title">Members</h3>
137
+
138
+ <?js members.forEach(function(p) { ?>
139
+ <?js= self.partial('members.tmpl', p) ?>
140
+ <?js }); ?>
141
+ <?js } ?>
142
+
143
+ <?js
144
+ var methods = self.find({kind: 'function', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
145
+ if (methods && methods.length && methods.forEach) {
146
+ ?>
147
+ <h3 class="subsection-title">Methods</h3>
148
+
149
+ <?js methods.forEach(function(m) { ?>
150
+ <?js= self.partial('method.tmpl', m) ?>
151
+ <?js }); ?>
152
+ <?js } ?>
153
+
154
+ <?js
155
+ var typedefs = self.find({kind: 'typedef', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
156
+ if (typedefs && typedefs.length && typedefs.forEach) {
157
+ ?>
158
+ <h3 class="subsection-title">Type Definitions</h3>
159
+
160
+ <?js typedefs.forEach(function(e) {
161
+ if (e.signature) {
162
+ ?>
163
+ <?js= self.partial('method.tmpl', e) ?>
164
+ <?js
165
+ }
166
+ else {
167
+ ?>
168
+ <?js= self.partial('members.tmpl', e) ?>
169
+ <?js
170
+ }
171
+ }); ?>
172
+ <?js } ?>
173
+
174
+ <?js
175
+ var events = self.find({kind: 'event', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
176
+ if (events && events.length && events.forEach) {
177
+ ?>
178
+ <h3 class="subsection-title">Events</h3>
179
+
180
+ <?js events.forEach(function(e) { ?>
181
+ <?js= self.partial('method.tmpl', e) ?>
182
+ <?js }); ?>
183
+ <?js } ?>
184
+ </article>
185
+
186
+ </section>
187
+ <?js } ?>
188
+
189
+ <?js }); ?>