clean-jsdoc-theme 4.3.2 → 5.0.0-alpha.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.
Files changed (86) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +82 -625
  3. package/dist/publish.d.mts +287 -0
  4. package/dist/publish.d.ts +287 -0
  5. package/dist/publish.js +819 -0
  6. package/dist/publish.js.map +1 -0
  7. package/dist/publish.mjs +779 -0
  8. package/dist/publish.mjs.map +1 -0
  9. package/package.json +66 -55
  10. package/.eslintignore +0 -5
  11. package/.eslintrc.js +0 -3
  12. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -43
  13. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -27
  14. package/.github/dependabot.yml +0 -9
  15. package/.github/pull_request_template.md +0 -16
  16. package/.github/workflows/codeql.yml +0 -72
  17. package/.github/workflows/greetings.yml +0 -16
  18. package/.prettierignore +0 -2
  19. package/.prettierrc +0 -5
  20. package/.stylelintignore +0 -4
  21. package/.stylelintrc +0 -18
  22. package/.travis.yml +0 -30
  23. package/CHANGELOG.md +0 -260
  24. package/CODE_OF_CONDUCT.md +0 -76
  25. package/CODE_OF_CONDUCT_HINDI.md +0 -61
  26. package/CONTRIBUTING.md +0 -36
  27. package/SECURITY.md +0 -21
  28. package/clean-jsdoc-theme-defaults.js +0 -37
  29. package/clean-jsdoc-theme-helper.js +0 -186
  30. package/css-property-order-fix.js +0 -56
  31. package/helpers/Environment.html +0 -3
  32. package/helpers/down-arrow.js +0 -9
  33. package/jsdoc-config.json +0 -102
  34. package/minify.js +0 -72
  35. package/publish.js +0 -1110
  36. package/static/fonts/Inconsolata-Regular.ttf +0 -0
  37. package/static/fonts/OpenSans-Regular.ttf +0 -0
  38. package/static/fonts/WorkSans-Bold.ttf +0 -0
  39. package/static/scripts/core.js +0 -726
  40. package/static/scripts/core.min.js +0 -23
  41. package/static/scripts/resize.js +0 -90
  42. package/static/scripts/search.js +0 -265
  43. package/static/scripts/search.min.js +0 -6
  44. package/static/scripts/third-party/Apache-License-2.0.txt +0 -202
  45. package/static/scripts/third-party/fuse.js +0 -9
  46. package/static/scripts/third-party/hljs-line-num-original.js +0 -369
  47. package/static/scripts/third-party/hljs-line-num.js +0 -1
  48. package/static/scripts/third-party/hljs-original.js +0 -5171
  49. package/static/scripts/third-party/hljs.js +0 -1
  50. package/static/scripts/third-party/popper.js +0 -5
  51. package/static/scripts/third-party/tippy.js +0 -1
  52. package/static/scripts/third-party/tocbot.js +0 -672
  53. package/static/scripts/third-party/tocbot.min.js +0 -1
  54. package/static/styles/clean-jsdoc-theme-base.css +0 -1159
  55. package/static/styles/clean-jsdoc-theme-dark.css +0 -412
  56. package/static/styles/clean-jsdoc-theme-light.css +0 -482
  57. package/static/styles/clean-jsdoc-theme-scrollbar.css +0 -30
  58. package/static/styles/clean-jsdoc-theme-without-scrollbar.min.css +0 -1
  59. package/static/styles/clean-jsdoc-theme.min.css +0 -1
  60. package/tmpl/augments.tmpl +0 -10
  61. package/tmpl/container.tmpl +0 -208
  62. package/tmpl/details.tmpl +0 -207
  63. package/tmpl/example.tmpl +0 -3
  64. package/tmpl/examples.tmpl +0 -48
  65. package/tmpl/exceptions.tmpl +0 -32
  66. package/tmpl/icons.tmpl +0 -73
  67. package/tmpl/include-target-script-and-styles.tmpl +0 -43
  68. package/tmpl/layout.tmpl +0 -167
  69. package/tmpl/mainpage.tmpl +0 -10
  70. package/tmpl/members.tmpl +0 -42
  71. package/tmpl/method.tmpl +0 -175
  72. package/tmpl/mobile-sidebar.tmpl +0 -21
  73. package/tmpl/navbar-actions.tmpl +0 -19
  74. package/tmpl/navbar-menu.tmpl +0 -25
  75. package/tmpl/navbar.tmpl +0 -14
  76. package/tmpl/params.tmpl +0 -131
  77. package/tmpl/properties.tmpl +0 -109
  78. package/tmpl/returns.tmpl +0 -19
  79. package/tmpl/search.tmpl +0 -17
  80. package/tmpl/sidebar-items.tmpl +0 -24
  81. package/tmpl/sidebar-title.tmpl +0 -8
  82. package/tmpl/sidebar.tmpl +0 -9
  83. package/tmpl/source.tmpl +0 -13
  84. package/tmpl/toc.tmpl +0 -4
  85. package/tmpl/tutorial.tmpl +0 -32
  86. package/tmpl/type.tmpl +0 -13
