clean-jsdoc-theme 3.2.10 → 3.3.3

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 +216 -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 +546 -510
  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 +1197 -948
  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 -217
  30. package/static/scripts/resize.js +85 -85
  31. package/static/scripts/search.js +77 -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 +165 -171
  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
package/tmpl/method.tmpl CHANGED
@@ -1,140 +1,140 @@
1
- <?js
2
- var data = obj;
3
- var self = this;
4
- ?>
5
- <?js if (data.kind !== 'module') { ?>
6
- <?js if (data.kind === 'class' && data.classdesc) { ?>
7
- <h2>Constructor</h2>
8
- <?js } ?>
9
-
10
- <h4 class="name" id="<?js= id ?>">
11
- <a href="#<?js= id ?>">#</a>
12
- <?js= data.attribs + (kind === 'class' ? 'new ' : '') + name + (data.signature || '') ?>
13
- </h4>
14
-
15
- <?js if (data.summary) { ?>
16
- <p class="summary"><?js= summary ?></p>
17
- <?js } ?>
18
- <?js } ?>
19
-
20
- <?js if (data.kind !== 'module' && data.description) { ?>
21
- <div class="description">
22
- <?js= data.description ?>
23
- </div>
24
- <?js } ?>
25
-
26
- <?js if (data.augments && data.alias && data.alias.indexOf('module:') === 0) { ?>
27
- <div class="method-member-container mt-20">
28
- <strong>Extends:</strong>
29
- <?js= self.partial('augments.tmpl', data) ?>
30
- </div>
31
- <?js } ?>
32
-
33
- <?js if (kind === 'event' && data.type && data.type.names) {?>
34
- <div class="method-member-container mt-20">
35
- <strong>Type:</strong>
36
- <ul>
37
- <li>
38
- <?js= self.partial('type.tmpl', data.type.names) ?>
39
- </li>
40
- </ul>
41
- </div>
42
- <?js } ?>
43
-
44
- <?js if (data['this']) { ?>
45
- <div class="method-member-container mt-20">
46
- <strong>This:</strong>
47
- <ul><li><?js= this.linkto(data['this'], data['this']) ?></li></ul>
48
- </div>
49
- <?js } ?>
50
-
51
- <?js if (data.params && params.length) { ?>
52
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
53
- <strong>Parameters:</strong>
54
- <?js= this.partial('params.tmpl', params) ?>
55
- </div>
56
- <?js } ?>
57
-
58
- <?js= this.partial('details.tmpl', data) ?>
59
-
60
- <?js if (data.kind !== 'module' && data.requires && data.requires.length) { ?>
61
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
62
- <strong>Requires:</strong>
63
- <ul>
64
- <?js data.requires.forEach(function(r) { ?>
65
- <li><?js= self.linkto(r) ?></li>
66
- <?js }); ?>
67
- </ul>
68
- </div>
69
- <?js } ?>
70
-
71
- <?js if (data.fires && fires.length) { ?>
72
- <div class="method-member-container flex w-100 overflow-auto mt-20">
73
- <strong>Fires:</strong>
74
- <ul>
75
- <?js fires.forEach(function(f) { ?>
76
- <li><?js= self.linkto(f) ?></li>
77
- <?js }); ?>
78
- </ul>
79
- </div>
80
- <?js } ?>
81
-
82
- <?js if (data.listens && listens.length) { ?>
83
- <div class="method-member-container flex w-100 overflow-auto mt-20">
84
- <strong>Listens to Events:</strong>
85
- <ul>
86
- <?js listens.forEach(function(f) { ?>
87
- <li><?js= self.linkto(f) ?></li>
88
- <?js }); ?>
89
- </ul>
90
- </div>
91
- <?js } ?>
92
-
93
- <?js if (data.listeners && listeners.length) { ?>
94
- <div class="method-member-container mt-20">
95
- <strong>Listeners of This Event:</strong>
96
- <ul>
97
- <?js listeners.forEach(function(f) { ?>
98
- <li><?js= self.linkto(f) ?></li>
99
- <?js }); ?>
100
- </ul>
101
- </div>
102
- <?js } ?>
103
-
104
- <?js if (data.exceptions && exceptions.length) { ?>
105
- <div class="method-member-container mt-20">
106
- <strong>Throws:</strong>
107
- <?js if (exceptions.length > 1) { ?>
108
- <ul>
109
- <?js exceptions.forEach(function(r) { ?>
110
- <li><?js= self.partial('exceptions.tmpl', r) ?></li>
111
- <?js }); ?>
112
- </ul>
113
- <?js } else { exceptions.forEach(function(r) { ?>
114
- <?js= self.partial('exceptions.tmpl', r) ?>
115
- <?js });} ?>
116
- </div>
117
- <?js } ?>
118
-
119
- <?js if (data.returns && returns.length) { ?>
120
- <div class="method-member-container mt-20">
121
- <strong>Returns:</strong>
122
- <?js if (returns.length > 1) { ?>
123
- <ul>
124
- <?js returns.forEach(function(r) { ?>
125
- <li><?js= self.partial('returns.tmpl', r) ?></li>
126
- <?js }); ?>
127
- </ul>
128
-
129
- <?js } else { returns.forEach(function(r) { ?>
130
- <?js= self.partial('returns.tmpl', r) ?>
131
- <?js });} ?>
132
- </div>
133
- <?js } ?>
134
-
135
- <?js if (data.examples && examples.length) { ?>
136
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
137
- <strong>Example<?js= examples.length > 1? 's':'' ?></strong>
138
- <?js= this.partial('examples.tmpl', examples) ?>
139
- </div>
140
- <?js } ?>
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ ?>
5
+ <?js if (data.kind !== 'module') { ?>
6
+ <?js if (data.kind === 'class' && data.classdesc) { ?>
7
+ <h2>Constructor</h2>
8
+ <?js } ?>
9
+
10
+ <h4 class="name" id="<?js= id ?>">
11
+ <a href="#<?js= id ?>">#</a>
12
+ <?js= data.attribs + (kind === 'class' ? 'new ' : '') + name + (data.signature || '') ?>
13
+ </h4>
14
+
15
+ <?js if (data.summary) { ?>
16
+ <p class="summary"><?js= summary ?></p>
17
+ <?js } ?>
18
+ <?js } ?>
19
+
20
+ <?js if (data.kind !== 'module' && data.description) { ?>
21
+ <div class="description">
22
+ <?js= data.description ?>
23
+ </div>
24
+ <?js } ?>
25
+
26
+ <?js if (data.augments && data.alias && data.alias.indexOf('module:') === 0) { ?>
27
+ <div class="method-member-container mt-20">
28
+ <strong>Extends:</strong>
29
+ <?js= self.partial('augments.tmpl', data) ?>
30
+ </div>
31
+ <?js } ?>
32
+
33
+ <?js if (kind === 'event' && data.type && data.type.names) {?>
34
+ <div class="method-member-container mt-20">
35
+ <strong>Type:</strong>
36
+ <ul>
37
+ <li>
38
+ <?js= self.partial('type.tmpl', data.type.names) ?>
39
+ </li>
40
+ </ul>
41
+ </div>
42
+ <?js } ?>
43
+
44
+ <?js if (data['this']) { ?>
45
+ <div class="method-member-container mt-20">
46
+ <strong>This:</strong>
47
+ <ul><li><?js= this.linkto(data['this'], data['this']) ?></li></ul>
48
+ </div>
49
+ <?js } ?>
50
+
51
+ <?js if (data.params && params.length) { ?>
52
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
53
+ <strong>Parameters:</strong>
54
+ <?js= this.partial('params.tmpl', params) ?>
55
+ </div>
56
+ <?js } ?>
57
+
58
+ <?js= this.partial('details.tmpl', data) ?>
59
+
60
+ <?js if (data.kind !== 'module' && data.requires && data.requires.length) { ?>
61
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
62
+ <strong>Requires:</strong>
63
+ <ul>
64
+ <?js data.requires.forEach(function(r) { ?>
65
+ <li><?js= self.linkto(r) ?></li>
66
+ <?js }); ?>
67
+ </ul>
68
+ </div>
69
+ <?js } ?>
70
+
71
+ <?js if (data.fires && fires.length) { ?>
72
+ <div class="method-member-container flex w-100 overflow-auto mt-20">
73
+ <strong>Fires:</strong>
74
+ <ul>
75
+ <?js fires.forEach(function(f) { ?>
76
+ <li><?js= self.linkto(f) ?></li>
77
+ <?js }); ?>
78
+ </ul>
79
+ </div>
80
+ <?js } ?>
81
+
82
+ <?js if (data.listens && listens.length) { ?>
83
+ <div class="method-member-container flex w-100 overflow-auto mt-20">
84
+ <strong>Listens to Events:</strong>
85
+ <ul>
86
+ <?js listens.forEach(function(f) { ?>
87
+ <li><?js= self.linkto(f) ?></li>
88
+ <?js }); ?>
89
+ </ul>
90
+ </div>
91
+ <?js } ?>
92
+
93
+ <?js if (data.listeners && listeners.length) { ?>
94
+ <div class="method-member-container mt-20">
95
+ <strong>Listeners of This Event:</strong>
96
+ <ul>
97
+ <?js listeners.forEach(function(f) { ?>
98
+ <li><?js= self.linkto(f) ?></li>
99
+ <?js }); ?>
100
+ </ul>
101
+ </div>
102
+ <?js } ?>
103
+
104
+ <?js if (data.exceptions && exceptions.length) { ?>
105
+ <div class="method-member-container mt-20">
106
+ <strong>Throws:</strong>
107
+ <?js if (exceptions.length > 1) { ?>
108
+ <ul>
109
+ <?js exceptions.forEach(function(r) { ?>
110
+ <li><?js= self.partial('exceptions.tmpl', r) ?></li>
111
+ <?js }); ?>
112
+ </ul>
113
+ <?js } else { exceptions.forEach(function(r) { ?>
114
+ <?js= self.partial('exceptions.tmpl', r) ?>
115
+ <?js });} ?>
116
+ </div>
117
+ <?js } ?>
118
+
119
+ <?js if (data.returns && returns.length) { ?>
120
+ <div class="method-member-container mt-20">
121
+ <strong>Returns:</strong>
122
+ <?js if (returns.length > 1) { ?>
123
+ <ul>
124
+ <?js returns.forEach(function(r) { ?>
125
+ <li><?js= self.partial('returns.tmpl', r) ?></li>
126
+ <?js }); ?>
127
+ </ul>
128
+
129
+ <?js } else { returns.forEach(function(r) { ?>
130
+ <?js= self.partial('returns.tmpl', r) ?>
131
+ <?js });} ?>
132
+ </div>
133
+ <?js } ?>
134
+
135
+ <?js if (data.examples && examples.length) { ?>
136
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
137
+ <strong>Example<?js= examples.length > 1? 's':'' ?></strong>
138
+ <?js= this.partial('examples.tmpl', examples) ?>
139
+ </div>
140
+ <?js } ?>
package/tmpl/params.tmpl CHANGED
@@ -1,124 +1,124 @@
1
- <?js
2
- var params = obj;
3
-
4
- /* sort subparams under their parent params (like opts.classname) */
5
- var parentParam = null;
6
- params.forEach(function(param, i) {
7
- var paramRegExp;
8
-
9
- if (!param) {
10
- return;
11
- }
12
-
13
- if (parentParam && parentParam.name && param.name) {
14
- paramRegExp = new RegExp('^(?:' + parentParam.name + '(?:\\[\\])*)\\.(.+)$');
15
-
16
- if ( paramRegExp.test(param.name) ) {
17
- param.name = RegExp.$1;
18
- parentParam.subparams = parentParam.subparams || [];
19
- parentParam.subparams.push(param);
20
- params[i] = null;
21
- }
22
- else {
23
- parentParam = param;
24
- }
25
- }
26
- else {
27
- parentParam = param;
28
- }
29
- });
30
-
31
- /* determine if we need extra columns, "attributes" and "default" */
32
- params.hasAttributes = false;
33
- params.hasDefault = false;
34
- params.hasName = false;
35
-
36
- params.forEach(function(param) {
37
- if (!param) { return; }
38
-
39
- if (param.optional || param.nullable || param.variable) {
40
- params.hasAttributes = true;
41
- }
42
-
43
- if (param.name) {
44
- params.hasName = true;
45
- }
46
-
47
- if (typeof param.defaultvalue !== 'undefined') {
48
- params.hasDefault = true;
49
- }
50
- });
51
- ?>
52
-
53
- <table class="params">
54
- <thead>
55
- <tr>
56
- <?js if (params.hasName) {?>
57
- <th>Name</th>
58
- <?js } ?>
59
-
60
- <th>Type</th>
61
-
62
- <?js if (params.hasAttributes) {?>
63
- <th>Attributes</th>
64
- <?js } ?>
65
-
66
- <?js if (params.hasDefault) {?>
67
- <th>Default</th>
68
- <?js } ?>
69
-
70
- <th class="last">Description</th>
71
- </tr>
72
- </thead>
73
-
74
- <tbody>
75
- <?js
76
- var self = this;
77
- params.forEach(function(param) {
78
- if (!param) { return; }
79
- ?>
80
-
81
- <tr>
82
- <?js if (params.hasName) {?>
83
- <td class="name"><code><?js= param.name ?></code></td>
84
- <?js } ?>
85
-
86
- <td class="type">
87
- <?js if (param.type && param.type.names) {?>
88
- <?js= self.partial('type.tmpl', param.type.names) ?>
89
- <?js } ?>
90
- </td>
91
-
92
- <?js if (params.hasAttributes) {?>
93
- <td class="attributes">
94
- <?js if (param.optional) { ?>
95
- &lt;optional><br>
96
- <?js } ?>
97
-
98
- <?js if (param.nullable) { ?>
99
- &lt;nullable><br>
100
- <?js } ?>
101
-
102
- <?js if (param.variable) { ?>
103
- &lt;repeatable><br>
104
- <?js } ?>
105
- </td>
106
- <?js } ?>
107
-
108
- <?js if (params.hasDefault) {?>
109
- <td class="default">
110
- <?js if (typeof param.defaultvalue !== 'undefined') { ?>
111
- <?js= self.htmlsafe(param.defaultvalue) ?>
112
- <?js } ?>
113
- </td>
114
- <?js } ?>
115
-
116
- <td class="description last"><?js= param.description ?><?js if (param.subparams) { ?>
117
- <h6>Properties</h6>
118
- <?js= self.partial('params.tmpl', param.subparams) ?>
119
- <?js } ?></td>
120
- </tr>
121
-
122
- <?js }); ?>
123
- </tbody>
124
- </table>
1
+ <?js
2
+ var params = obj;
3
+
4
+ /* sort subparams under their parent params (like opts.classname) */
5
+ var parentParam = null;
6
+ params.forEach(function(param, i) {
7
+ var paramRegExp;
8
+
9
+ if (!param) {
10
+ return;
11
+ }
12
+
13
+ if (parentParam && parentParam.name && param.name) {
14
+ paramRegExp = new RegExp('^(?:' + parentParam.name + '(?:\\[\\])*)\\.(.+)$');
15
+
16
+ if ( paramRegExp.test(param.name) ) {
17
+ param.name = RegExp.$1;
18
+ parentParam.subparams = parentParam.subparams || [];
19
+ parentParam.subparams.push(param);
20
+ params[i] = null;
21
+ }
22
+ else {
23
+ parentParam = param;
24
+ }
25
+ }
26
+ else {
27
+ parentParam = param;
28
+ }
29
+ });
30
+
31
+ /* determine if we need extra columns, "attributes" and "default" */
32
+ params.hasAttributes = false;
33
+ params.hasDefault = false;
34
+ params.hasName = false;
35
+
36
+ params.forEach(function(param) {
37
+ if (!param) { return; }
38
+
39
+ if (param.optional || param.nullable || param.variable) {
40
+ params.hasAttributes = true;
41
+ }
42
+
43
+ if (param.name) {
44
+ params.hasName = true;
45
+ }
46
+
47
+ if (typeof param.defaultvalue !== 'undefined') {
48
+ params.hasDefault = true;
49
+ }
50
+ });
51
+ ?>
52
+
53
+ <table class="params">
54
+ <thead>
55
+ <tr>
56
+ <?js if (params.hasName) {?>
57
+ <th>Name</th>
58
+ <?js } ?>
59
+
60
+ <th>Type</th>
61
+
62
+ <?js if (params.hasAttributes) {?>
63
+ <th>Attributes</th>
64
+ <?js } ?>
65
+
66
+ <?js if (params.hasDefault) {?>
67
+ <th>Default</th>
68
+ <?js } ?>
69
+
70
+ <th class="last">Description</th>
71
+ </tr>
72
+ </thead>
73
+
74
+ <tbody>
75
+ <?js
76
+ var self = this;
77
+ params.forEach(function(param) {
78
+ if (!param) { return; }
79
+ ?>
80
+
81
+ <tr>
82
+ <?js if (params.hasName) {?>
83
+ <td class="name"><code><?js= param.name ?></code></td>
84
+ <?js } ?>
85
+
86
+ <td class="type">
87
+ <?js if (param.type && param.type.names) {?>
88
+ <?js= self.partial('type.tmpl', param.type.names) ?>
89
+ <?js } ?>
90
+ </td>
91
+
92
+ <?js if (params.hasAttributes) {?>
93
+ <td class="attributes">
94
+ <?js if (param.optional) { ?>
95
+ &lt;optional><br>
96
+ <?js } ?>
97
+
98
+ <?js if (param.nullable) { ?>
99
+ &lt;nullable><br>
100
+ <?js } ?>
101
+
102
+ <?js if (param.variable) { ?>
103
+ &lt;repeatable><br>
104
+ <?js } ?>
105
+ </td>
106
+ <?js } ?>
107
+
108
+ <?js if (params.hasDefault) {?>
109
+ <td class="default">
110
+ <?js if (typeof param.defaultvalue !== 'undefined') { ?>
111
+ <?js= self.htmlsafe(param.defaultvalue) ?>
112
+ <?js } ?>
113
+ </td>
114
+ <?js } ?>
115
+
116
+ <td class="description last"><?js= param.description ?><?js if (param.subparams) { ?>
117
+ <h6>Properties</h6>
118
+ <?js= self.partial('params.tmpl', param.subparams) ?>
119
+ <?js } ?></td>
120
+ </tr>
121
+
122
+ <?js }); ?>
123
+ </tbody>
124
+ </table>