clean-jsdoc-theme 4.1.4 → 4.1.7

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 (67) 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/dependabot.yml +9 -9
  6. package/.github/pull_request_template.md +16 -16
  7. package/.github/workflows/codeql.yml +72 -72
  8. package/.github/workflows/greetings.yml +16 -16
  9. package/.prettierignore +2 -2
  10. package/.prettierrc +5 -5
  11. package/.stylelintignore +3 -3
  12. package/.stylelintrc +23 -23
  13. package/.travis.yml +30 -30
  14. package/CHANGELOG.md +235 -235
  15. package/CODE_OF_CONDUCT.md +76 -76
  16. package/CODE_OF_CONDUCT_HINDI.md +46 -46
  17. package/CONTRIBUTING.md +24 -24
  18. package/LICENSE +21 -21
  19. package/README.md +456 -457
  20. package/SECURITY.md +21 -21
  21. package/helpers/down-arrow.js +9 -9
  22. package/jsdoc-config.json +61 -61
  23. package/minify.js +56 -52
  24. package/package.json +50 -50
  25. package/publish.js +1129 -1129
  26. package/static/scripts/core.js +656 -643
  27. package/static/scripts/core.min.js +23 -23
  28. package/static/scripts/resize.js +90 -90
  29. package/static/scripts/search.js +262 -289
  30. package/static/scripts/search.min.js +6 -11
  31. package/static/scripts/third-party/Apache-License-2.0.txt +202 -202
  32. package/static/scripts/third-party/fuse.js +8 -8
  33. package/static/scripts/third-party/hljs-line-num-original.js +365 -0
  34. package/static/scripts/third-party/hljs-line-num.js +1 -1
  35. package/static/scripts/third-party/hljs-original.js +5162 -5162
  36. package/static/scripts/third-party/popper.js +5 -5
  37. package/static/scripts/third-party/tippy.js +1 -1
  38. package/static/styles/clean-jsdoc-theme-base.css +969 -952
  39. package/static/styles/clean-jsdoc-theme-dark.css +407 -411
  40. package/static/styles/clean-jsdoc-theme-light.css +388 -392
  41. package/static/styles/clean-jsdoc-theme.min.css +1 -1
  42. package/tmpl/augments.tmpl +10 -10
  43. package/tmpl/container.tmpl +190 -190
  44. package/tmpl/details.tmpl +207 -207
  45. package/tmpl/example.tmpl +3 -3
  46. package/tmpl/examples.tmpl +40 -40
  47. package/tmpl/exceptions.tmpl +32 -32
  48. package/tmpl/icons.tmpl +72 -72
  49. package/tmpl/layout.tmpl +157 -155
  50. package/tmpl/mainpage.tmpl +10 -10
  51. package/tmpl/members.tmpl +42 -42
  52. package/tmpl/method.tmpl +139 -139
  53. package/tmpl/mobile-sidebar.tmpl +20 -20
  54. package/tmpl/navbar-actions.tmpl +18 -18
  55. package/tmpl/navbar-menu.tmpl +24 -24
  56. package/tmpl/navbar.tmpl +13 -13
  57. package/tmpl/params.tmpl +124 -124
  58. package/tmpl/properties.tmpl +109 -109
  59. package/tmpl/returns.tmpl +18 -18
  60. package/tmpl/search.tmpl +16 -16
  61. package/tmpl/sidebar-items.tmpl +23 -23
  62. package/tmpl/sidebar-title.tmpl +9 -9
  63. package/tmpl/sidebar.tmpl +8 -8
  64. package/tmpl/source.tmpl +12 -12
  65. package/tmpl/toc.tmpl +3 -3
  66. package/tmpl/tutorial.tmpl +19 -19
  67. package/tmpl/type.tmpl +6 -6
