clean-jsdoc-theme 4.3.0 → 5.0.0-alpha.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.
- package/README.md +117 -625
- package/dist/publish.d.mts +218 -0
- package/dist/publish.d.ts +218 -0
- package/dist/publish.js +641 -0
- package/dist/publish.js.map +1 -0
- package/dist/publish.mjs +605 -0
- package/dist/publish.mjs.map +1 -0
- package/package.json +65 -55
- package/.eslintignore +0 -5
- package/.eslintrc.js +0 -3
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -43
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -27
- package/.github/dependabot.yml +0 -9
- package/.github/pull_request_template.md +0 -16
- package/.github/workflows/codeql.yml +0 -72
- package/.github/workflows/greetings.yml +0 -16
- package/.prettierignore +0 -2
- package/.prettierrc +0 -5
- package/.stylelintignore +0 -4
- package/.stylelintrc +0 -18
- package/.travis.yml +0 -30
- package/CHANGELOG.md +0 -260
- package/CODE_OF_CONDUCT.md +0 -76
- package/CODE_OF_CONDUCT_HINDI.md +0 -61
- package/CONTRIBUTING.md +0 -36
- package/LICENSE +0 -21
- package/SECURITY.md +0 -21
- package/clean-jsdoc-theme-defaults.js +0 -37
- package/clean-jsdoc-theme-helper.js +0 -186
- package/css-property-order-fix.js +0 -56
- package/helpers/Environment.html +0 -3
- package/helpers/down-arrow.js +0 -9
- package/jsdoc-config.json +0 -102
- package/minify.js +0 -72
- package/publish.js +0 -1104
- package/static/fonts/Inconsolata-Regular.ttf +0 -0
- package/static/fonts/OpenSans-Regular.ttf +0 -0
- package/static/fonts/WorkSans-Bold.ttf +0 -0
- package/static/scripts/core.js +0 -726
- package/static/scripts/core.min.js +0 -23
- package/static/scripts/resize.js +0 -90
- package/static/scripts/search.js +0 -265
- package/static/scripts/search.min.js +0 -6
- package/static/scripts/third-party/Apache-License-2.0.txt +0 -202
- package/static/scripts/third-party/fuse.js +0 -9
- package/static/scripts/third-party/hljs-line-num-original.js +0 -369
- package/static/scripts/third-party/hljs-line-num.js +0 -1
- package/static/scripts/third-party/hljs-original.js +0 -5171
- package/static/scripts/third-party/hljs.js +0 -1
- package/static/scripts/third-party/popper.js +0 -5
- package/static/scripts/third-party/tippy.js +0 -1
- package/static/scripts/third-party/tocbot.js +0 -672
- package/static/scripts/third-party/tocbot.min.js +0 -1
- package/static/styles/clean-jsdoc-theme-base.css +0 -1159
- package/static/styles/clean-jsdoc-theme-dark.css +0 -412
- package/static/styles/clean-jsdoc-theme-light.css +0 -482
- package/static/styles/clean-jsdoc-theme-scrollbar.css +0 -30
- package/static/styles/clean-jsdoc-theme-without-scrollbar.min.css +0 -1
- package/static/styles/clean-jsdoc-theme.min.css +0 -1
- package/tmpl/augments.tmpl +0 -10
- package/tmpl/container.tmpl +0 -208
- package/tmpl/details.tmpl +0 -207
- package/tmpl/example.tmpl +0 -3
- package/tmpl/examples.tmpl +0 -48
- package/tmpl/exceptions.tmpl +0 -32
- package/tmpl/icons.tmpl +0 -73
- package/tmpl/include-target-script-and-styles.tmpl +0 -43
- package/tmpl/layout.tmpl +0 -167
- package/tmpl/mainpage.tmpl +0 -10
- package/tmpl/members.tmpl +0 -42
- package/tmpl/method.tmpl +0 -175
- package/tmpl/mobile-sidebar.tmpl +0 -21
- package/tmpl/navbar-actions.tmpl +0 -19
- package/tmpl/navbar-menu.tmpl +0 -25
- package/tmpl/navbar.tmpl +0 -14
- package/tmpl/params.tmpl +0 -131
- package/tmpl/properties.tmpl +0 -109
- package/tmpl/returns.tmpl +0 -19
- package/tmpl/search.tmpl +0 -17
- package/tmpl/sidebar-items.tmpl +0 -24
- package/tmpl/sidebar-title.tmpl +0 -8
- package/tmpl/sidebar.tmpl +0 -9
- package/tmpl/source.tmpl +0 -13
- package/tmpl/toc.tmpl +0 -4
- package/tmpl/tutorial.tmpl +0 -32
- package/tmpl/type.tmpl +0 -13
package/tmpl/properties.tmpl
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
<?js } ?>
|
package/tmpl/search.tmpl
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<div class="search-container" id="PkfLWpAbet" style="display: none">
|
|
2
|
-
<div class="wrapper" id="iCxFxjkHbP">
|
|
3
|
-
<button class="icon-button search-close-button" id="VjLlGakifb" aria-label='close search'>
|
|
4
|
-
<svg>
|
|
5
|
-
<use xlink:href="#close-icon"></use>
|
|
6
|
-
</svg>
|
|
7
|
-
|
|
8
|
-
</button>
|
|
9
|
-
<div class="search-box-c">
|
|
10
|
-
<svg><use xlink:href="#search-icon"></use></svg>
|
|
11
|
-
<input type="text" id="vpcKVYIppa" class="search-input" placeholder="Search..." autofocus>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="search-result-c" id="fWwVHRuDuN">
|
|
14
|
-
<span class="search-result-c-text">Type anything to view search result</span>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
package/tmpl/sidebar-items.tmpl
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<?js
|
|
2
|
-
var data = this.sidebar
|
|
3
|
-
|
|
4
|
-
if(Array.isArray(data.sections)) {
|
|
5
|
-
|
|
6
|
-
data.sections.forEach(function(section) {
|
|
7
|
-
if(section.items.length > 0) { ?>
|
|
8
|
-
|
|
9
|
-
<div class="sidebar-section-title with-arrow" data-isopen="false" id="<?js= section.id?>">
|
|
10
|
-
<div><?js= section.name ?></div>
|
|
11
|
-
<svg><use xlink:href="#down-icon"></use></svg>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="sidebar-section-children-container">
|
|
14
|
-
|
|
15
|
-
<?js
|
|
16
|
-
section.items.forEach(function(item) { ?>
|
|
17
|
-
<div class="sidebar-section-children">
|
|
18
|
-
<?js= item.anchor ?>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<?js }) ?>
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<?js }})}?>
|
package/tmpl/sidebar-title.tmpl
DELETED
package/tmpl/sidebar.tmpl
DELETED
package/tmpl/source.tmpl
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<?js
|
|
2
|
-
var data = obj;
|
|
3
|
-
?>
|
|
4
|
-
<section id="source-page" class="source-page">
|
|
5
|
-
<header>
|
|
6
|
-
<h1 id="title" class="has-anchor">
|
|
7
|
-
<?js= data.title ?>
|
|
8
|
-
</h1>
|
|
9
|
-
</header>
|
|
10
|
-
<article>
|
|
11
|
-
<pre class="prettyprint source lang-js"><code><?js= data.code ?></code></pre>
|
|
12
|
-
</article>
|
|
13
|
-
</section>
|
package/tmpl/toc.tmpl
DELETED
package/tmpl/tutorial.tmpl
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<section>
|
|
2
|
-
|
|
3
|
-
<header>
|
|
4
|
-
|
|
5
|
-
<h2><?js= header ?></h2>
|
|
6
|
-
</header>
|
|
7
|
-
|
|
8
|
-
<article>
|
|
9
|
-
<?js= content ?>
|
|
10
|
-
</article>
|
|
11
|
-
|
|
12
|
-
</section>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<?js= this.partial('include-target-script-and-styles.tmpl', filename) ?>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<?js if (children.length > 0) { ?>
|
|
19
|
-
<br><br>
|
|
20
|
-
|
|
21
|
-
<div class="child-tutorial-container">
|
|
22
|
-
<?js
|
|
23
|
-
var self = this;
|
|
24
|
-
children.forEach(function(t) {
|
|
25
|
-
let link = self.tutoriallink(t.name).replaceAll(/<a href=/g, "").replaceAll(/>.*/g,"")
|
|
26
|
-
?>
|
|
27
|
-
<a href=<?js= link ?> class="child-tutorial">
|
|
28
|
-
<?js= t.name ?>
|
|
29
|
-
</a>
|
|
30
|
-
<?js }); ?>
|
|
31
|
-
</div>
|
|
32
|
-
<?js } ?>
|
package/tmpl/type.tmpl
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<?js
|
|
2
|
-
var data = obj;
|
|
3
|
-
var self = this;
|
|
4
|
-
data.forEach(function(name, i) { ?>
|
|
5
|
-
<?js
|
|
6
|
-
var text = self.htmlsafe(name)
|
|
7
|
-
text = text.replace(/\|/g,'|<wbr>')
|
|
8
|
-
text = text.replace(/\./g,'.<wbr>')
|
|
9
|
-
var linkto = self.linkto(name, text)
|
|
10
|
-
?>
|
|
11
|
-
<span class="param-type"><?js= linkto ?></span>
|
|
12
|
-
<?js if (i < data.length-1) { ?>|<wbr><?js } ?>
|
|
13
|
-
<?js }); ?>
|