clean-jsdoc-theme 3.3.4 → 4.0.3

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/.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 → codeql.yml} +72 -67
  7. package/.github/workflows/greetings.yml +16 -0
  8. package/.prettierignore +2 -2
  9. package/.prettierrc +5 -5
  10. package/.stylelintignore +3 -3
  11. package/.stylelintrc +23 -23
  12. package/.travis.yml +30 -30
  13. package/CHANGELOG.md +232 -216
  14. package/CODE_OF_CONDUCT.md +76 -76
  15. package/CODE_OF_CONDUCT_HINDI.md +46 -46
  16. package/CONTRIBUTING.md +24 -24
  17. package/LICENSE +21 -21
  18. package/README.md +441 -546
  19. package/SECURITY.md +21 -21
  20. package/helpers/down-arrow.js +9 -9
  21. package/jsdoc-config.json +62 -60
  22. package/minify.js +52 -0
  23. package/package.json +50 -46
  24. package/publish.js +1131 -1197
  25. package/static/fonts/Inconsolata-Regular.ttf +0 -0
  26. package/static/fonts/OpenSans-Regular.ttf +0 -0
  27. package/static/fonts/WorkSans-Bold.ttf +0 -0
  28. package/static/scripts/core.js +576 -0
  29. package/static/scripts/core.min.js +23 -0
  30. package/static/scripts/resize.js +90 -85
  31. package/static/scripts/search.js +244 -77
  32. package/static/scripts/search.min.js +11 -0
  33. package/static/scripts/third-party/Apache-License-2.0.txt +202 -202
  34. package/static/scripts/third-party/fuse.js +8 -8
  35. package/static/scripts/third-party/hljs-line-num.js +1 -0
  36. package/static/scripts/third-party/hljs-original.js +5162 -0
  37. package/static/scripts/third-party/hljs.js +1 -0
  38. package/static/scripts/third-party/popper.js +6 -0
  39. package/static/scripts/third-party/tippy.js +2 -0
  40. package/static/scripts/third-party/tocbot.js +1 -0
  41. package/static/styles/clean-jsdoc-theme-base.css +959 -393
  42. package/static/styles/clean-jsdoc-theme-dark.css +407 -324
  43. package/static/styles/clean-jsdoc-theme-light.css +388 -319
  44. package/static/styles/clean-jsdoc-theme.min.css +1 -0
  45. package/tmpl/augments.tmpl +10 -10
  46. package/tmpl/container.tmpl +190 -189
  47. package/tmpl/details.tmpl +208 -208
  48. package/tmpl/example.tmpl +3 -3
  49. package/tmpl/examples.tmpl +40 -38
  50. package/tmpl/exceptions.tmpl +32 -32
  51. package/tmpl/icons.tmpl +72 -34
  52. package/tmpl/layout.tmpl +146 -165
  53. package/tmpl/mainpage.tmpl +10 -10
  54. package/tmpl/members.tmpl +42 -43
  55. package/tmpl/method.tmpl +139 -140
  56. package/tmpl/mobile-sidebar.tmpl +21 -0
  57. package/tmpl/navbar-actions.tmpl +19 -0
  58. package/tmpl/navbar-menu.tmpl +25 -0
  59. package/tmpl/navbar.tmpl +14 -0
  60. package/tmpl/params.tmpl +124 -124
  61. package/tmpl/properties.tmpl +109 -109
  62. package/tmpl/returns.tmpl +18 -18
  63. package/tmpl/search.tmpl +17 -0
  64. package/tmpl/sidebar-items.tmpl +24 -0
  65. package/tmpl/sidebar-title.tmpl +10 -0
  66. package/tmpl/sidebar.tmpl +9 -0
  67. package/tmpl/source.tmpl +12 -7
  68. package/tmpl/toc.tmpl +4 -0
  69. package/tmpl/tutorial.tmpl +19 -19
  70. package/tmpl/type.tmpl +6 -6
  71. package/helpers/navbarBuilder.js +0 -0
  72. package/static/fonts/MavenPro-Regular.ttf +0 -0
  73. package/static/fonts/Montserrat-Regular.ttf +0 -0
  74. package/static/fonts/Muli-Black.ttf +0 -0
  75. package/static/fonts/OFL-hind.txt +0 -93
  76. package/static/fonts/OFL-montserrat.txt +0 -93
  77. package/static/scripts/fix-code-block.js +0 -53
  78. package/static/scripts/fix-navbar.js +0 -25
  79. package/static/scripts/linenumber.js +0 -25
  80. package/static/scripts/misc.js +0 -217
  81. package/static/scripts/third-party/lang-css.js +0 -2
  82. package/static/scripts/third-party/prettify.js +0 -28
  83. package/static/styles/reset.css +0 -351
  84. package/static/styles/third-party/ionicons.min.css +0 -11
  85. package/static/styles/third-party/prettify-jsdoc.css +0 -111
  86. package/static/styles/third-party/prettify-tomorrow.css +0 -5