@@ -1,208 +0,0 @@
1
- <?js
2
- var self = this;
3
- var isGlobalPage;
4
- docs.forEach(function(doc, i) {
5
- ?>
6
-
7
- <?js
8
- // we only need to check this once
9
- if (typeof isGlobalPage === 'undefined') {
10
- isGlobalPage = (doc.kind === 'globalobj');
11
- }
12
- ?>
13
- <?js if (doc.kind === 'mainpage' || (doc.kind === 'package')) { ?>
14
- <?js= self.partial('mainpage.tmpl', doc) ?>
15
- <?js } else if (doc.kind === 'source') { ?>
16
- <?js= self.partial('source.tmpl', doc) ?>
17
- <?js } else { ?>
18
-
19
- <section>
20
-
21
- <?js if (((doc.ancestors && doc.ancestors.length) || doc.name || doc.variation) || (doc.kind === 'module' && doc.modules)) { ?>
22
- <header>
23
- <?js if (!doc.longname || doc.kind !== 'module') { ?>
24
- <?js if ((doc.ancestors && doc.ancestors.length) || doc.name || doc.variation) { ?>
25
- <h1 id="<?js= doc.name ?>-title" class="has-anchor">
26
- <?js if (doc.ancestors && doc.ancestors.length) { ?>
27
- <span class="ancestors"><?js= doc.ancestors.join('') ?></span>
28
- <?js } ?>
29
- <?js= doc.name ?>
30
- <?js if (doc.variation) { ?>
31
- <sup class="variation"><?js= doc.variation ?></sup>
32
- <?js } ?>
33
- </h1>
34
- <?js } ?>
35
- <?js if (doc.classdesc) { ?>
36
- <div class="class-description"><?js= doc.classdesc ?></div>
37
- <?js } ?>
38
- <?js } else if (doc.kind === 'module' && doc.modules) { ?>
39
- <?js doc.modules.forEach(function(module) { ?>
40
- <?js if (module.name && self.displayModuleHeader) { ?>
41
- <h1 id="<?js= module.name ?>-title" class="has-anchor">
42
- <?js= module.name ?>
43
- </h1>
44
- <?js } ?>
45
- <?js if (module.classdesc) { ?>
46
- <div class="class-description"><?js= module.classdesc ?></div>
47
- <?js } ?>
48
- <?js }) ?>
49
- <?js } ?>
50
- </header>
51
- <?js } ?>
52
-
53
- <article>
54
- <div class="container-overview">
55
- <?js if (doc.kind === 'module' && doc.modules) { ?>
56
- <?js if (doc.description) { ?>
57
- <div class="description"><?js= doc.description ?></div>
58
- <?js } ?>
59
-
60
- <?js doc.modules.forEach(function(module) { ?>
61
- <?js= self.partial('method.tmpl', module) ?>
62
- <?js }) ?>
63
- <?js } else if (doc.kind === 'class' || (doc.kind === 'namespace' && doc.signature)) { ?>
64
- <?js= self.partial('method.tmpl', doc) ?>
65
- <?js } else { ?>
66
- <?js if (doc.description) { ?>
67
- <div class="description"><?js= doc.description ?></div>
68
- <?js } ?>
69
-
70
- <?js= self.partial('details.tmpl', doc) ?>
71
-
72
- <?js if (doc.examples && doc.examples.length) { ?>
73
- <h2 id="example" class="has-anchor">Example<?js= doc.examples.length > 1? 's':'' ?></h2>
74
- <?js= self.partial('examples.tmpl', doc.examples) ?>
75
- <?js } ?>
76
- <?js } ?>
77
- </div>
78
-
79
- <?js if (doc.augments && doc.augments.length) { ?>
80
- <h2 id="Extends" class="subsection-title has-anchor">Extends</h2>
81
-
82
- <?js= self.partial('augments.tmpl', doc) ?>
83
- <?js } ?>
84
-
85
- <?js if (doc.requires && doc.requires.length) { ?>
86
- <h2 id="requires" class="subsection-title has-anchor">Requires</h2>
87
-
88
- <ul><?js doc.requires.forEach(function(r) { ?>
89
- <li><?js= self.linkto(r, r) ?></li>
90
- <?js }); ?></ul>
91
- <?js } ?>
92
-
93
- <?js
94
- var shouldExcludeInherited = { ...(self.excludeInherited ? { inherited: {isUndefined: true} } : {}) };
95
- var classes = self.find({kind: 'class', memberof: doc.longname, ...shouldExcludeInherited } );
96
- if (!isGlobalPage && classes && classes.length) {
97
- ?>
98
- <h2 id="classes" class="subsection-title has-anchor">Classes</h2>
99
-
100
- <dl><?js classes.forEach(function(c) { ?>
101
- <dt><?js= self.linkto(c.longname, c.name) ?></dt>
102
- <dd><?js if (c.summary) { ?><?js= c.summary ?><?js } ?></dd>
103
- <?js }); ?></dl>
104
- <?js } ?>
105
-
106
- <?js
107
- var interfaces = self.find({kind: 'interface', memberof: doc.longname, ...shouldExcludeInherited});
108
- if (!isGlobalPage && interfaces && interfaces.length) {
109
- ?>
110
- <h2 id="interfaces" class="subsection-title has-anchor">Interfaces</h2>
111
-
112
- <dl><?js interfaces.forEach(function(i) { ?>
113
- <dt><?js= self.linkto(i.longname, i.name) ?></dt>
114
- <dd><?js if (i.summary) { ?><?js= i.summary ?><?js } ?></dd>
115
- <?js }); ?></dl>
116
- <?js } ?>
117
-
118
- <?js
119
- var mixins = self.find({kind: 'mixin', memberof: doc.longname, ...shouldExcludeInherited});
120
- if (!isGlobalPage && mixins && mixins.length) {
121
- ?>
122
- <h2 id="mixins" class="subsection-title has-anchor">Mixins</h2>
123
-
124
- <dl><?js mixins.forEach(function(m) { ?>
125
- <dt><?js= self.linkto(m.longname, m.name) ?></dt>
126
- <dd><?js if (m.summary) { ?><?js= m.summary ?><?js } ?></dd>
127
- <?js }); ?></dl>
128
- <?js } ?>
129
-
130
- <?js
131
- var namespaces = self.find({kind: 'namespace', memberof: doc.longname, ...shouldExcludeInherited});
132
- if (!isGlobalPage && namespaces && namespaces.length) {
133
- ?>
134
- <h2 id="namespaces" class="subsection-title has-anchor">Namespaces</h2>
135
-
136
- <dl><?js namespaces.forEach(function(n) { ?>
137
- <dt><?js= self.linkto(n.longname, n.name) ?></dt>
138
- <dd><?js if (n.summary) { ?><?js= n.summary ?><?js } ?></dd>
139
- <?js }); ?></dl>
140
- <?js } ?>
141
-
142
- <?js
143
- var members = self.find({kind: 'member', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, ...shouldExcludeInherited});
144
-
145
- // symbols that are assigned to module.exports are not globals, even though they're not a memberof anything
146
- if (isGlobalPage && members && members.length && members.forEach) {
147
- members = members.filter(function(m) {
148
- return m.longname && m.longname.indexOf('module:') !== 0;
149
- });
150
- }
151
- if (members && members.length && members.forEach) {
152
- ?>
153
- <h2 id="members" class="subsection-title has-anchor">Members</h2>
154
-
155
- <?js members.forEach(function(p) { ?>
156
- <?js= self.partial('members.tmpl', p) ?>
157
- <?js }); ?>
158
- <?js } ?>
159
-
160
- <?js
161
- var methods = self.find({kind: 'function', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, ...shouldExcludeInherited});
162
- if (methods && methods.length && methods.forEach) {
163
- ?>
164
- <h2 id="methods" class="subsection-title has-anchor">Methods</h2>
165
-
166
- <?js methods.forEach(function(m) { ?>
167
- <?js= self.partial('method.tmpl', m) ?>
168
- <?js }); ?>
169
- <?js } ?>
170
-
171
- <?js
172
- var typedefs = self.find({kind: 'typedef', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, ...shouldExcludeInherited});
173
- if (typedefs && typedefs.length && typedefs.forEach) {
174
- ?>
175
- <h2 id="type-definitions" class="subsection-title has-anchor">Type Definitions</h2>
176
-
177
- <?js typedefs.forEach(function(e) {
178
- if (e.signature) {
179
- ?>
180
- <?js= self.partial('method.tmpl', e) ?>
181
- <?js
182
- }
183
- else {
184
- ?>
185
- <?js= self.partial('members.tmpl', e) ?>
186
- <?js
187
- }
188
- }); ?>
189
- <?js } ?>
190
-
191
- <?js
192
- var events = self.find({kind: 'event', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, ...shouldExcludeInherited});
193
- if (events && events.length && events.forEach) {
194
- ?>
195
- <h2 id="events" class="subsection-title has-anchor">Events</h2>
196
-
197
- <?js events.forEach(function(e) { ?>
198
- <?js= self.partial('method.tmpl', e) ?>
199
- <?js }); ?>
200
- <?js } ?>
201
- </article>
202
-
203
- </section>
204
- <?js } ?>
205
-
206
- <?js }); ?>
207
-
208
- <?js= self.partial('include-target-script-and-styles.tmpl', arguments[0].filename) ?>
package/tmpl/details.tmpl DELETED
@@ -1,207 +0,0 @@
1
- <?js
2
- var data = obj;
3
- var self = this;
4
- var defaultObjectClass = '';
5
- var loopVar = 0;
6
- var detailsKeys = [
7
- 'copyright',
8
- 'defaultvalue',
9
- 'deprecated',
10
- 'license',
11
- 'overrides',
12
- 'since',
13
- 'version',
14
- ]
15
- var hasToPrintDetails = (data.meta && self.outputSourceFiles) ||
16
- (data.author && author.length) ||
17
- (data.mixes && data.mixes.length) ||
18
- (data.inherited && data.inherits && !data.overrides) ||
19
- (data.implementations && data.implementations.length) ||
20
- (data.implements && data.implements.length) ||
21
- (data.tutorials && tutorials.length) ||
22
- (data.see && see.length) ||
23
- (data.todo && todo.length)
24
-
25
-
26
- // // Check if the default value is an object or array; if so, apply code highlighting
27
- if (data.defaultvalue && (data.defaultvaluetype === 'object' || data.defaultvaluetype === 'array')) {
28
- data.defaultvalue = "<pre class='prettyprint'><code class='nohljsln compact'>" + data.defaultvalue + "</code></pre>";
29
- }
30
-
31
- // Check whether to print details or not
32
- for(; loopVar < detailsKeys.length; loopVar += 1) {
33
- if(data[detailsKeys[loopVar]]) {
34
- hasToPrintDetails = true
35
- break
36
- }
37
- }
38
-
39
- ?>
40
-
41
- <?js
42
- var properties = data.properties;
43
- if (properties && properties.length && properties.forEach) {
44
- ?>
45
-
46
- <b class="subsection-title">Properties</b>
47
-
48
- <?js= this.partial('properties.tmpl', data) ?>
49
-
50
- <?js } ?>
51
-
52
- <?js if(hasToPrintDetails) { ?>
53
- <dl class="details">
54
-
55
- <?js if (data.version) {?>
56
- <div class="details-item-container">
57
- <dt class="tag-version bold">Version</dt>
58
- <dd class="tag-version"><ul><li><?js= version ?></li></ul></dd>
59
- </div>
60
- <?js } ?>
61
-
62
- <?js if (data.since) {?>
63
- <div class="details-item-container">
64
- <dt class="tag-since bold">Since</dt>
65
- <dd class="tag-since"><ul><li><?js= since ?></li></ul></dd>
66
- </div>
67
- <?js } ?>
68
-
69
- <?js if (data.inherited && data.inherits && !data.overrides) { ?>
70
- <div class="details-item-container">
71
- <dt class="inherited-from bold">Inherited From</dt>
72
- <dd class="inherited-from"><ul><li>
73
- <?js= this.linkto(data.inherits, this.htmlsafe(data.inherits)) ?>
74
- </li></ul></dd>
75
- </div>
76
- <?js } ?>
77
-
78
- <?js if (data.overrides) { ?>
79
- <div class="details-item-container">
80
- <dt class="tag-overrides bold">Overrides</dt>
81
- <dd class="tag-overrides"><ul><li>
82
- <?js= this.linkto(data.overrides, this.htmlsafe(data.overrides)) ?>
83
- </li></ul></dd>
84
- </div>
85
- <?js } ?>
86
-
87
- <?js if (data.implementations && data.implementations.length) { ?>
88
- <div class="details-item-container">
89
- <dt class="implementations bold">Implementations</dt>
90
- <dd class="implementations"><ul>
91
- <?js data.implementations.forEach(function(impl) { ?>
92
- <li><?js= self.linkto(impl, self.htmlsafe(impl)) ?></li>
93
- <?js }); ?>
94
- </ul></dd>
95
- </div>
96
- <?js } ?>
97
-
98
- <?js if (data.implements && data.implements.length) { ?>
99
- <div class="details-item-container">
100
- <dt class="implements bold">Implements</dt>
101
- <dd class="implements"><ul>
102
- <?js data.implements.forEach(function(impl) { ?>
103
- <li><?js= self.linkto(impl, self.htmlsafe(impl)) ?></li>
104
- <?js }); ?>
105
- </ul></dd>
106
- </div>
107
- <?js } ?>
108
-
109
- <?js if (data.mixes && data.mixes.length) { ?>
110
- <div class="details-item-container">
111
- <dt class="mixes bold">Mixes In</dt>
112
-
113
- <dd class="mixes"><ul>
114
- <?js data.mixes.forEach(function(a) { ?>
115
- <li><?js= self.linkto(a, a) ?></li>
116
- <?js }); ?>
117
- </ul></dd>
118
- </div>
119
- <?js } ?>
120
-
121
- <?js if (data.deprecated) { ?>
122
- <div class="details-item-container">
123
- <dt class="important tag-deprecated bold">Deprecated</dt><?js
124
- if (data.deprecated === true) { ?><dd class="tag-deprecated"><ul><li>Yes</li></ul></dd><?js }
125
- else { ?><dd><ul><li><?js= data.deprecated ?></li></ul></dd><?js }
126
- ?>
127
- </div>
128
- <?js } ?>
129
-
130
- <?js if (data.author && author.length) {?>
131
- <div class="details-item-container">
132
- <dt class="tag-author bold">Author</dt>
133
- <dd class="tag-author">
134
- <ul><?js author.forEach(function(a) { ?>
135
- <li><?js= self.resolveAuthorLinks(a) ?></li>
136
- <?js }); ?></ul>
137
- </dd>
138
- </div>
139
- <?js } ?>
140
-
141
- <?js if (data.copyright) {?>
142
- <div class="details-item-container">
143
- <dt class="tag-copyright bold">Copyright</dt>
144
- <dd class="tag-copyright"><ul><li><?js= copyright ?></li></ul></dd>
145
- </div>
146
- <?js } ?>
147
-
148
- <?js if (data.license) {?>
149
- <div class="details-item-container">
150
- <dt class="tag-license bold">License</dt>
151
- <dd class="tag-license"><ul><li><?js= license ?></li></ul></dd>
152
- </div>
153
- <?js } ?>
154
-
155
- <?js if (data.defaultvalue) {?>
156
- <div class="details-item-container">
157
- <dt class="tag-default bold">Default Value</dt>
158
- <dd class="tag-default"><ul>
159
- <li data-skip-pre-process="true"><?js= data.defaultvalue ?></li>
160
- </ul></dd>
161
- </div>
162
- <?js } ?>
163
-
164
- <?js if (data.meta && self.outputSourceFiles) {?>
165
- <div class="details-item-container">
166
- <dt class="tag-source bold">Source</dt>
167
- <dd class="tag-source"><ul><li>
168
- <?js= self.linkto(meta.shortpath) ?>, <?js= self.linkto(meta.shortpath, 'line ' + meta.lineno, null, 'line' + meta.lineno) ?>
169
- </li></ul></dd>
170
- </div>
171
- <?js } ?>
172
-
173
- <?js if (data.tutorials && tutorials.length) {?>
174
- <div class="details-item-container">
175
- <dt class="tag-tutorial bold">Tutorials</dt>
176
- <dd class="tag-tutorial">
177
- <ul><?js tutorials.forEach(function(t) { ?>
178
- <li><?js= self.tutoriallink(t) ?></li>
179
- <?js }); ?></ul>
180
- </dd>
181
- </div>
182
- <?js } ?>
183
-
184
- <?js if (data.see && see.length) {?>
185
- <div class="details-item-container">
186
- <dt class="tag-see bold">See</dt>
187
- <dd class="tag-see">
188
- <ul><?js see.forEach(function(s) { ?>
189
- <li><?js= self.linkto(s) ?></li>
190
- <?js }); ?></ul>
191
- </dd>
192
- </div>
193
- <?js } ?>
194
-
195
- <?js if (data.todo && todo.length) {?>
196
- <div class="details-item-container">
197
- <dt class="tag-todo bold">To Do</dt>
198
- <dd class="tag-todo">
199
- <ul><?js todo.forEach(function(t) { ?>
200
- <li><?js= t ?></li>
201
- <?js }); ?></ul>
202
- </dd>
203
- </div>
204
- <?js } ?>
205
- </dl>
206
-
207
- <?js } ?>
package/tmpl/example.tmpl DELETED
@@ -1,3 +0,0 @@
1
- <?js var data = obj; ?>
2
- <pre class="prettyprint"><code><?js= data ?></code>
3
- </pre>
@@ -1,48 +0,0 @@
1
- <?js
2
- var data = obj;
3
- var self = this;
4
- var codepen = this.codepen;
5
- var enable_for = codepen.enable_for || [];
6
-
7
- data.forEach(function(example) {
8
-
9
- if (example.caption) {
10
- ?>
11
- <p class="code-caption"><?js= example.caption ?></p>
12
- <?js } ?>
13
- <div class="rel">
14
- <pre class="prettyprint"><code><?js= self.htmlsafe(example.code) ?></code></pre>
15
-
16
- <?js
17
- if(enable_for.findIndex(function (val) { return val === "examples"}) !== -1) {
18
- var options = codepen.options || {};
19
- var optionsString = '';
20
-
21
- var code = `${options.js}
22
- ${example.code}
23
- `
24
-
25
- var jsonString = JSON.stringify(code)
26
- .replace(/"/g, "&quot;")
27
- .replace(/'/g, "&apos;");
28
-
29
- var optionsKey = Object.keys(options).filter((key) => key !== 'js' )
30
- optionsKey.map((key, idx) => {
31
- optionsString += '"' + key +'": "' + options[key].replace(/"/g, "&quot;").replace(/'/g, "&apos;") + '"';
32
- if(idx !== optionsKey.length - 1) {
33
- optionsString += ','
34
- }
35
- })
36
-
37
- ?>
38
- <form action="https://codepen.io/pen/define" method="POST" target="_blank" class="codepen-form">
39
- <input type="hidden" name="data" value='{"title": "<?js= example.caption || 'Example' ?>", "js": <?js= jsonString ?>, <?js= optionsString ?> }' />
40
- <button class="icon-button codepen-button" type="submit" value="Create New Pen with Prefilled Data" aria-label='open in codepen'>
41
- <svg><use xlink:href="#codepen-icon"></use></svg>
42
- </button>
43
- </form>
44
- <?js } ?>
45
- </div>
46
- <?js
47
- });
48
- ?>
@@ -1,32 +0,0 @@
1
- <?js
2
- var data = obj;
3
- ?>
4
- <?js if (data.description && data.type && data.type.names) { ?>
5
- <dl>
6
- <dt>
7
- <div class="param-desc">
8
- <?js= data.description ?>
9
- </div>
10
- </dt>
11
- <dd></dd>
12
- <dt>
13
- <dl>
14
- <dt>
15
- Type
16
- </dt>
17
- <dd>
18
- <?js= this.partial('type.tmpl', data.type.names) ?>
19
- </dd>
20
- </dl>
21
- </dt>
22
- <dd></dd>
23
- </dl>
24
- <?js } else { ?>
25
- <div class="param-desc">
26
- <?js if (data.description) { ?>
27
- <?js= data.description ?>
28
- <?js } else if (data.type && data.type.names) { ?>
29
- <?js= this.partial('type.tmpl', data.type.names) ?>
30
- <?js } ?>
31
- </div>
32
- <?js } ?>
package/tmpl/icons.tmpl DELETED
@@ -1,73 +0,0 @@
1
- <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
2
- style="display:none">
3
- <defs>
4
- <symbol id="copy-icon" viewbox="0 0 488.3 488.3">
5
- <g>
6
- <path
7
- d="M314.25,85.4h-227c-21.3,0-38.6,17.3-38.6,38.6v325.7c0,21.3,17.3,38.6,38.6,38.6h227c21.3,0,38.6-17.3,38.6-38.6V124 C352.75,102.7,335.45,85.4,314.25,85.4z M325.75,449.6c0,6.4-5.2,11.6-11.6,11.6h-227c-6.4,0-11.6-5.2-11.6-11.6V124 c0-6.4,5.2-11.6,11.6-11.6h227c6.4,0,11.6,5.2,11.6,11.6V449.6z" />
8
- <path
9
- d="M401.05,0h-227c-21.3,0-38.6,17.3-38.6,38.6c0,7.5,6,13.5,13.5,13.5s13.5-6,13.5-13.5c0-6.4,5.2-11.6,11.6-11.6h227 c6.4,0,11.6,5.2,11.6,11.6v325.7c0,6.4-5.2,11.6-11.6,11.6c-7.5,0-13.5,6-13.5,13.5s6,13.5,13.5,13.5c21.3,0,38.6-17.3,38.6-38.6 V38.6C439.65,17.3,422.35,0,401.05,0z" />
10
- </g>
11
- </symbol>
12
- <symbol id='search-icon' viewBox="0 0 512 512">
13
- <g>
14
- <g>
15
- <path
16
- d="M225.474,0C101.151,0,0,101.151,0,225.474c0,124.33,101.151,225.474,225.474,225.474 c124.33,0,225.474-101.144,225.474-225.474C450.948,101.151,349.804,0,225.474,0z M225.474,409.323 c-101.373,0-183.848-82.475-183.848-183.848S124.101,41.626,225.474,41.626s183.848,82.475,183.848,183.848 S326.847,409.323,225.474,409.323z" />
17
- </g>
18
- </g>
19
- <g>
20
- <g>
21
- <path
22
- d="M505.902,476.472L386.574,357.144c-8.131-8.131-21.299-8.131-29.43,0c-8.131,8.124-8.131,21.306,0,29.43l119.328,119.328 c4.065,4.065,9.387,6.098,14.715,6.098c5.321,0,10.649-2.033,14.715-6.098C514.033,497.778,514.033,484.596,505.902,476.472z" />
23
- </g>
24
- </g>
25
- </symbol>
26
- <symbol id="font-size-icon" viewBox="0 0 24 24">
27
- <path fill="none" d="M0 0h24v24H0z" />
28
- <path
29
- d="M11.246 15H4.754l-2 5H.6L7 4h2l6.4 16h-2.154l-2-5zm-.8-2L8 6.885 5.554 13h4.892zM21 12.535V12h2v8h-2v-.535a4 4 0 1 1 0-6.93zM19 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" />
30
- </symbol>
31
- <symbol id="add-icon" viewBox="0 0 24 24">
32
- <path fill="none" d="M0 0h24v24H0z" />
33
- <path d="M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z" />
34
- </symbol>
35
- <symbol id="minus-icon" viewBox="0 0 24 24">
36
- <path fill="none" d="M0 0h24v24H0z" />
37
- <path d="M5 11h14v2H5z" />
38
- </symbol>
39
- <symbol id="dark-theme-icon" viewBox="0 0 24 24">
40
- <path fill="none" d="M0 0h24v24H0z" />
41
- <path
42
- d="M10 7a7 7 0 0 0 12 4.9v.1c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2h.1A6.979 6.979 0 0 0 10 7zm-6 5a8 8 0 0 0 15.062 3.762A9 9 0 0 1 8.238 4.938 7.999 7.999 0 0 0 4 12z" />
43
- </symbol>
44
- <symbol id="light-theme-icon" viewBox="0 0 24 24">
45
- <path fill="none" d="M0 0h24v24H0z" />
46
- <path
47
- d="M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-2a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM11 1h2v3h-2V1zm0 19h2v3h-2v-3zM3.515 4.929l1.414-1.414L7.05 5.636 5.636 7.05 3.515 4.93zM16.95 18.364l1.414-1.414 2.121 2.121-1.414 1.414-2.121-2.121zm2.121-14.85l1.414 1.415-2.121 2.121-1.414-1.414 2.121-2.121zM5.636 16.95l1.414 1.414-2.121 2.121-1.414-1.414 2.121-2.121zM23 11v2h-3v-2h3zM4 11v2H1v-2h3z" />
48
- </symbol>
49
- <symbol id="reset-icon" viewBox="0 0 24 24">
50
- <path fill="none" d="M0 0h24v24H0z"/>
51
- <path d="M18.537 19.567A9.961 9.961 0 0 1 12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10c0 2.136-.67 4.116-1.81 5.74L17 12h3a8 8 0 1 0-2.46 5.772l.997 1.795z"/>
52
- </symbol>
53
-
54
- <symbol id="down-icon" viewBox="0 0 16 16">
55
- <path fill-rule="evenodd" clip-rule="evenodd"
56
- d="M12.7803 6.21967C13.0732 6.51256 13.0732 6.98744 12.7803 7.28033L8.53033 11.5303C8.23744 11.8232 7.76256 11.8232 7.46967 11.5303L3.21967 7.28033C2.92678 6.98744 2.92678 6.51256 3.21967 6.21967C3.51256 5.92678 3.98744 5.92678 4.28033 6.21967L8 9.93934L11.7197 6.21967C12.0126 5.92678 12.4874 5.92678 12.7803 6.21967Z">
57
- </path>
58
- </symbol>
59
-
60
- <symbol id="codepen-icon" viewBox="0 0 24 24">
61
- <path fill="none" d="M0 0h24v24H0z"/>
62
- <path d="M16.5 13.202L13 15.535v3.596L19.197 15 16.5 13.202zM14.697 12L12 10.202 9.303 12 12 13.798 14.697 12zM20 10.869L18.303 12 20 13.131V10.87zM19.197 9L13 4.869v3.596l3.5 2.333L19.197 9zM7.5 10.798L11 8.465V4.869L4.803 9 7.5 10.798zM4.803 15L11 19.131v-3.596l-3.5-2.333L4.803 15zM4 13.131L5.697 12 4 10.869v2.262zM2 9a1 1 0 0 1 .445-.832l9-6a1 1 0 0 1 1.11 0l9 6A1 1 0 0 1 22 9v6a1 1 0 0 1-.445.832l-9 6a1 1 0 0 1-1.11 0l-9-6A1 1 0 0 1 2 15V9z"/>
63
- </symbol>
64
- <symbol id="close-icon" viewBox="0 0 24 24">
65
- <path fill="none" d="M0 0h24v24H0z"/>
66
- <path d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"/>
67
- </symbol>
68
- <symbol id="menu-icon" viewBox="0 0 24 24">
69
- <path fill="none" d="M0 0h24v24H0z"/>
70
- <path d="M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"/>
71
- </symbol>
72
- </defs>
73
- </svg>
@@ -1,43 +0,0 @@
1
- <?js
2
-
3
- const filename = obj.replace('.html', '')
4
- const scripts = []
5
- const styles = []
6
-
7
-
8
- if(Array.isArray(this.includeScript)) {
9
- for (const script of this.includeScript) {
10
- if(typeof script === 'object') {
11
- for (const target of script.targets) {
12
- if(filename === target) {
13
- scripts.push(script.filepath)
14
- }
15
- }
16
- }
17
- }
18
- }
19
-
20
- if(Array.isArray(this.includeCss)) {
21
- for (const style of this.includeCss) {
22
- if(typeof style === 'object') {
23
- for (const target of style.targets) {
24
- if(filename === target) {
25
- styles.push(style.filepath)
26
- }
27
- }
28
- }
29
- }
30
- }
31
-
32
-
33
- ?>
34
-
35
- <?js scripts.forEach(function(source){ ?>
36
- <script src="<?js= source ?>"></script>
37
- <?js }) ?>
38
-
39
- <?js styles.forEach(function(source){ ?>
40
- <script>
41
- document.head.innerHTML += '<link type="text/css" rel="stylesheet" href="<?js= source ?>">'
42
- </script>
43
- <?js }) ?>