package/tmpl/method.tmpl CHANGED
@@ -1,139 +1,139 @@
1
- <?js
2
- var data = obj;
3
- var self = this;
4
- ?>
5
- <?js if (data.kind !== 'module' && !data.hideconstructor) { ?>
6
- <?js if (data.kind === 'class' && data.classdesc) { ?>
7
- <h2 id="constructor" class="has-anchor">Constructor</h2>
8
- <?js } ?>
9
-
10
- <h3 class="name has-anchor" id="<?js= id ?>">
11
- <?js= data.attribs + (kind === 'class' ? 'new ' : '') + name + (data.signature || '') ?>
12
- </h3>
13
-
14
- <?js if (data.summary) { ?>
15
- <p class="summary"><?js= summary ?></p>
16
- <?js } ?>
17
- <?js } ?>
18
-
19
- <?js if (data.kind !== 'module' && data.description) { ?>
20
- <div class="description">
21
- <?js= data.description ?>
22
- </div>
23
- <?js } ?>
24
-
25
- <?js if (data.augments && data.alias && data.alias.indexOf('module:') === 0) { ?>
26
- <div class="method-member-container mt-20">
27
- <strong>Extends:</strong>
28
- <?js= self.partial('augments.tmpl', data) ?>
29
- </div>
30
- <?js } ?>
31
-
32
- <?js if (kind === 'event' && data.type && data.type.names) {?>
33
- <div class="method-member-container mt-20">
34
- <strong>Type:</strong>
35
- <ul>
36
- <li>
37
- <?js= self.partial('type.tmpl', data.type.names) ?>
38
- </li>
39
- </ul>
40
- </div>
41
- <?js } ?>
42
-
43
- <?js if (data['this']) { ?>
44
- <div class="method-member-container mt-20">
45
- <strong>This:</strong>
46
- <ul><li><?js= this.linkto(data['this'], data['this']) ?></li></ul>
47
- </div>
48
- <?js } ?>
49
-
50
- <?js if (data.params && params.length) { ?>
51
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
52
- <strong>Parameters:</strong>
53
- <?js= this.partial('params.tmpl', params) ?>
54
- </div>
55
- <?js } ?>
56
-
57
- <?js= this.partial('details.tmpl', data) ?>
58
-
59
- <?js if (data.kind !== 'module' && data.requires && data.requires.length) { ?>
60
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
61
- <strong>Requires:</strong>
62
- <ul>
63
- <?js data.requires.forEach(function(r) { ?>
64
- <li><?js= self.linkto(r) ?></li>
65
- <?js }); ?>
66
- </ul>
67
- </div>
68
- <?js } ?>
69
-
70
- <?js if (data.fires && fires.length) { ?>
71
- <div class="method-member-container flex w-100 overflow-auto mt-20">
72
- <strong>Fires:</strong>
73
- <ul>
74
- <?js fires.forEach(function(f) { ?>
75
- <li><?js= self.linkto(f) ?></li>
76
- <?js }); ?>
77
- </ul>
78
- </div>
79
- <?js } ?>
80
-
81
- <?js if (data.listens && listens.length) { ?>
82
- <div class="method-member-container flex w-100 overflow-auto mt-20">
83
- <strong>Listens to Events:</strong>
84
- <ul>
85
- <?js listens.forEach(function(f) { ?>
86
- <li><?js= self.linkto(f) ?></li>
87
- <?js }); ?>
88
- </ul>
89
- </div>
90
- <?js } ?>
91
-
92
- <?js if (data.listeners && listeners.length) { ?>
93
- <div class="method-member-container mt-20">
94
- <strong>Listeners of This Event:</strong>
95
- <ul>
96
- <?js listeners.forEach(function(f) { ?>
97
- <li><?js= self.linkto(f) ?></li>
98
- <?js }); ?>
99
- </ul>
100
- </div>
101
- <?js } ?>
102
-
103
- <?js if (data.exceptions && exceptions.length) { ?>
104
- <div class="method-member-container mt-20">
105
- <strong>Throws:</strong>
106
- <?js if (exceptions.length > 1) { ?>
107
- <ul>
108
- <?js exceptions.forEach(function(r) { ?>
109
- <li><?js= self.partial('exceptions.tmpl', r) ?></li>
110
- <?js }); ?>
111
- </ul>
112
- <?js } else { exceptions.forEach(function(r) { ?>
113
- <?js= self.partial('exceptions.tmpl', r) ?>
114
- <?js });} ?>
115
- </div>
116
- <?js } ?>
117
-
118
- <?js if (data.returns && returns.length) { ?>
119
- <div class="method-member-container mt-20">
120
- <strong>Returns:</strong>
121
- <?js if (returns.length > 1) { ?>
122
- <ul>
123
- <?js returns.forEach(function(r) { ?>
124
- <li><?js= self.partial('returns.tmpl', r) ?></li>
125
- <?js }); ?>
126
- </ul>
127
-
128
- <?js } else { returns.forEach(function(r) { ?>
129
- <?js= self.partial('returns.tmpl', r) ?>
130
- <?js });} ?>
131
- </div>
132
- <?js } ?>
133
-
134
- <?js if (data.examples && examples.length) { ?>
135
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
136
- <strong>Example<?js= examples.length > 1? 's':'' ?></strong>
137
- <?js= this.partial('examples.tmpl', examples) ?>
138
- </div>
139
- <?js } ?>
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ ?>
5
+ <?js if (data.kind !== 'module' && !data.hideconstructor) { ?>
6
+ <?js if (data.kind === 'class' && data.classdesc) { ?>
7
+ <h2 id="constructor" class="has-anchor">Constructor</h2>
8
+ <?js } ?>
9
+
10
+ <h3 class="name has-anchor" id="<?js= id ?>">
11
+ <?js= data.attribs + (kind === 'class' ? 'new ' : '') + name + (data.signature || '') ?>
12
+ </h3>
13
+
14
+ <?js if (data.summary) { ?>
15
+ <p class="summary"><?js= summary ?></p>
16
+ <?js } ?>
17
+ <?js } ?>
18
+
19
+ <?js if (data.kind !== 'module' && data.description) { ?>
20
+ <div class="description">
21
+ <?js= data.description ?>
22
+ </div>
23
+ <?js } ?>
24
+
25
+ <?js if (data.augments && data.alias && data.alias.indexOf('module:') === 0) { ?>
26
+ <div class="method-member-container mt-20">
27
+ <strong>Extends:</strong>
28
+ <?js= self.partial('augments.tmpl', data) ?>
29
+ </div>
30
+ <?js } ?>
31
+
32
+ <?js if (kind === 'event' && data.type && data.type.names) {?>
33
+ <div class="method-member-container mt-20">
34
+ <strong>Type:</strong>
35
+ <ul>
36
+ <li>
37
+ <?js= self.partial('type.tmpl', data.type.names) ?>
38
+ </li>
39
+ </ul>
40
+ </div>
41
+ <?js } ?>
42
+
43
+ <?js if (data['this']) { ?>
44
+ <div class="method-member-container mt-20">
45
+ <strong>This:</strong>
46
+ <ul><li><?js= this.linkto(data['this'], data['this']) ?></li></ul>
47
+ </div>
48
+ <?js } ?>
49
+
50
+ <?js if (data.params && params.length) { ?>
51
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
52
+ <strong>Parameters:</strong>
53
+ <?js= this.partial('params.tmpl', params) ?>
54
+ </div>
55
+ <?js } ?>
56
+
57
+ <?js= this.partial('details.tmpl', data) ?>
58
+
59
+ <?js if (data.kind !== 'module' && data.requires && data.requires.length) { ?>
60
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
61
+ <strong>Requires:</strong>
62
+ <ul>
63
+ <?js data.requires.forEach(function(r) { ?>
64
+ <li><?js= self.linkto(r) ?></li>
65
+ <?js }); ?>
66
+ </ul>
67
+ </div>
68
+ <?js } ?>
69
+
70
+ <?js if (data.fires && fires.length) { ?>
71
+ <div class="method-member-container flex w-100 overflow-auto mt-20">
72
+ <strong>Fires:</strong>
73
+ <ul>
74
+ <?js fires.forEach(function(f) { ?>
75
+ <li><?js= self.linkto(f) ?></li>
76
+ <?js }); ?>
77
+ </ul>
78
+ </div>
79
+ <?js } ?>
80
+
81
+ <?js if (data.listens && listens.length) { ?>
82
+ <div class="method-member-container flex w-100 overflow-auto mt-20">
83
+ <strong>Listens to Events:</strong>
84
+ <ul>
85
+ <?js listens.forEach(function(f) { ?>
86
+ <li><?js= self.linkto(f) ?></li>
87
+ <?js }); ?>
88
+ </ul>
89
+ </div>
90
+ <?js } ?>
91
+
92
+ <?js if (data.listeners && listeners.length) { ?>
93
+ <div class="method-member-container mt-20">
94
+ <strong>Listeners of This Event:</strong>
95
+ <ul>
96
+ <?js listeners.forEach(function(f) { ?>
97
+ <li><?js= self.linkto(f) ?></li>
98
+ <?js }); ?>
99
+ </ul>
100
+ </div>
101
+ <?js } ?>
102
+
103
+ <?js if (data.exceptions && exceptions.length) { ?>
104
+ <div class="method-member-container mt-20">
105
+ <strong>Throws:</strong>
106
+ <?js if (exceptions.length > 1) { ?>
107
+ <ul>
108
+ <?js exceptions.forEach(function(r) { ?>
109
+ <li><?js= self.partial('exceptions.tmpl', r) ?></li>
110
+ <?js }); ?>
111
+ </ul>
112
+ <?js } else { exceptions.forEach(function(r) { ?>
113
+ <?js= self.partial('exceptions.tmpl', r) ?>
114
+ <?js });} ?>
115
+ </div>
116
+ <?js } ?>
117
+
118
+ <?js if (data.returns && returns.length) { ?>
119
+ <div class="method-member-container mt-20">
120
+ <strong>Returns:</strong>
121
+ <?js if (returns.length > 1) { ?>
122
+ <ul>
123
+ <?js returns.forEach(function(r) { ?>
124
+ <li><?js= self.partial('returns.tmpl', r) ?></li>
125
+ <?js }); ?>
126
+ </ul>
127
+
128
+ <?js } else { returns.forEach(function(r) { ?>
129
+ <?js= self.partial('returns.tmpl', r) ?>
130
+ <?js });} ?>
131
+ </div>
132
+ <?js } ?>
133
+
134
+ <?js if (data.examples && examples.length) { ?>
135
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
136
+ <strong>Example<?js= examples.length > 1? 's':'' ?></strong>
137
+ <?js= this.partial('examples.tmpl', examples) ?>
138
+ </div>
139
+ <?js } ?>
@@ -1,21 +1,21 @@
1
- <div class="mobile-menu-icon-container">
2
- <button class="icon-button" id="mobile-menu" data-isopen="false" aria-label="menu">
3
- <svg><use xlink:href="#menu-icon"></use></svg>
4
- </button>
5
- </div>
6
-
7
- <div id="mobile-sidebar" class="mobile-sidebar-container">
8
- <div class="mobile-sidebar-wrapper">
9
- <?js= this.partial('sidebar-title.tmpl') ?>
10
- <div class="mobile-nav-links">
11
- <?js= this.partial('navbar-menu.tmpl', '-mobile') ?>
12
- </div>
13
- <div class="mobile-sidebar-items-c">
14
- <?js= this.partial('sidebar-items.tmpl') ?>
15
- </div>
16
- <div class="mobile-navbar-actions">
17
- <?js= this.partial('navbar-actions.tmpl') ?>
18
- </div>
19
- </div>
20
-
1
+ <div class="mobile-menu-icon-container">
2
+ <button class="icon-button" id="mobile-menu" data-isopen="false" aria-label="menu">
3
+ <svg><use xlink:href="#menu-icon"></use></svg>
4
+ </button>
5
+ </div>
6
+
7
+ <div id="mobile-sidebar" class="mobile-sidebar-container">
8
+ <div class="mobile-sidebar-wrapper">
9
+ <?js= this.partial('sidebar-title.tmpl') ?>
10
+ <div class="mobile-nav-links">
11
+ <?js= this.partial('navbar-menu.tmpl', '-mobile') ?>
12
+ </div>
13
+ <div class="mobile-sidebar-items-c">
14
+ <?js= this.partial('sidebar-items.tmpl') ?>
15
+ </div>
16
+ <div class="mobile-navbar-actions">
17
+ <?js= this.partial('navbar-actions.tmpl') ?>
18
+ </div>
19
+ </div>
20
+
21
21
  </div>
