clean-jsdoc-theme 3.2.9 → 3.3.2
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.
- package/.eslintignore +4 -4
- package/.eslintrc.js +3 -3
- package/.github/ISSUE_TEMPLATE/bug_report.md +43 -43
- package/.github/ISSUE_TEMPLATE/feature_request.md +27 -27
- package/.github/pull_request_template.md +16 -16
- package/.github/workflows/codeql-analysis.yml +67 -67
- package/.prettierignore +2 -2
- package/.prettierrc +5 -5
- package/.stylelintignore +3 -3
- package/.stylelintrc +23 -23
- package/.travis.yml +30 -30
- package/CHANGELOG.md +216 -191
- package/CODE_OF_CONDUCT.md +76 -76
- package/CODE_OF_CONDUCT_HINDI.md +46 -46
- package/CONTRIBUTING.md +24 -24
- package/LICENSE +21 -21
- package/README.md +546 -510
- package/SECURITY.md +21 -21
- package/helpers/down-arrow.js +9 -9
- package/jsdoc-config.json +60 -59
- package/package.json +46 -46
- package/publish.js +1196 -948
- package/static/fonts/Montserrat-Regular.ttf +0 -0
- package/static/fonts/OFL-hind.txt +0 -0
- package/static/fonts/OFL-montserrat.txt +0 -0
- package/static/scripts/fix-code-block.js +53 -53
- package/static/scripts/fix-navbar.js +25 -25
- package/static/scripts/linenumber.js +25 -25
- package/static/scripts/misc.js +217 -217
- package/static/scripts/resize.js +85 -85
- package/static/scripts/search.js +83 -83
- package/static/scripts/third-party/Apache-License-2.0.txt +202 -202
- package/static/scripts/third-party/fuse.js +8 -8
- package/static/scripts/third-party/lang-css.js +2 -2
- package/static/scripts/third-party/prettify.js +28 -28
- package/static/styles/clean-jsdoc-theme-base.css +393 -393
- package/static/styles/clean-jsdoc-theme-dark.css +324 -324
- package/static/styles/clean-jsdoc-theme-light.css +319 -319
- package/static/styles/reset.css +351 -346
- package/static/styles/third-party/ionicons.min.css +11 -11
- package/static/styles/third-party/prettify-jsdoc.css +111 -111
- package/static/styles/third-party/prettify-tomorrow.css +5 -5
- package/tmpl/augments.tmpl +10 -10
- package/tmpl/container.tmpl +189 -189
- package/tmpl/details.tmpl +208 -209
- package/tmpl/example.tmpl +3 -3
- package/tmpl/examples.tmpl +38 -38
- package/tmpl/exceptions.tmpl +32 -32
- package/tmpl/icons.tmpl +34 -34
- package/tmpl/layout.tmpl +165 -171
- package/tmpl/mainpage.tmpl +10 -10
- package/tmpl/members.tmpl +43 -43
- package/tmpl/method.tmpl +140 -140
- package/tmpl/params.tmpl +124 -124
- package/tmpl/properties.tmpl +109 -109
- package/tmpl/returns.tmpl +18 -18
- package/tmpl/source.tmpl +7 -7
- package/tmpl/tutorial.tmpl +19 -19
- package/tmpl/type.tmpl +6 -6
package/tmpl/properties.tmpl
CHANGED
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
<?js
|
|
2
|
-
var data = obj;
|
|
3
|
-
var props = data.subprops || data.properties;
|
|
4
|
-
|
|
5
|
-
/* sort subprops under their parent props (like opts.classname) */
|
|
6
|
-
var parentProp = null;
|
|
7
|
-
props.forEach(function(prop, i) {
|
|
8
|
-
if (!prop) { return; }
|
|
9
|
-
if ( parentProp && prop.name && prop.name.indexOf(parentProp.name + '.') === 0 ) {
|
|
10
|
-
prop.name = prop.name.substr(parentProp.name.length+1);
|
|
11
|
-
parentProp.subprops = parentProp.subprops || [];
|
|
12
|
-
parentProp.subprops.push(prop);
|
|
13
|
-
props[i] = null;
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
parentProp = prop;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
/* determine if we need extra columns, "attributes" and "default" */
|
|
21
|
-
props.hasAttributes = false;
|
|
22
|
-
props.hasDefault = false;
|
|
23
|
-
props.hasName = false;
|
|
24
|
-
|
|
25
|
-
props.forEach(function(prop) {
|
|
26
|
-
if (!prop) { return; }
|
|
27
|
-
|
|
28
|
-
if (prop.optional || prop.nullable) {
|
|
29
|
-
props.hasAttributes = true;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
if (prop.name) {
|
|
33
|
-
props.hasName = true;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (typeof prop.defaultvalue !== 'undefined' && !data.isEnum) {
|
|
37
|
-
props.hasDefault = true;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
?>
|
|
41
|
-
<div class="allow-overflow">
|
|
42
|
-
<table class="props">
|
|
43
|
-
<thead>
|
|
44
|
-
<tr>
|
|
45
|
-
<?js if (props.hasName) {?>
|
|
46
|
-
<th>Name</th>
|
|
47
|
-
<?js } ?>
|
|
48
|
-
|
|
49
|
-
<th>Type</th>
|
|
50
|
-
|
|
51
|
-
<?js if (props.hasAttributes) {?>
|
|
52
|
-
<th>Attributes</th>
|
|
53
|
-
<?js } ?>
|
|
54
|
-
|
|
55
|
-
<?js if (props.hasDefault) {?>
|
|
56
|
-
<th>Default</th>
|
|
57
|
-
<?js } ?>
|
|
58
|
-
|
|
59
|
-
<th class="last">Description</th>
|
|
60
|
-
</tr>
|
|
61
|
-
</thead>
|
|
62
|
-
|
|
63
|
-
<tbody>
|
|
64
|
-
<?js
|
|
65
|
-
var self = this;
|
|
66
|
-
props.forEach(function(prop) {
|
|
67
|
-
if (!prop) { return; }
|
|
68
|
-
?>
|
|
69
|
-
|
|
70
|
-
<tr>
|
|
71
|
-
<?js if (props.hasName) {?>
|
|
72
|
-
<td class="name"><code><?js= prop.name ?></code></td>
|
|
73
|
-
<?js } ?>
|
|
74
|
-
|
|
75
|
-
<td class="type">
|
|
76
|
-
<?js if (prop.type && prop.type.names) {?>
|
|
77
|
-
<?js= self.partial('type.tmpl', prop.type.names) ?>
|
|
78
|
-
<?js } ?>
|
|
79
|
-
</td>
|
|
80
|
-
|
|
81
|
-
<?js if (props.hasAttributes) {?>
|
|
82
|
-
<td class="attributes">
|
|
83
|
-
<?js if (prop.optional) { ?>
|
|
84
|
-
<optional><br>
|
|
85
|
-
<?js } ?>
|
|
86
|
-
|
|
87
|
-
<?js if (prop.nullable) { ?>
|
|
88
|
-
<nullable><br>
|
|
89
|
-
<?js } ?>
|
|
90
|
-
</td>
|
|
91
|
-
<?js } ?>
|
|
92
|
-
|
|
93
|
-
<?js if (props.hasDefault) {?>
|
|
94
|
-
<td class="default">
|
|
95
|
-
<?js if (typeof prop.defaultvalue !== 'undefined') { ?>
|
|
96
|
-
<?js= self.htmlsafe(prop.defaultvalue) ?>
|
|
97
|
-
<?js } ?>
|
|
98
|
-
</td>
|
|
99
|
-
<?js } ?>
|
|
100
|
-
|
|
101
|
-
<td class="description last"><?js= prop.description ?><?js if (prop.subprops) { ?>
|
|
102
|
-
<h6>Properties</h6><?js= self.partial('properties.tmpl', prop) ?>
|
|
103
|
-
<?js } ?></td>
|
|
104
|
-
</tr>
|
|
105
|
-
|
|
106
|
-
<?js }); ?>
|
|
107
|
-
</tbody>
|
|
108
|
-
</table>
|
|
109
|
-
</div>
|
|
1
|
+
<?js
|
|
2
|
+
var data = obj;
|
|
3
|
+
var props = data.subprops || data.properties;
|
|
4
|
+
|
|
5
|
+
/* sort subprops under their parent props (like opts.classname) */
|
|
6
|
+
var parentProp = null;
|
|
7
|
+
props.forEach(function(prop, i) {
|
|
8
|
+
if (!prop) { return; }
|
|
9
|
+
if ( parentProp && prop.name && prop.name.indexOf(parentProp.name + '.') === 0 ) {
|
|
10
|
+
prop.name = prop.name.substr(parentProp.name.length+1);
|
|
11
|
+
parentProp.subprops = parentProp.subprops || [];
|
|
12
|
+
parentProp.subprops.push(prop);
|
|
13
|
+
props[i] = null;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
parentProp = prop;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
/* determine if we need extra columns, "attributes" and "default" */
|
|
21
|
+
props.hasAttributes = false;
|
|
22
|
+
props.hasDefault = false;
|
|
23
|
+
props.hasName = false;
|
|
24
|
+
|
|
25
|
+
props.forEach(function(prop) {
|
|
26
|
+
if (!prop) { return; }
|
|
27
|
+
|
|
28
|
+
if (prop.optional || prop.nullable) {
|
|
29
|
+
props.hasAttributes = true;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (prop.name) {
|
|
33
|
+
props.hasName = true;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (typeof prop.defaultvalue !== 'undefined' && !data.isEnum) {
|
|
37
|
+
props.hasDefault = true;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
?>
|
|
41
|
+
<div class="allow-overflow">
|
|
42
|
+
<table class="props">
|
|
43
|
+
<thead>
|
|
44
|
+
<tr>
|
|
45
|
+
<?js if (props.hasName) {?>
|
|
46
|
+
<th>Name</th>
|
|
47
|
+
<?js } ?>
|
|
48
|
+
|
|
49
|
+
<th>Type</th>
|
|
50
|
+
|
|
51
|
+
<?js if (props.hasAttributes) {?>
|
|
52
|
+
<th>Attributes</th>
|
|
53
|
+
<?js } ?>
|
|
54
|
+
|
|
55
|
+
<?js if (props.hasDefault) {?>
|
|
56
|
+
<th>Default</th>
|
|
57
|
+
<?js } ?>
|
|
58
|
+
|
|
59
|
+
<th class="last">Description</th>
|
|
60
|
+
</tr>
|
|
61
|
+
</thead>
|
|
62
|
+
|
|
63
|
+
<tbody>
|
|
64
|
+
<?js
|
|
65
|
+
var self = this;
|
|
66
|
+
props.forEach(function(prop) {
|
|
67
|
+
if (!prop) { return; }
|
|
68
|
+
?>
|
|
69
|
+
|
|
70
|
+
<tr>
|
|
71
|
+
<?js if (props.hasName) {?>
|
|
72
|
+
<td class="name"><code><?js= prop.name ?></code></td>
|
|
73
|
+
<?js } ?>
|
|
74
|
+
|
|
75
|
+
<td class="type">
|
|
76
|
+
<?js if (prop.type && prop.type.names) {?>
|
|
77
|
+
<?js= self.partial('type.tmpl', prop.type.names) ?>
|
|
78
|
+
<?js } ?>
|
|
79
|
+
</td>
|
|
80
|
+
|
|
81
|
+
<?js if (props.hasAttributes) {?>
|
|
82
|
+
<td class="attributes">
|
|
83
|
+
<?js if (prop.optional) { ?>
|
|
84
|
+
<optional><br>
|
|
85
|
+
<?js } ?>
|
|
86
|
+
|
|
87
|
+
<?js if (prop.nullable) { ?>
|
|
88
|
+
<nullable><br>
|
|
89
|
+
<?js } ?>
|
|
90
|
+
</td>
|
|
91
|
+
<?js } ?>
|
|
92
|
+
|
|
93
|
+
<?js if (props.hasDefault) {?>
|
|
94
|
+
<td class="default">
|
|
95
|
+
<?js if (typeof prop.defaultvalue !== 'undefined') { ?>
|
|
96
|
+
<?js= self.htmlsafe(prop.defaultvalue) ?>
|
|
97
|
+
<?js } ?>
|
|
98
|
+
</td>
|
|
99
|
+
<?js } ?>
|
|
100
|
+
|
|
101
|
+
<td class="description last"><?js= prop.description ?><?js if (prop.subprops) { ?>
|
|
102
|
+
<h6>Properties</h6><?js= self.partial('properties.tmpl', prop) ?>
|
|
103
|
+
<?js } ?></td>
|
|
104
|
+
</tr>
|
|
105
|
+
|
|
106
|
+
<?js }); ?>
|
|
107
|
+
</tbody>
|
|
108
|
+
</table>
|
|
109
|
+
</div>
|
package/tmpl/returns.tmpl
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
<?js
|
|
2
|
-
var data = obj || {};
|
|
3
|
-
if (data.description) {
|
|
4
|
-
?>
|
|
5
|
-
<div class="param-desc">
|
|
6
|
-
<?js= description ?>
|
|
7
|
-
</div>
|
|
8
|
-
<?js } ?>
|
|
9
|
-
|
|
10
|
-
<?js if (data.type && data.type.names) {?>
|
|
11
|
-
<dl class="param-type">
|
|
12
|
-
<dt>
|
|
13
|
-
Type
|
|
14
|
-
</dt>
|
|
15
|
-
<dd>
|
|
16
|
-
<?js= this.partial('type.tmpl', data.type.names) ?>
|
|
17
|
-
</dd>
|
|
18
|
-
</dl>
|
|
1
|
+
<?js
|
|
2
|
+
var data = obj || {};
|
|
3
|
+
if (data.description) {
|
|
4
|
+
?>
|
|
5
|
+
<div class="param-desc">
|
|
6
|
+
<?js= description ?>
|
|
7
|
+
</div>
|
|
8
|
+
<?js } ?>
|
|
9
|
+
|
|
10
|
+
<?js if (data.type && data.type.names) {?>
|
|
11
|
+
<dl class="param-type">
|
|
12
|
+
<dt>
|
|
13
|
+
Type
|
|
14
|
+
</dt>
|
|
15
|
+
<dd>
|
|
16
|
+
<?js= this.partial('type.tmpl', data.type.names) ?>
|
|
17
|
+
</dd>
|
|
18
|
+
</dl>
|
|
19
19
|
<?js } ?>
|
package/tmpl/source.tmpl
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<?js
|
|
2
|
-
var data = obj;
|
|
3
|
-
?>
|
|
4
|
-
<section>
|
|
5
|
-
<article>
|
|
6
|
-
<pre class="prettyprint source linenums"><code><?js= data.code ?></code></pre>
|
|
7
|
-
</article>
|
|
1
|
+
<?js
|
|
2
|
+
var data = obj;
|
|
3
|
+
?>
|
|
4
|
+
<section>
|
|
5
|
+
<article>
|
|
6
|
+
<pre class="prettyprint source linenums"><code><?js= data.code ?></code></pre>
|
|
7
|
+
</article>
|
|
8
8
|
</section>
|
package/tmpl/tutorial.tmpl
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
<section>
|
|
2
|
-
|
|
3
|
-
<header>
|
|
4
|
-
<?js if (children.length > 0) { ?>
|
|
5
|
-
<ul><?js
|
|
6
|
-
var self = this;
|
|
7
|
-
children.forEach(function(t) { ?>
|
|
8
|
-
<li><?js= self.tutoriallink(t.name) ?></li>
|
|
9
|
-
<?js }); ?></ul>
|
|
10
|
-
<?js } ?>
|
|
11
|
-
|
|
12
|
-
<h2><?js= header ?></h2>
|
|
13
|
-
</header>
|
|
14
|
-
|
|
15
|
-
<article>
|
|
16
|
-
<?js= content ?>
|
|
17
|
-
</article>
|
|
18
|
-
|
|
19
|
-
</section>
|
|
1
|
+
<section>
|
|
2
|
+
|
|
3
|
+
<header>
|
|
4
|
+
<?js if (children.length > 0) { ?>
|
|
5
|
+
<ul><?js
|
|
6
|
+
var self = this;
|
|
7
|
+
children.forEach(function(t) { ?>
|
|
8
|
+
<li><?js= self.tutoriallink(t.name) ?></li>
|
|
9
|
+
<?js }); ?></ul>
|
|
10
|
+
<?js } ?>
|
|
11
|
+
|
|
12
|
+
<h2><?js= header ?></h2>
|
|
13
|
+
</header>
|
|
14
|
+
|
|
15
|
+
<article>
|
|
16
|
+
<?js= content ?>
|
|
17
|
+
</article>
|
|
18
|
+
|
|
19
|
+
</section>
|
package/tmpl/type.tmpl
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<?js
|
|
2
|
-
var data = obj;
|
|
3
|
-
var self = this;
|
|
4
|
-
data.forEach(function(name, i) { ?>
|
|
5
|
-
<span class="param-type"><?js= self.linkto(name, self.htmlsafe(name)) ?></span>
|
|
6
|
-
<?js if (i < data.length-1) { ?>|<?js } ?>
|
|
1
|
+
<?js
|
|
2
|
+
var data = obj;
|
|
3
|
+
var self = this;
|
|
4
|
+
data.forEach(function(name, i) { ?>
|
|
5
|
+
<span class="param-type"><?js= self.linkto(name, self.htmlsafe(name)) ?></span>
|
|
6
|
+
<?js if (i < data.length-1) { ?>|<?js } ?>
|
|
7
7
|
<?js }); ?>
|