clean-jsdoc-theme 4.1.7 → 4.1.9

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 (68) hide show
  1. package/.eslintignore +5 -5
  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 +1 -2
  10. package/.prettierrc +5 -5
  11. package/.stylelintignore +4 -4
  12. package/.stylelintrc +18 -23
  13. package/.travis.yml +30 -30
  14. package/CHANGELOG.md +256 -235
  15. package/CODE_OF_CONDUCT.md +76 -76
  16. package/CODE_OF_CONDUCT_HINDI.md +61 -46
  17. package/CONTRIBUTING.md +36 -24
  18. package/LICENSE +21 -21
  19. package/README.md +497 -456
  20. package/SECURITY.md +21 -21
  21. package/helpers/down-arrow.js +9 -9
  22. package/jsdoc-config.json +62 -61
  23. package/minify.js +60 -56
  24. package/package.json +52 -50
  25. package/publish.js +1138 -1129
  26. package/static/scripts/core.js +662 -656
  27. package/static/scripts/core.min.js +23 -23
  28. package/static/scripts/resize.js +90 -90
  29. package/static/scripts/search.js +262 -262
  30. package/static/scripts/third-party/Apache-License-2.0.txt +202 -202
  31. package/static/scripts/third-party/fuse.js +8 -8
  32. package/static/scripts/third-party/hljs-line-num-original.js +369 -365
  33. package/static/scripts/third-party/hljs-line-num.js +1 -1
  34. package/static/scripts/third-party/hljs-original.js +5171 -5162
  35. package/static/scripts/third-party/hljs.js +1 -1
  36. package/static/scripts/third-party/popper.js +5 -5
  37. package/static/scripts/third-party/tippy.js +1 -1
  38. package/static/scripts/third-party/tocbot.js +672 -1
  39. package/static/scripts/third-party/tocbot.min.js +1 -0
  40. package/static/styles/clean-jsdoc-theme-base.css +968 -968
  41. package/static/styles/clean-jsdoc-theme-dark.css +407 -407
  42. package/static/styles/clean-jsdoc-theme-light.css +388 -388
  43. package/tmpl/augments.tmpl +10 -10
  44. package/tmpl/container.tmpl +190 -190
  45. package/tmpl/details.tmpl +207 -207
  46. package/tmpl/example.tmpl +3 -3
  47. package/tmpl/examples.tmpl +40 -40
  48. package/tmpl/exceptions.tmpl +32 -32
  49. package/tmpl/icons.tmpl +72 -72
  50. package/tmpl/layout.tmpl +157 -157
  51. package/tmpl/mainpage.tmpl +10 -10
  52. package/tmpl/members.tmpl +42 -42
  53. package/tmpl/method.tmpl +156 -139
  54. package/tmpl/mobile-sidebar.tmpl +20 -20
  55. package/tmpl/navbar-actions.tmpl +18 -18
  56. package/tmpl/navbar-menu.tmpl +24 -24
  57. package/tmpl/navbar.tmpl +13 -13
  58. package/tmpl/params.tmpl +124 -124
  59. package/tmpl/properties.tmpl +109 -109
  60. package/tmpl/returns.tmpl +18 -18
  61. package/tmpl/search.tmpl +16 -16
  62. package/tmpl/sidebar-items.tmpl +23 -23
  63. package/tmpl/sidebar-title.tmpl +9 -9
  64. package/tmpl/sidebar.tmpl +8 -8
  65. package/tmpl/source.tmpl +12 -12
  66. package/tmpl/toc.tmpl +3 -3
  67. package/tmpl/tutorial.tmpl +19 -19
  68. package/tmpl/type.tmpl +12 -7
package/tmpl/icons.tmpl CHANGED
@@ -1,73 +1,73 @@
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>
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
73
  </svg>
