clean-jsdoc-theme 3.3.1 → 3.3.4
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/.eslintignore +4 -4
- package/.eslintrc.js +3 -3
- package/.github/ISSUE_TEMPLATE/bug_report.md +43 -43
- package/.github/ISSUE_TEMPLATE/feature_request.md +27 -27
- package/.github/pull_request_template.md +16 -16
- package/.github/workflows/codeql-analysis.yml +67 -67
- package/.prettierignore +2 -2
- package/.prettierrc +5 -5
- package/.stylelintignore +3 -3
- package/.stylelintrc +23 -23
- package/.travis.yml +30 -30
- package/CHANGELOG.md +216 -210
- package/CODE_OF_CONDUCT.md +76 -76
- package/CODE_OF_CONDUCT_HINDI.md +46 -46
- package/CONTRIBUTING.md +24 -24
- package/LICENSE +21 -21
- package/README.md +546 -535
- package/SECURITY.md +21 -21
- package/helpers/down-arrow.js +9 -9
- package/jsdoc-config.json +60 -60
- package/package.json +46 -46
- package/publish.js +1197 -1195
- package/static/fonts/Montserrat-Regular.ttf +0 -0
- package/static/fonts/OFL-hind.txt +0 -0
- package/static/fonts/OFL-montserrat.txt +0 -0
- package/static/scripts/fix-code-block.js +53 -53
- package/static/scripts/fix-navbar.js +25 -25
- package/static/scripts/linenumber.js +25 -25
- package/static/scripts/misc.js +217 -217
- package/static/scripts/resize.js +85 -85
- package/static/scripts/search.js +77 -83
- package/static/scripts/third-party/Apache-License-2.0.txt +202 -202
- package/static/scripts/third-party/fuse.js +8 -8
- package/static/scripts/third-party/lang-css.js +2 -2
- package/static/scripts/third-party/prettify.js +28 -28
- package/static/styles/clean-jsdoc-theme-base.css +393 -393
- package/static/styles/clean-jsdoc-theme-dark.css +324 -324
- package/static/styles/clean-jsdoc-theme-light.css +319 -319
- package/static/styles/reset.css +351 -351
- package/static/styles/third-party/ionicons.min.css +11 -11
- package/static/styles/third-party/prettify-jsdoc.css +111 -111
- package/static/styles/third-party/prettify-tomorrow.css +5 -5
- package/tmpl/augments.tmpl +10 -10
- package/tmpl/container.tmpl +189 -189
- package/tmpl/details.tmpl +208 -208
- package/tmpl/example.tmpl +3 -3
- package/tmpl/examples.tmpl +38 -38
- package/tmpl/exceptions.tmpl +32 -32
- package/tmpl/icons.tmpl +34 -34
- package/tmpl/layout.tmpl +165 -171
- package/tmpl/mainpage.tmpl +10 -10
- package/tmpl/members.tmpl +43 -43
- package/tmpl/method.tmpl +140 -140
- package/tmpl/params.tmpl +124 -124
- package/tmpl/properties.tmpl +109 -109
- package/tmpl/returns.tmpl +18 -18
- package/tmpl/source.tmpl +7 -7
- package/tmpl/tutorial.tmpl +19 -19
- package/tmpl/type.tmpl +6 -6
package/static/scripts/resize.js
CHANGED
|
@@ -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
|
+
}
|
package/static/scripts/search.js
CHANGED
|
@@ -1,83 +1,77 @@
|
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
+
if (result.length > 20) { result = result.slice(0, 20); }
|
|
43
|
+
|
|
44
|
+
var searchUL = document.getElementById('search-item-ul');
|
|
45
|
+
|
|
46
|
+
if (result.length === 0) {
|
|
47
|
+
searchUL.innerHTML = '<li class="p-h-n"> No Result Found </li>';
|
|
48
|
+
} else {
|
|
49
|
+
searchUL.innerHTML = result.reduce(function(html, obj) {
|
|
50
|
+
return html + '<li>' + obj.item.link + '</li>';
|
|
51
|
+
}, '');
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* eslint-disable-next-line */
|
|
56
|
+
function setupSearch(list, options) {
|
|
57
|
+
var inputBox = document.getElementById('search-box-input');
|
|
58
|
+
var keys = ['title'];
|
|
59
|
+
|
|
60
|
+
inputBox.addEventListener('keyup', function() {
|
|
61
|
+
if (inputBox.value !== '') {
|
|
62
|
+
showSearchList();
|
|
63
|
+
search(list, options, keys, inputBox.value);
|
|
64
|
+
}
|
|
65
|
+
else { hideSearchList(); }
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
inputBox.addEventListener('focus', function() {
|
|
69
|
+
showSearchList();
|
|
70
|
+
if (inputBox.value !== '') {
|
|
71
|
+
search(list, options, keys, inputBox.value);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* eslint-disable-next-line */
|
|
75
|
+
window.addEventListener('click', checkClick);
|
|
76
|
+
});
|
|
77
|
+
}
|