@@ -1,19 +1,19 @@
1
- <?js
2
- var data = this.navbar
3
- if(data.search) { ?>
4
- <div class="navbar-right-item">
5
- <button class="icon-button search-button" aria-label='open-search'>
6
- <svg><use xlink:href="#search-icon"></use></svg>
7
- </button>
8
- </div>
9
- <?js } ?>
10
- <div class="navbar-right-item">
11
- <button class="icon-button theme-toggle" aria-label='toggle-theme'>
12
- <svg><use class="theme-svg-use" xlink:href="#<?js= (this.theme === 'dark' ? 'light' : 'dark') ?>-theme-icon"></use></svg>
13
- </button>
14
- </div>
15
- <div class="navbar-right-item">
16
- <button class="icon-button font-size" aria-label='change-font-size'>
17
- <svg><use xlink:href="#font-size-icon"></use></svg>
18
- </button>
1
+ <?js
2
+ var data = this.navbar
3
+ if(data.search) { ?>
4
+ <div class="navbar-right-item">
5
+ <button class="icon-button search-button" aria-label='open-search'>
6
+ <svg><use xlink:href="#search-icon"></use></svg>
7
+ </button>
8
+ </div>
9
+ <?js } ?>
10
+ <div class="navbar-right-item">
11
+ <button class="icon-button theme-toggle" aria-label='toggle-theme'>
12
+ <svg><use class="theme-svg-use" xlink:href="#<?js= (this.theme === 'dark' ? 'light' : 'dark') ?>-theme-icon"></use></svg>
13
+ </button>
14
+ </div>
15
+ <div class="navbar-right-item">
16
+ <button class="icon-button font-size" aria-label='change-font-size'>
17
+ <svg><use xlink:href="#font-size-icon"></use></svg>
18
+ </button>
19
19
  </div>
