clean-jsdoc-theme 3.2.7 → 3.3.0

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 (59) 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/pull_request_template.md +16 -16
  6. package/.github/workflows/codeql-analysis.yml +67 -67
  7. package/.prettierignore +2 -2
  8. package/.prettierrc +5 -5
  9. package/.stylelintignore +3 -3
  10. package/.stylelintrc +23 -23
  11. package/.travis.yml +30 -30
  12. package/CHANGELOG.md +210 -182
  13. package/CODE_OF_CONDUCT.md +76 -76
  14. package/CODE_OF_CONDUCT_HINDI.md +46 -46
  15. package/CONTRIBUTING.md +24 -24
  16. package/LICENSE +21 -21
  17. package/README.md +535 -496
  18. package/SECURITY.md +21 -21
  19. package/helpers/down-arrow.js +9 -9
  20. package/jsdoc-config.json +60 -59
  21. package/package.json +46 -46
  22. package/publish.js +1195 -940
  23. package/static/fonts/Montserrat-Regular.ttf +0 -0
  24. package/static/fonts/OFL-hind.txt +0 -0
  25. package/static/fonts/OFL-montserrat.txt +0 -0
  26. package/static/scripts/fix-code-block.js +53 -53
  27. package/static/scripts/fix-navbar.js +25 -25
  28. package/static/scripts/linenumber.js +25 -25
  29. package/static/scripts/misc.js +217 -210
  30. package/static/scripts/resize.js +85 -85
  31. package/static/scripts/search.js +83 -83
  32. package/static/scripts/third-party/Apache-License-2.0.txt +202 -202
  33. package/static/scripts/third-party/fuse.js +8 -8
  34. package/static/scripts/third-party/lang-css.js +2 -2
  35. package/static/scripts/third-party/prettify.js +28 -28
  36. package/static/styles/clean-jsdoc-theme-base.css +393 -393
  37. package/static/styles/clean-jsdoc-theme-dark.css +324 -324
  38. package/static/styles/clean-jsdoc-theme-light.css +319 -319
  39. package/static/styles/reset.css +351 -346
  40. package/static/styles/third-party/ionicons.min.css +11 -11
  41. package/static/styles/third-party/prettify-jsdoc.css +111 -111
  42. package/static/styles/third-party/prettify-tomorrow.css +5 -5
  43. package/tmpl/augments.tmpl +10 -10
  44. package/tmpl/container.tmpl +189 -189
  45. package/tmpl/details.tmpl +208 -209
  46. package/tmpl/example.tmpl +3 -3
  47. package/tmpl/examples.tmpl +38 -38
  48. package/tmpl/exceptions.tmpl +32 -32
  49. package/tmpl/icons.tmpl +34 -34
  50. package/tmpl/layout.tmpl +171 -168
  51. package/tmpl/mainpage.tmpl +10 -10
  52. package/tmpl/members.tmpl +43 -43
  53. package/tmpl/method.tmpl +140 -140
  54. package/tmpl/params.tmpl +124 -124
  55. package/tmpl/properties.tmpl +109 -109
  56. package/tmpl/returns.tmpl +18 -18
  57. package/tmpl/source.tmpl +7 -7
  58. package/tmpl/tutorial.tmpl +19 -19
  59. package/tmpl/type.tmpl +6 -6