package/tmpl/layout.tmpl CHANGED
@@ -1,157 +1,157 @@
1
- <!DOCTYPE html>
2
- <html lang="en" style="font-size: 16px">
3
-
4
- <head>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
-
8
- <!-- Adding favicon -->
9
- <?js if(this.favicon != undefined) { ?>
10
- <link rel="icon" href="<?js= this.favicon?>" />
11
- <?js } ?>
12
-
13
- <!-- Adding meta -->
14
- <?js if(this.meta != undefined) { ?>
15
- <?js this.meta.forEach(function(src){ ?>
16
- <meta <?js= Object.keys(src).map(key=> `${key}="${src[key]}"`).join(" ") ?> />
17
- <?js }) ?>
18
- <?js } ?>
19
-
20
- <!-- Adding external script-->
21
- <?js if(this.dynamicScriptSrc != undefined) { ?>
22
- <?js this.dynamicScriptSrc.forEach(function(src){ ?>
23
- <script <?js= Object.keys(src).map(key=> `${key}="${src[key]}"`).join(" ") ?> ></script>
24
- <?js }) ?>
25
- <?js } ?>
26
-
27
- <!-- Adding external style-->
28
- <?js if(this.dynamicStyleSrc != undefined) { ?>
29
- <?js this.dynamicStyleSrc.forEach(function(src){ ?>
30
- <link <?js= Object.keys(src).map(key=> `${key}="${src[key]}"`).join(" ") ?> />
31
- <?js }) ?>
32
- <?js } ?>
33
-
34
- <!-- Adding scripts-->
35
- <?js if(this.includeScript != undefined) { ?>
36
- <?js this.includeScript.forEach(function(source){ ?>
37
- <script src="<?js= source ?>"></script>
38
- <?js }) ?>
39
- <?js } ?>
40
-
41
- <!-- Adding style-->
42
- <?js if(this.includeCss != undefined) { ?>
43
- <?js this.includeCss.forEach(function(source){ ?>
44
- <link type="text/css" rel="stylesheet" href="<?js= source ?>">
45
- <?js }) ?>
46
- <?js } ?>
47
-
48
-
49
- <title>
50
- <?js= title ?>
51
- </title>
52
-
53
- <!--[if lt IE 9]>
54
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
55
- <![endif]-->
56
-
57
- <script src="scripts/third-party/hljs.js" defer></script>
58
- <script src="scripts/third-party/hljs-line-num.js" defer></script>
59
- <script src="scripts/third-party/popper.js" defer></script>
60
- <script src="scripts/third-party/tippy.js" defer></script>
61
- <script src="scripts/third-party/tocbot.js"></script>
62
-
63
- <script>
64
- var baseURL = "/"
65
- var locationPathname = ""
66
-
67
- // Global variables
68
- <?js if (this.baseURL) { ?>
69
- baseURL = "<?js= this.baseURL ?>"
70
- baseURL = baseURL.replace(/https?:\/\//i, '')
71
- baseURL = baseURL.substr(baseURL.indexOf("/"))
72
- <?js } else { ?>
73
- locationPathname = document.location.pathname
74
- baseURL = locationPathname.substr(0, locationPathname.lastIndexOf("/") + 1)
75
- <?js } ?>
76
-
77
- </script>
78
-
79
- <link rel="stylesheet" href="styles/clean-jsdoc-theme.min.css">
80
- <?js if(this.dynamicStyle != undefined ) { ?>
81
- <style>
82
- <?js= this.dynamicStyle ?>
83
- </style>
84
- <?js } ?>
85
- <?js= this.partial('icons.tmpl') ?>
86
-
87
- </head>
88
-
89
- <body class="<?js= this.theme ?>" data-theme="<?js= this.theme?>">
90
-
91
- <div class="sidebar-container">
92
- <?js= this.partial('sidebar.tmpl') ?>
93
- </div>
94
-
95
- <div class="navbar-container" id="VuAckcnZhf">
96
- <?js= this.partial('navbar.tmpl') ?>
97
- </div>
98
-
99
- <div class="toc-container">
100
- <?js= this.partial('toc.tmpl') ?>
101
- </div>
102
-
103
- <div class="body-wrapper">
104
- <div class="main-content">
105
- <div class="main-wrapper">
106
- <?js= content ?>
107
-
108
- <?js if(this.footer) {?>
109
-
110
- <footer class="footer" id="PeOAagUepe">
111
- <div class="wrapper">
112
- <?js= this.footer ?>
113
- </div>
114
- </footer>
115
- <?js } ?>
116
-
117
- </div>
118
- </div>
119
-
120
- </div>
121
-
122
- <?js if(this.navbar.search) { ?>
123
- <?js= this.partial('search.tmpl')?>
124
- <?js } ?>
125
-
126
- <?js= this.partial('mobile-sidebar.tmpl') ?>
127
-
128
- <script type="text/javascript" src="scripts/core.min.js"></script>
129
-
130
- <?js if(this.navbar.search !== 'false') { ?>
131
- <script src="scripts/search.min.js" defer></script>
132
- <script src="scripts/third-party/fuse.js" defer></script>
133
- <?js } ?>
134
-
135
- <?js if(this.dynamicScript != undefined ) { ?>
136
- <script type="text/javascript">
137
- <?js= this.dynamicScript ?>
138
- </script>
139
- <?js } ?>
140
-
141
-
142
- <script type="text/javascript">
143
- tocbot.init({
144
- tocSelector: '#eed4d2a0bfd64539bb9df78095dec881',
145
- contentSelector: '.main-content',
146
- headingSelector: 'h1, h2, h3',
147
- hasInnerContainers: true,
148
- scrollContainer: '.main-content',
149
- headingsOffset: 130,
150
- onClick: bringLinkToView
151
- });
152
-
153
- </script>
154
-
155
- </body>
156
-
157
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en" style="font-size: 16px">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+
8
+ <!-- Adding favicon -->
9
+ <?js if(this.favicon != undefined) { ?>
10
+ <link rel="icon" href="<?js= this.favicon?>" />
11
+ <?js } ?>
12
+
13
+ <!-- Adding meta -->
14
+ <?js if(this.meta != undefined) { ?>
15
+ <?js this.meta.forEach(function(src){ ?>
16
+ <meta <?js= Object.keys(src).map(key=> `${key}="${src[key]}"`).join(" ") ?> />
17
+ <?js }) ?>
18
+ <?js } ?>
19
+
20
+ <!-- Adding external script-->
21
+ <?js if(this.dynamicScriptSrc != undefined) { ?>
22
+ <?js this.dynamicScriptSrc.forEach(function(src){ ?>
23
+ <script <?js= Object.keys(src).map(key=> `${key}="${src[key]}"`).join(" ") ?> ></script>
24
+ <?js }) ?>
25
+ <?js } ?>
26
+
27
+ <!-- Adding external style-->
28
+ <?js if(this.dynamicStyleSrc != undefined) { ?>
29
+ <?js this.dynamicStyleSrc.forEach(function(src){ ?>
30
+ <link <?js= Object.keys(src).map(key=> `${key}="${src[key]}"`).join(" ") ?> />
31
+ <?js }) ?>
32
+ <?js } ?>
33
+
34
+ <!-- Adding scripts-->
35
+ <?js if(this.includeScript != undefined) { ?>
36
+ <?js this.includeScript.forEach(function(source){ ?>
37
+ <script src="<?js= source ?>"></script>
38
+ <?js }) ?>
39
+ <?js } ?>
40
+
41
+ <!-- Adding style-->
42
+ <?js if(this.includeCss != undefined) { ?>
43
+ <?js this.includeCss.forEach(function(source){ ?>
44
+ <link type="text/css" rel="stylesheet" href="<?js= source ?>">
45
+ <?js }) ?>
46
+ <?js } ?>
47
+
48
+
49
+ <title>
50
+ <?js= title ?>
51
+ </title>
52
+
53
+ <!--[if lt IE 9]>
54
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
55
+ <![endif]-->
56
+
57
+ <script src="scripts/third-party/hljs.js" defer></script>
58
+ <script src="scripts/third-party/hljs-line-num.js" defer></script>
59
+ <script src="scripts/third-party/popper.js" defer></script>
60
+ <script src="scripts/third-party/tippy.js" defer></script>
61
+ <script src="scripts/third-party/tocbot.min.js"></script>
62
+
63
+ <script>
64
+ var baseURL = "/"
65
+ var locationPathname = ""
66
+
67
+ // Global variables
68
+ <?js if (this.baseURL) { ?>
69
+ baseURL = "<?js= this.baseURL ?>"
70
+ baseURL = baseURL.replace(/https?:\/\//i, '')
71
+ baseURL = baseURL.substr(baseURL.indexOf("/"))
72
+ <?js } else { ?>
73
+ locationPathname = document.location.pathname
74
+ baseURL = locationPathname.substr(0, locationPathname.lastIndexOf("/") + 1)
75
+ <?js } ?>
76
+
77
+ </script>
78
+
79
+ <link rel="stylesheet" href="styles/clean-jsdoc-theme.min.css">
80
+ <?js if(this.dynamicStyle != undefined ) { ?>
81
+ <style>
82
+ <?js= this.dynamicStyle ?>
83
+ </style>
84
+ <?js } ?>
85
+ <?js= this.partial('icons.tmpl') ?>
86
+
87
+ </head>
88
+
89
+ <body class="<?js= this.theme ?>" data-theme="<?js= this.theme?>">
90
+
91
+ <div class="sidebar-container">
92
+ <?js= this.partial('sidebar.tmpl') ?>
93
+ </div>
94
+
95
+ <div class="navbar-container" id="VuAckcnZhf">
96
+ <?js= this.partial('navbar.tmpl') ?>
97
+ </div>
98
+
99
+ <div class="toc-container">
100
+ <?js= this.partial('toc.tmpl') ?>
101
+ </div>
102
+
103
+ <div class="body-wrapper">
104
+ <div class="main-content">
105
+ <div class="main-wrapper">
106
+ <?js= content ?>
107
+
108
+ <?js if(this.footer) {?>
109
+
110
+ <footer class="footer" id="PeOAagUepe">
111
+ <div class="wrapper">
112
+ <?js= this.footer ?>
113
+ </div>
114
+ </footer>
115
+ <?js } ?>
116
+
117
+ </div>
118
+ </div>
119
+
120
+ </div>
121
+
122
+ <?js if(this.navbar.search) { ?>
123
+ <?js= this.partial('search.tmpl')?>
124
+ <?js } ?>
125
+
126
+ <?js= this.partial('mobile-sidebar.tmpl') ?>
127
+
128
+ <script type="text/javascript" src="scripts/core.min.js"></script>
129
+
130
+ <?js if(this.navbar.search !== 'false') { ?>
131
+ <script src="scripts/search.min.js" defer></script>
132
+ <script src="scripts/third-party/fuse.js" defer></script>
133
+ <?js } ?>
134
+
135
+ <?js if(this.dynamicScript != undefined ) { ?>
136
+ <script type="text/javascript">
137
+ <?js= this.dynamicScript ?>
138
+ </script>
139
+ <?js } ?>
140
+
141
+
142
+ <script type="text/javascript">
143
+ var tocbotInstance = tocbot.init({
144
+ tocSelector: '#eed4d2a0bfd64539bb9df78095dec881',
145
+ contentSelector: '.main-content',
146
+ headingSelector: 'h1, h2, h3',
147
+ hasInnerContainers: true,
148
+ scrollContainer: '.main-content',
149
+ headingsOffset: 130,
150
+ onClick: bringLinkToView
151
+ });
152
+
153
+ </script>
154
+
155
+ </body>
156
+
157
+ </html>
@@ -1,10 +1,10 @@
1
- <?js
2
- var data = obj;
3
- var self = this;
4
- ?>
5
-
6
- <?js if (data.readme) { ?>
7
- <section class="readme">
8
- <article><?js= data.readme ?></article>
9
- </section>
10
- <?js } ?>
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ ?>
5
+
6
+ <?js if (data.readme) { ?>
7
+ <section class="readme">
8
+ <article><?js= data.readme ?></article>
9
+ </section>
10
+ <?js } ?>
package/tmpl/members.tmpl CHANGED
@@ -1,42 +1,42 @@
1
- <?js
2
- var data = obj;
3
- var self = this;
4
- ?>
5
- <h3 class="name has-anchor" id="<?js= id ?>">
6
- <?js= data.attribs + name + (data.signature ? data.signature : '') ?>
7
- </h3>
8
-
9
- <?js if (data.summary) { ?>
10
- <p class="summary"><?js= summary ?></p>
11
- <?js } ?>
12
-
13
- <?js if (data.description) { ?>
14
- <div class="description">
15
- <?js= data.description ?>
16
- </div>
17
- <?js } ?>
18
-
19
- <?js if (data.type && data.type.names) {?>
20
- <div class="member-item-container flex">
21
- <strong>Type: </strong>
22
- <ul>
23
- <li>
24
- <?js= self.partial('type.tmpl', data.type.names) ?>
25
- </li>
26
- </ul>
27
- </div>
28
- <?js } ?>
29
-
30
- <?js= this.partial('details.tmpl', data) ?>
31
-
32
- <?js if (data.fires && fires.length) { ?>
33
- <b>Fires:</b>
34
- <ul><?js fires.forEach(function(f) { ?>
35
- <li><?js= self.linkto(f) ?></li>
36
- <?js }); ?></ul>
37
- <?js } ?>
38
-
39
- <?js if (data.examples && examples.length) { ?>
40
- <b>Example<?js= examples.length > 1? 's':'' ?></b>
41
- <?js= this.partial('examples.tmpl', examples) ?>
42
- <?js } ?>
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ ?>
5
+ <h3 class="name has-anchor" id="<?js= id ?>">
6
+ <?js= data.attribs + name + (data.signature ? data.signature : '') ?>
7
+ </h3>
8
+
9
+ <?js if (data.summary) { ?>
10
+ <div class="summary"><?js= summary ?></div>
11
+ <?js } ?>
12
+
13
+ <?js if (data.description) { ?>
14
+ <div class="description">
15
+ <?js= data.description ?>
16
+ </div>
17
+ <?js } ?>
18
+
19
+ <?js if (data.type && data.type.names) {?>
20
+ <div class="member-item-container flex">
21
+ <strong>Type: </strong>
22
+ <ul>
23
+ <li>
24
+ <?js= self.partial('type.tmpl', data.type.names) ?>
25
+ </li>
26
+ </ul>
27
+ </div>
28
+ <?js } ?>
29
+
30
+ <?js= this.partial('details.tmpl', data) ?>
31
+
32
+ <?js if (data.fires && fires.length) { ?>
33
+ <b>Fires:</b>
34
+ <ul><?js fires.forEach(function(f) { ?>
35
+ <li><?js= self.linkto(f) ?></li>
36
+ <?js }); ?></ul>
37
+ <?js } ?>
38
+
39
+ <?js if (data.examples && examples.length) { ?>
40
+ <b>Example<?js= examples.length > 1? 's':'' ?></b>
41
+ <?js= this.partial('examples.tmpl', examples) ?>
42
+ <?js } ?>