@@ -1,25 +1,25 @@
1
- <?js
2
- var data = this.navbar
3
- var idSuffix = obj || ''
4
- if(data.menu) { ?>
5
- <?js
6
- data.menu.forEach(function(item) {
7
- var className = item.class || '';
8
- var id = item.id || '';
9
- var target = item.target || '';
10
- className += ' navbar-item'
11
- if(id) {
12
- id += idSuffix
13
- }
14
- ?>
15
-
16
- <div class="<?js=className ?>">
17
- <a id="<?js= id ?>" href="<?js= item.link ?>" target="<?js= target ?>">
18
- <?js= item.title?>
19
- </a>
20
- </div>
21
-
22
- <?js
23
- })
24
- }
1
+ <?js
2
+ var data = this.navbar
3
+ var idSuffix = obj || ''
4
+ if(data.menu) { ?>
5
+ <?js
6
+ data.menu.forEach(function(item) {
7
+ var className = item.class || '';
8
+ var id = item.id || '';
9
+ var target = item.target || '';
10
+ className += ' navbar-item'
11
+ if(id) {
12
+ id += idSuffix
13
+ }
14
+ ?>
15
+
16
+ <div class="<?js=className ?>">
17
+ <a id="<?js= id ?>" href="<?js= item.link ?>" target="<?js= target ?>">
18
+ <?js= item.title?>
19
+ </a>
20
+ </div>
21
+
22
+ <?js
23
+ })
24
+ }
25
25
  ?>
package/tmpl/navbar.tmpl CHANGED
@@ -1,14 +1,14 @@
1
- <?js
2
- var data = this.navbar;
3
- ?>
4
-
5
- <nav class="navbar">
6
- <div class="navbar-left-items">
7
- <?js= this.partial('navbar-menu.tmpl') ?>
8
-
9
- </div>
10
-
11
- <div class="navbar-right-items">
12
- <?js= this.partial('navbar-actions.tmpl') ?>
13
- </div>
1
+ <?js
2
+ var data = this.navbar;
3
+ ?>
4
+
5
+ <nav class="navbar">
6
+ <div class="navbar-left-items">
7
+ <?js= this.partial('navbar-menu.tmpl') ?>
8
+
9
+ </div>
10
+
11
+ <div class="navbar-right-items">
12
+ <?js= this.partial('navbar-actions.tmpl') ?>
13
+ </div>
14
14
  <nav>