@@ -1,85 +1,85 @@
1
- /* global document */
2
-
3
- var NAVBAR_OPTIONS = {};
4
-
5
- (function() {
6
- var NAVBAR_RESIZE_LOCAL_STORAGE_KEY = 'NAVBAR_RESIZE_LOCAL_STORAGE_KEY';
7
-
8
- var navbar = document.querySelector('#navbar');
9
- var footer = document.querySelector('#footer');
10
- var mainSection = document.querySelector('#main');
11
- // eslint-disable-next-line no-undef
12
- var localStorageResizeObject = JSON.parse(localStorage.getItem(NAVBAR_RESIZE_LOCAL_STORAGE_KEY));
13
-
14
- /**
15
- * Check whether we have any resize value in local storage or not.
16
- * If we have resize value then resize the navbar.
17
- **/
18
- if (localStorageResizeObject) {
19
- navbar.style.width = localStorageResizeObject.width;
20
- mainSection.style.marginLeft = localStorageResizeObject.width;
21
- footer.style.marginLeft = localStorageResizeObject.width;
22
- }
23
-
24
- var navbarSlider = document.querySelector('#navbar-resize');
25
-
26
- function resizeNavbar(event) {
27
- var pageX = event.pageX,
28
- pageXPlusPx = event.pageX + 'px',
29
- min = Number.parseInt(NAVBAR_OPTIONS.min, 10) || 300,
30
- max = Number.parseInt(NAVBAR_OPTIONS.max, 10) || 600;
31
-
32
- /**
33
- * Just to add some checks. If min is smaller then 10 then
34
- * user may accidentally end up reducing the size of navbar
35
- * less than 10. In that case user will not able to resize navbar
36
- * because navbar slider will be hidden.
37
- */
38
- if (min < 10) { min = 10; }
39
-
40
- /**
41
- * Only resize if pageX in range between min and max
42
- * allowed value.
43
- */
44
- if (min < pageX && pageX < max) {
45
- navbar.style.width = pageXPlusPx;
46
- mainSection.style.marginLeft = pageXPlusPx;
47
- footer.style.marginLeft = pageXPlusPx;
48
- }
49
- }
50
-
51
-
52
- function setupEventListeners() {
53
- // eslint-disable-next-line no-undef
54
- window.addEventListener('mousemove', resizeNavbar);
55
- // eslint-disable-next-line no-undef
56
- window.addEventListener('touchmove', resizeNavbar);
57
- }
58
-
59
- function afterRemovingEventListeners() {
60
- // eslint-disable-next-line no-undef
61
- localStorage.setItem(NAVBAR_RESIZE_LOCAL_STORAGE_KEY, JSON.stringify({
62
- width: navbar.style.width
63
- }));
64
- }
65
-
66
- function removeEventListeners() {
67
- // eslint-disable-next-line no-undef
68
- window.removeEventListener('mousemove', resizeNavbar);
69
- // eslint-disable-next-line no-undef
70
- window.removeEventListener('touchend', resizeNavbar);
71
- afterRemovingEventListeners();
72
- }
73
-
74
-
75
- navbarSlider.addEventListener('mousedown', setupEventListeners);
76
- navbarSlider.addEventListener('touchstart', setupEventListeners);
77
- // eslint-disable-next-line no-undef
78
- window.addEventListener('mouseup', removeEventListeners);
79
- })();
80
-
81
-
82
- // eslint-disable-next-line no-unused-vars
83
- function setupResizeOptions(options) {
84
- NAVBAR_OPTIONS = options;
85
- }
1
+ /* global document */
2
+
3
+ var NAVBAR_OPTIONS = {};
4
+
5
+ (function() {
6
+ var NAVBAR_RESIZE_LOCAL_STORAGE_KEY = 'NAVBAR_RESIZE_LOCAL_STORAGE_KEY';
7
+
8
+ var navbar = document.querySelector('#navbar');
9
+ var footer = document.querySelector('#footer');
10
+ var mainSection = document.querySelector('#main');
11
+ // eslint-disable-next-line no-undef
12
+ var localStorageResizeObject = JSON.parse(localStorage.getItem(NAVBAR_RESIZE_LOCAL_STORAGE_KEY));
13
+
14
+ /**
15
+ * Check whether we have any resize value in local storage or not.
16
+ * If we have resize value then resize the navbar.
17
+ **/
18
+ if (localStorageResizeObject) {
19
+ navbar.style.width = localStorageResizeObject.width;
20
+ mainSection.style.marginLeft = localStorageResizeObject.width;
21
+ footer.style.marginLeft = localStorageResizeObject.width;
22
+ }
23
+
24
+ var navbarSlider = document.querySelector('#navbar-resize');
25
+
26
+ function resizeNavbar(event) {
27
+ var pageX = event.pageX,
28
+ pageXPlusPx = event.pageX + 'px',
29
+ min = Number.parseInt(NAVBAR_OPTIONS.min, 10) || 300,
30
+ max = Number.parseInt(NAVBAR_OPTIONS.max, 10) || 600;
31
+
32
+ /**
33
+ * Just to add some checks. If min is smaller then 10 then
34
+ * user may accidentally end up reducing the size of navbar
35
+ * less than 10. In that case user will not able to resize navbar
36
+ * because navbar slider will be hidden.
37
+ */
38
+ if (min < 10) { min = 10; }
39
+
40
+ /**
41
+ * Only resize if pageX in range between min and max
42
+ * allowed value.
43
+ */
44
+ if (min < pageX && pageX < max) {
45
+ navbar.style.width = pageXPlusPx;
46
+ mainSection.style.marginLeft = pageXPlusPx;
47
+ footer.style.marginLeft = pageXPlusPx;
48
+ }
49
+ }
50
+
51
+
52
+ function setupEventListeners() {
53
+ // eslint-disable-next-line no-undef
54
+ window.addEventListener('mousemove', resizeNavbar);
55
+ // eslint-disable-next-line no-undef
56
+ window.addEventListener('touchmove', resizeNavbar);
57
+ }
58
+
59
+ function afterRemovingEventListeners() {
60
+ // eslint-disable-next-line no-undef
61
+ localStorage.setItem(NAVBAR_RESIZE_LOCAL_STORAGE_KEY, JSON.stringify({
62
+ width: navbar.style.width
63
+ }));
64
+ }
65
+
66
+ function removeEventListeners() {
67
+ // eslint-disable-next-line no-undef
68
+ window.removeEventListener('mousemove', resizeNavbar);
69
+ // eslint-disable-next-line no-undef
70
+ window.removeEventListener('touchend', resizeNavbar);
71
+ afterRemovingEventListeners();
72
+ }
73
+
74
+
75
+ navbarSlider.addEventListener('mousedown', setupEventListeners);
76
+ navbarSlider.addEventListener('touchstart', setupEventListeners);
77
+ // eslint-disable-next-line no-undef
78
+ window.addEventListener('mouseup', removeEventListeners);
79
+ })();
80
+
81
+
82
+ // eslint-disable-next-line no-unused-vars
83
+ function setupResizeOptions(options) {
84
+ NAVBAR_OPTIONS = options;
85
+ }
@@ -1,83 +1,83 @@
1
- /* global document */
2
- function hideSearchList() {
3
- document.getElementById('search-item-ul').style.display = 'none';
4
- }
5
-
6
- function showSearchList() {
7
- document.getElementById('search-item-ul').style.display = 'block';
8
- }
9
-
10
- function checkClick(e) {
11
- if ( e.target.id !== 'search-box-input') {
12
- setTimeout(function() {
13
- hideSearchList();
14
- }, 60);
15
-
16
- /* eslint-disable-next-line */
17
- window.removeEventListener('click', checkClick);
18
- }
19
- }
20
-
21
- function search(list, options, keys, searchKey) {
22
- var defaultOptions = {
23
- shouldSort: true,
24
- threshold: 0.4,
25
- location: 0,
26
- distance: 100,
27
- maxPatternLength: 32,
28
- minMatchCharLength: 1,
29
- keys: keys
30
- };
31
-
32
- var op = Object.assign({}, defaultOptions, options);
33
-
34
- // eslint-disable-next-line no-undef
35
- var searchIndex = Fuse.createIndex(op.keys, list);
36
-
37
- /* eslint-disable-next-line */
38
- var fuse = new Fuse(list, op, searchIndex);
39
-
40
- var result = fuse.search(searchKey);
41
-
42
- console.log(result, result.length);
43
- if (result.length > 20) { result = result.slice(0, 20); }
44
-
45
- console.log(result);
46
- var searchUL = document.getElementById('search-item-ul');
47
-
48
- searchUL.innerHTML = '';
49
-
50
- if (result.length === 0) {
51
- searchUL.innerHTML += '<li class="p-h-n"> No Result Found </li>';
52
- } else {
53
- result.forEach(function(obj) {
54
- searchUL.innerHTML += '<li>' + obj.item.link + '</li>';
55
- });
56
- }
57
- }
58
-
59
- /* eslint-disable-next-line */
60
- function setupSearch(list, options) {
61
- var inputBox = document.getElementById('search-box-input');
62
- var keys = ['title'];
63
-
64
- inputBox.addEventListener('keyup', function() {
65
- if (inputBox.value !== '') {
66
- showSearchList();
67
- search(list, options, keys, inputBox.value);
68
- }
69
- else { hideSearchList(); }
70
- });
71
-
72
- inputBox.addEventListener('focus', function() {
73
- showSearchList();
74
- if (inputBox.value !== '') {
75
- search(list, options, keys, inputBox.value);
76
- }
77
-
78
- /* eslint-disable-next-line */
79
- window.addEventListener('click', checkClick);
80
- });
81
- }
82
-
83
-
1
+ /* global document */
2
+ function hideSearchList() {
3
+ document.getElementById('search-item-ul').style.display = 'none';
4
+ }
5
+
6
+ function showSearchList() {
7
+ document.getElementById('search-item-ul').style.display = 'block';
8
+ }
9
+
10
+ function checkClick(e) {
11
+ if ( e.target.id !== 'search-box-input') {
12
+ setTimeout(function() {
13
+ hideSearchList();
14
+ }, 60);
15
+
16
+ /* eslint-disable-next-line */
17
+ window.removeEventListener('click', checkClick);
18
+ }
19
+ }
20
+
21
+ function search(list, options, keys, searchKey) {
22
+ var defaultOptions = {
23
+ shouldSort: true,
24
+ threshold: 0.4,
25
+ location: 0,
26
+ distance: 100,
27
+ maxPatternLength: 32,
28
+ minMatchCharLength: 1,
29
+ keys: keys
30
+ };
31
+
32
+ var op = Object.assign({}, defaultOptions, options);
33
+
34
+ // eslint-disable-next-line no-undef
35
+ var searchIndex = Fuse.createIndex(op.keys, list);
36
+
37
+ /* eslint-disable-next-line */
38
+ var fuse = new Fuse(list, op, searchIndex);
39
+
40
+ var result = fuse.search(searchKey);
41
+
42
+ console.log(result, result.length);
43
+ if (result.length > 20) { result = result.slice(0, 20); }
44
+
45
+ console.log(result);
46
+ var searchUL = document.getElementById('search-item-ul');
47
+
48
+ searchUL.innerHTML = '';
49
+
50
+ if (result.length === 0) {
51
+ searchUL.innerHTML += '<li class="p-h-n"> No Result Found </li>';
52
+ } else {
53
+ result.forEach(function(obj) {
54
+ searchUL.innerHTML += '<li>' + obj.item.link + '</li>';
55
+ });
56
+ }
57
+ }
58
+
59
+ /* eslint-disable-next-line */
60
+ function setupSearch(list, options) {
61
+ var inputBox = document.getElementById('search-box-input');
62
+ var keys = ['title'];
63
+
64
+ inputBox.addEventListener('keyup', function() {
65
+ if (inputBox.value !== '') {
66
+ showSearchList();
67
+ search(list, options, keys, inputBox.value);
68
+ }
69
+ else { hideSearchList(); }
70
+ });
71
+
72
+ inputBox.addEventListener('focus', function() {
73
+ showSearchList();
74
+ if (inputBox.value !== '') {
75
+ search(list, options, keys, inputBox.value);
76
+ }
77
+
78
+ /* eslint-disable-next-line */
79
+ window.addEventListener('click', checkClick);
80
+ });
81
+ }
82
+
83
+