clean-jsdoc-theme 4.1.7 → 4.1.8

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