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,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
- &lt;optional><br>
85
- <?js } ?>
86
-
87
- <?js if (prop.nullable) { ?>
88
- &lt;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:&nbsp;
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>
@@ -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 }})}?>
@@ -1,8 +0,0 @@
1
- <?js
2
- var data = this.sidebar
3
-
4
- if(data.title.isHTML) { ?>
5
- <?js= data.title.title ?>
6
- <?js } else if (data.title.title && !data.title.isHTML){ ?>
7
- <a href="/" class="sidebar-title sidebar-title-anchor"><?js= data.title.title ?></a>
8
- <?js } ?>
package/tmpl/sidebar.tmpl DELETED
@@ -1,9 +0,0 @@
1
- <div class="sidebar" id="sidebar">
2
- <?js= this.partial('sidebar-title.tmpl')?>
3
-
4
-
5
- <div class="sidebar-items-container">
6
- <?js= this.partial('sidebar-items.tmpl') ?>
7
-
8
- </div>
9
- </div>
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
@@ -1,4 +0,0 @@
1
- <div class="toc-content">
2
- <span class="bold">On this page</span>
3
- <div id="eed4d2a0bfd64539bb9df78095dec881"></div>
4
- </div>
@@ -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 }); ?>