package/tmpl/icons.tmpl CHANGED
@@ -1,35 +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="down-icon" viewBox="0 0 16 16">
27
- <path
28
- fill-rule="evenodd"
29
- clip-rule="evenodd"
30
- 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"
31
- >
32
- </path>
33
- </symbol>
34
- </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>
35
73
  </svg>
package/tmpl/layout.tmpl CHANGED
@@ -1,165 +1,146 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
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
- <!-- Adding overlay script-->
49
- <?js if(this.overlayScrollbar != undefined) { ?>
50
- <script src="https://cdnjs.cloudflare.com/ajax/libs/overlayscrollbars/1.13.0/js/OverlayScrollbars.min.js"
51
- integrity="sha512-5R3ngaUdvyhXkQkIqTf/k+Noq3phjmrqlUQyQYbgfI34Mzcx7vLIIYTy/K1VMHkL33T709kfh5y6R9Xy/Cbt7Q=="
52
- crossorigin="anonymous"></script>
53
- <?js } ?>
54
-
55
- <!-- Adding overlay style-->
56
- <?js if(this.includeCss != undefined) { ?>
57
- <link rel="stylesheet"
58
- href="https://cdnjs.cloudflare.com/ajax/libs/overlayscrollbars/1.13.0/css/OverlayScrollbars.min.css"
59
- integrity="sha512-pYQcc5kgavar0ah58/O8hw/6Tbo3mWlmQTmvoi1i96cBz7jQYS9as5J+Nfy32rAHY6CgR9ExwnFMcBdGVcKM7g=="
60
- crossorigin="anonymous" />
61
- <?js } ?>
62
-
63
-
64
- <title>
65
- <?js= title ?>
66
- </title>
67
-
68
- <!--[if lt IE 9]>
69
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
70
- <![endif]-->
71
- <link type="text/css" rel="stylesheet" href="styles/third-party/ionicons.min.css">
72
- <link type="text/css" rel="stylesheet" href="styles/third-party/prettify-tomorrow.css">
73
- <link type="text/css" rel="stylesheet" href="styles/reset.css">
74
- <link type="text/css" rel="stylesheet" href="styles/clean-jsdoc-theme-base.css">
75
- <link type="text/css" rel="stylesheet" href="styles/<?js= this.theme ?>">
76
- <?js if(this.dynamicStyle != undefined ) { ?>
77
- <style>
78
- <?js= this.dynamicStyle ?>
79
- </style>
80
- <?js } ?>
81
- <?js= this.partial('icons.tmpl') ?>
82
- </head>
83
-
84
- <body>
85
-
86
- <nav class="navbar" id="navbar">
87
- <?js= this.nav ?>
88
- <?js if(this.resizeable.navbar !== undefined) { ?>
89
- <div class="navbar-resize" id="navbar-resize">
90
- <div class="resize-dots-container">
91
- <div class="dots"></div>
92
- <div class="dots"></div>
93
- <div class="dots"></div>
94
- </div>
95
- </div>
96
- <?js } ?>
97
-
98
- </nav>
99
- <div class="navbar-ham" id="navbar-ham">
100
- <div>
101
- <div class="first"></div>
102
- <div class="second"></div>
103
- <div class="third"></div>
104
- </div>
105
- </div>
106
-
107
- <div id="main" class="main-content">
108
- <?js if (title != 'Home') { ?>
109
- <h1 id='page-title' class="page-title">
110
- <?js= title ?>
111
- </h1>
112
- <?js } ?>
113
-
114
- <?js= content ?>
115
- </div>
116
-
117
- <footer class="footer" id="footer">
118
- <?js= this.footer ?>
119
- </footer>
120
-
121
- <script src="scripts/third-party/prettify.js"></script>
122
- <script src="scripts/third-party/lang-css.js"></script>
123
- <script type="text/javascript" src="scripts/misc.js"></script>
124
-
125
- <script>prettyPrint();</script>
126
- <script src="scripts/linenumber.js"></script>
127
- <script src="scripts/fix-code-block.js"></script>
128
- <script src="scripts/fix-navbar.js"></script>
129
- <?js if(this.search.options !== 'false') { ?>
130
- <script src="scripts/search.js"></script>
131
- <script src="scripts/third-party/fuse.js"></script>
132
- <script>
133
- var list = [<?js= this.search.list ?>];
134
- var options = <?js= this.search.options ?>
135
- setupSearch(list, options)
136
- </script>
137
- <?js } ?>
138
-
139
- <?js if(this.dynamicScript != undefined ) { ?>
140
- <script type="text/javascript">
141
- <?js= this.dynamicScript ?>
142
- </script>
143
- <?js } ?>
144
-
145
- <?js if(this.resizeable.navbar != undefined ) { ?>
146
- <script src="scripts/resize.js"></script>
147
- <script type="text/javascript">
148
- var option = <?js= JSON.stringify(this.resizeable.navbar) ?>
149
- setupResizeOptions(option)
150
- </script>
151
- <?js } ?>
152
-
153
- <?js if(this.overlayScrollbar != undefined ) { ?>
154
- <script type="text/javascript">
155
- var option = JSON.parse('<?js=this.overlayScrollbar ?>')
156
- document.addEventListener("DOMContentLoaded", function () {
157
- OverlayScrollbars(document.querySelectorAll('body'), option.option || {});
158
- });
159
- </script>
160
- <?js } ?>
161
-
162
-
163
- </body>
164
-
165
- </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.js"></script>
62
+
63
+ <script>
64
+ // Global variables
65
+ var baseURL = "<?js= this.baseURL ?>"
66
+ </script>
67
+
68
+ <link rel="stylesheet" href="styles/clean-jsdoc-theme.min.css">
69
+ <?js if(this.dynamicStyle != undefined ) { ?>
70
+ <style>
71
+ <?js= this.dynamicStyle ?>
72
+ </style>
73
+ <?js } ?>
74
+ <?js= this.partial('icons.tmpl') ?>
75
+
76
+ </head>
77
+
78
+ <body class="<?js= this.theme ?>" data-theme="<?js= this.theme?>">
79
+
80
+ <div class="sidebar-container">
81
+ <?js= this.partial('sidebar.tmpl') ?>
82
+ </div>
83
+
84
+ <div class="navbar-container" id="navbar">
85
+ <?js= this.partial('navbar.tmpl') ?>
86
+ </div>
87
+
88
+ <div class="toc-container">
89
+ <?js= this.partial('toc.tmpl') ?>
90
+ </div>
91
+
92
+ <div class="body-wrapper">
93
+ <div class="main-content">
94
+ <div class="main-wrapper">
95
+ <?js= content ?>
96
+
97
+ <?js if(this.footer) {?>
98
+
99
+ <footer class="footer" id="footer">
100
+ <div class="wrapper">
101
+ <?js= this.footer ?>
102
+ </div>
103
+ </footer>
104
+ <?js } ?>
105
+
106
+ </div>
107
+ </div>
108
+
109
+ </div>
110
+
111
+ <?js if(this.navbar.search) { ?>
112
+ <?js= this.partial('search.tmpl')?>
113
+ <?js } ?>
114
+
115
+ <?js= this.partial('mobile-sidebar.tmpl') ?>
116
+
117
+ <script type="text/javascript" src="scripts/core.min.js"></script>
118
+
119
+ <?js if(this.navbar.search !== 'false') { ?>
120
+ <script src="scripts/search.min.js" defer></script>
121
+ <script src="scripts/third-party/fuse.js" defer></script>
122
+ <?js } ?>
123
+
124
+ <?js if(this.dynamicScript != undefined ) { ?>
125
+ <script type="text/javascript">
126
+ <?js= this.dynamicScript ?>
127
+ </script>
128
+ <?js } ?>
129
+
130
+
131
+ <script type="text/javascript">
132
+ tocbot.init({
133
+ tocSelector: '#toc',
134
+ contentSelector: '.main-content',
135
+ headingSelector: 'h1, h2, h3',
136
+ hasInnerContainers: true,
137
+ scrollContainer: '.main-content',
138
+ headingsOffset: 130,
139
+ onClick: bringLinkToView
140
+ });
141
+
142
+ </script>
143
+
144
+ </body>
145
+
146
+ </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,43 +1,42 @@
1
- <?js
2
- var data = obj;
3
- var self = this;
4
- ?>
5
- <h4 class="name" id="<?js= id ?>">
6
- <a href="#<?js= id ?>">#</a>
7
- <?js= data.attribs + name + (data.signature ? data.signature : '') ?>
8
- </h4>
9
-
10
- <?js if (data.summary) { ?>
11
- <p class="summary"><?js= summary ?></p>
12
- <?js } ?>
13
-
14
- <?js if (data.description) { ?>
15
- <div class="description">
16
- <?js= data.description ?>
17
- </div>
18
- <?js } ?>
19
-
20
- <?js if (data.type && data.type.names) {?>
21
- <div class="member-item-container flex">
22
- <strong>Type: </strong>
23
- <ul>
24
- <li>
25
- <?js= self.partial('type.tmpl', data.type.names) ?>
26
- </li>
27
- </ul>
28
- </div>
29
- <?js } ?>
30
-
31
- <?js= this.partial('details.tmpl', data) ?>
32
-
33
- <?js if (data.fires && fires.length) { ?>
34
- <h5>Fires:</h5>
35
- <ul><?js fires.forEach(function(f) { ?>
36
- <li><?js= self.linkto(f) ?></li>
37
- <?js }); ?></ul>
38
- <?js } ?>
39
-
40
- <?js if (data.examples && examples.length) { ?>
41
- <h5>Example<?js= examples.length > 1? 's':'' ?></h5>
42
- <?js= this.partial('examples.tmpl', examples) ?>
43
- <?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
+ <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 } ?>