clean-jsdoc-theme 3.3.4 → 4.0.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 (84) 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 +232 -216
  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 +439 -546
  18. package/SECURITY.md +21 -21
  19. package/helpers/down-arrow.js +9 -9
  20. package/jsdoc-config.json +62 -60
  21. package/minify.js +48 -0
  22. package/package.json +50 -46
  23. package/publish.js +1131 -1197
  24. package/static/fonts/Inconsolata-Regular.ttf +0 -0
  25. package/static/fonts/OpenSans-Regular.ttf +0 -0
  26. package/static/fonts/WorkSans-Bold.ttf +0 -0
  27. package/static/scripts/core.js +576 -0
  28. package/static/scripts/core.min.js +23 -0
  29. package/static/scripts/resize.js +90 -85
  30. package/static/scripts/search.js +244 -77
  31. package/static/scripts/search.min.js +11 -0
  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/hljs-line-num.js +1 -0
  35. package/static/scripts/third-party/hljs.js +1173 -0
  36. package/static/scripts/third-party/popper.js +6 -0
  37. package/static/scripts/third-party/tippy.js +2 -0
  38. package/static/scripts/third-party/tocbot.js +1 -0
  39. package/static/styles/clean-jsdoc-theme-base.css +941 -393
  40. package/static/styles/clean-jsdoc-theme-dark.css +411 -324
  41. package/static/styles/clean-jsdoc-theme-light.css +392 -319
  42. package/static/styles/clean-jsdoc-theme.min.css +1 -0
  43. package/tmpl/augments.tmpl +10 -10
  44. package/tmpl/container.tmpl +190 -189
  45. package/tmpl/details.tmpl +208 -208
  46. package/tmpl/example.tmpl +3 -3
  47. package/tmpl/examples.tmpl +40 -38
  48. package/tmpl/exceptions.tmpl +32 -32
  49. package/tmpl/icons.tmpl +72 -34
  50. package/tmpl/layout.tmpl +146 -165
  51. package/tmpl/mainpage.tmpl +10 -10
  52. package/tmpl/members.tmpl +42 -43
  53. package/tmpl/method.tmpl +139 -140
  54. package/tmpl/mobile-sidebar.tmpl +21 -0
  55. package/tmpl/navbar-actions.tmpl +19 -0
  56. package/tmpl/navbar-menu.tmpl +21 -0
  57. package/tmpl/navbar.tmpl +14 -0
  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 +17 -0
  62. package/tmpl/sidebar-items.tmpl +24 -0
  63. package/tmpl/sidebar-title.tmpl +10 -0
  64. package/tmpl/sidebar.tmpl +9 -0
  65. package/tmpl/source.tmpl +12 -7
  66. package/tmpl/toc.tmpl +4 -0
  67. package/tmpl/tutorial.tmpl +19 -19
  68. package/tmpl/type.tmpl +6 -6
  69. package/helpers/navbarBuilder.js +0 -0
  70. package/static/fonts/MavenPro-Regular.ttf +0 -0
  71. package/static/fonts/Montserrat-Regular.ttf +0 -0
  72. package/static/fonts/Muli-Black.ttf +0 -0
  73. package/static/fonts/OFL-hind.txt +0 -93
  74. package/static/fonts/OFL-montserrat.txt +0 -93
  75. package/static/scripts/fix-code-block.js +0 -53
  76. package/static/scripts/fix-navbar.js +0 -25
  77. package/static/scripts/linenumber.js +0 -25
  78. package/static/scripts/misc.js +0 -217
  79. package/static/scripts/third-party/lang-css.js +0 -2
  80. package/static/scripts/third-party/prettify.js +0 -28
  81. package/static/styles/reset.css +0 -351
  82. package/static/styles/third-party/ionicons.min.css +0 -11
  83. package/static/styles/third-party/prettify-jsdoc.css +0 -111
  84. package/static/styles/third-party/prettify-tomorrow.css +0 -5
@@ -0,0 +1 @@
1
+ @font-face{font-family:"heading";src:url(../fonts/WorkSans-Bold.ttf)format("truetype")}@font-face{font-family:"body";src:url(../fonts/OpenSans-Regular.ttf)format("truetype")}@font-face{font-family:"code";src:url(../fonts/Inconsolata-Regular.ttf)format("truetype")}*{box-sizing:border-box;margin:0;padding:0}html,body{min-height:100%;width:100%;line-height:1.75}body{font-family:"body";overflow-x:hidden;position:relative}h1,h2,h3,h4,h5,h6{font-family:"heading";font-weight:400}h1{font-size:3.5rem;margin:0}h2{font-size:2.25rem;margin:2rem 0 0}h3{font-size:2rem;margin:2rem 0 0}h4{font-size:1.5rem;margin:1.5rem 0 0}h5{font-size:1.25rem}h6{font-size:1rem}img{max-width:100%}a{text-decoration:none}a:hover{text-decoration:underline}a img{margin-right:.5rem}p{margin:1rem 0}article ul{list-style:none;padding-left:1rem}article ul li::before{content:"— ";margin-right:.5rem}article ul li,article ol li{padding:.5rem 0}article ol{padding-left:1rem}.variation{display:none}.signature-attributes{font-style:italic;font-weight:lighter}.ancestors a{text-decoration:none}.important{font-weight:700}.yes-def{text-indent:-1000px}.signature{font-family:"code"}.name{font-family:"code";font-weight:700}blockquote{font-size:.875rem;padding:.0625rem 1.25rem;border-radius:1rem}.details{border-radius:1rem;margin:1rem 0}.details .details-item-container{display:flex;padding:1rem 2rem}dt{font-family:heading}.details dt{float:left;min-width:180px;padding:0 10px}.details ul{margin:0}.details ul{list-style-type:none}.details ul li{display:inline-block;margin-right:10px;padding:0;word-break:break-word}.details ul li::before{content:"";margin:0}.details ul li p{margin:0}.details pre.prettyprint{margin:0}.details .object-value{padding-top:0}.description{margin-bottom:32px}.method-member-container table{margin-top:15px}.pre-div .hljs-ln{margin:0}.code-caption{font-size:.875rem}.prettyprint{font-size:.875rem;overflow:auto}pre.prettyprint{margin-top:3rem}.prettyprint.source{width:inherit}.prettyprint code{display:block;font-size:1rem;line-height:1.75;padding:0 0 1rem}h4.name{margin-top:.5rem}.params,.props,table{border-collapse:separate;border-spacing:0 .5rem;border-radius:.5rem;font-size:.875rem;margin:0;width:100%}table td:first-child,.params td:first-child,table thead th:first-child,.params thead th:first-child,.props thead th:first-child{border-top-left-radius:1rem;border-bottom-left-radius:1rem}table td:last-child,.params td:last-child,table thead th:last-child,.params thead th:last-child,.props thead th:last-child{border-top-right-radius:1rem;border-bottom-right-radius:1rem}table th,.params th{position:sticky;top:0}.params .name,.props .name,.name code{font-family:"code";font-size:1rem}.params td,.params th,.props td,.props th,th,td{display:table-cell;margin:0;padding:1rem 2rem;text-align:left;vertical-align:top}.params thead tr,.props thead tr{font-weight:700}.params .params thead tr,.props .props thead tr{font-weight:700}.params td.description>p:first-child,.props td.description>p:first-child{margin-top:0;padding-top:0}.params td.description>p:last-child,.props td.description>p:last-child{margin-bottom:0;padding-bottom:0}dl.param-type{margin-bottom:1rem;padding-bottom:1rem}.param-type dt,.param-type dd{display:inline-block}.param-type dd{font-family:"code";font-size:1rem}code{border-radius:.3rem;font-family:"code";font-size:1rem;padding:.1rem .4rem}.mt-20{margin-top:1.5rem}.codepen-form{bottom:0;position:absolute;right:.6125rem}.body-wrapper{display:flex;flex-direction:column;height:100vh;position:relative}.sidebar-container{position:fixed;display:flex;padding:1rem;top:0;bottom:0;left:0;width:25rem;z-index:10}.sidebar{border-radius:1rem;flex:1;padding:1.5rem 0;overflow:hidden;display:flex;flex-direction:column}.sidebar-title{margin:0;padding:0 2rem;text-decoration:none;font-size:1.5rem;font-family:heading}.sidebar-title:hover{text-decoration:none}.sidebar-items-container{margin-top:5rem;overflow:auto;flex:1;position:relative}.sidebar-section-title{padding:.5rem 2rem;font-family:heading;font-size:1.25rem;border-radius:1rem}.with-arrow{align-items:center;cursor:pointer;display:flex}.with-arrow div{flex:1}.with-arrow svg{height:1rem;width:1rem;transition:transform .3s}.with-arrow[data-isopen=true] svg{transform:rotate(180deg)}.sidebar-section-children-container{border-radius:.5rem;overflow:hidden}.sidebar-section-children a{display:block;width:100%;padding:.25rem 2rem}.sidebar-section-children a{text-decoration:none}.with-arrow[data-isopen=false]+.sidebar-section-children-container{height:0;overflow:hidden}.with-arrow[data-isopen=true]+.sidebar-section-children-container{height:auto}.toc-container{position:fixed;top:0;right:4rem;bottom:0;width:16rem;z-index:10}.toc-content{padding-top:10rem;display:flex;flex-direction:column;height:100%}#toc{margin:2rem 0;flex:1;overflow:auto}.toc-list{padding-left:1rem;list-style:none}.toc-link{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.toc-link.is-active-link{font-family:heading}.has-anchor{position:relative}.link-anchor{padding:0 .5rem}.has-anchor .link-anchor{position:absolute;left:0;transform:translateX(-100%);text-decoration:none;visibility:hidden}.has-anchor:hover .link-anchor{visibility:visible}.navbar-container{position:fixed;z-index:10;top:0;left:25rem;right:25rem;height:7rem;padding-top:1rem;display:flex;justify-content:center}.navbar{display:flex;padding:1rem 4rem 1rem 2rem;flex:1;max-width:60rem}.navbar-left-items{display:flex;flex:1}.navbar-right-items{display:flex}.icon-button svg{height:1rem;width:1rem}.icon-button{background:0 0;display:inline-flex;border:0;padding:.5rem;border-radius:50%;cursor:pointer;transition:background .3s}.navbar-right-item{display:flex;justify-content:center;align-items:center;margin:0 .25rem}.navbar-item{border-radius:.5rem;overflow:hidden}.navbar-item a{display:inline-block;padding:1rem 2rem;text-decoration:none;transition:.3s}.font-size-tooltip{display:flex;align-items:center;margin:0-.5rem}.font-size-tooltip .icon-button.disabled{pointer-events:none}.main-content{position:relative;flex:1;overflow:auto;display:flex;flex-direction:column;align-items:center;padding:7rem 25rem 0}.main-wrapper{width:100%;max-width:60rem;padding:0 4rem 1rem}.p-h-n{padding:.4rem 1rem}.footer{width:100%;margin:5rem 0 0 0;border-radius:1rem;font-size:.875rem;display:flex;justify-content:center}.source-page+.footer{margin-top:3rem}.footer .wrapper{flex:1;padding:1rem 2rem;max-width:70rem}pre{position:relative}.hljs table td{background:0 0;padding:0 .6125rem;line-height:1.5;border-radius:0}.hljs .hljs-ln-numbers{width:2rem;white-space:nowrap;user-select:none;padding-left:1.5rem}.pre-div{position:relative;border-radius:1rem;overflow:hidden;margin:2rem 0}.pre-top-bar-container{align-items:center;display:flex;justify-content:space-between;left:0;padding:.3125rem 1.5rem;position:absolute;right:0;top:0;z-index:1}.code-copy-icon-container{align-items:center;border-radius:50%;cursor:pointer;display:flex;height:1.875rem;justify-content:center;transition:.3s;width:1.875rem}.code-copy-icon-container>div{margin-top:.25rem;position:relative}.sm-icon{height:1rem;width:1rem}.code-lang-name{font-family:"body";font-size:.75rem}.tooltip{border-radius:.3125rem;opacity:0;padding:.1875rem .5rem;position:absolute;right:2rem;top:-.125rem;transform:scale(0);transition:.3s}.show-tooltip{opacity:1;transform:scale(1)}.allow-overflow{overflow:auto}.bold{font-family:heading}.search-container{position:fixed;top:0;bottom:0;right:0;left:0;justify-content:center;z-index:50;align-items:flex-start}.search-container .wrapper{width:100%;max-width:60rem;padding:4rem 2rem 2rem;border-radius:1rem;margin:3rem 25rem;position:relative}.search-close-button{position:absolute;top:1rem;right:1rem}.search-result-c{min-height:20rem;max-height:40rem;overflow:auto;padding:2rem 0}.search-box-c{width:100%;position:relative;display:flex;align-items:center}.search-box-c svg{height:1.5rem;width:1.5rem;position:absolute;left:1.5rem}.search-input{border:0;border-radius:1rem;width:100%;flex:1;padding:1rem 2rem 1rem 4rem;font-family:body;font-size:1.25rem}.search-result-item{display:block;text-decoration:none;padding:1rem;border-radius:1rem;margin:1rem 0}.search-result-item:hover{text-decoration:none}.search-result-item:active{text-decoration:none}.search-result-item-title{font-family:heading;font-size:1.5rem}.search-result-item-p{font-size:.875rem}.mobile-menu-icon-container{display:none;position:fixed;bottom:1.5rem;right:2rem;z-index:30}.mobile-menu-icon-container .icon-button svg{height:2rem;width:2rem}.mobile-sidebar-container{position:fixed;top:0;right:0;left:0;bottom:0;padding:1rem;z-index:25;display:none}.mobile-sidebar-container.show{display:block}.mobile-sidebar-wrapper{border-radius:1rem;height:100%;width:100%;display:flex;flex-direction:column;padding-top:2rem}.mobile-nav-links{display:flex;flex-wrap:wrap;padding-top:2rem}.mobile-sidebar-items-c{flex:1;overflow:auto}.mobile-navbar-actions{display:flex;padding:1rem}@media screen and (max-width:100em){.toc-container{display:none}.main-content{padding:7rem 0 0 25rem}.search-container .wrapper{margin-right:1rem}.navbar-container{right:1rem}}@media screen and (min-width:65em){.mobile-sidebar-container.show{display:none}}@media screen and (max-width:65em){h1{font-size:3rem}h2{font-size:2rem}h3{font-size:1.875}h4,h5,h6{font-size:1rem}.main-wrapper{padding:0 1rem 1rem}.search-result-c{max-height:25rem}.mobile-menu-icon-container{display:block}.sidebar-container{display:none}.search-container .wrapper{margin-left:1rem}.main-content{padding-left:0;padding-top:1rem}.navbar-container{display:none}.source-page+.footer,.footer{margin-top:2rem}.has-anchor:hover .link-anchor{visibility:hidden}}.rel{position:relative}.icon-button.codepen-button svg{height:1.5rem;width:1.5rem}.table-div{width:100%;overflow:auto}::selection{background:#ffce76;color:#222}body{background-color:#1a1a1a;color:#fff}a,a:active{color:#0bf}h1,h2,h3,h4,h5,h6{color:#fff}.sidebar{background-color:#222;color:#999}.sidebar-title{color:#999}.sidebar-section-title{color:#999}.sidebar-section-title:hover{background:#252525}.with-arrow{fill:#999}.sidebar-section-children-container{background:#292929}.sidebar-section-children a:hover{background:#2c2c2c}.sidebar-section-children a{color:#fff}.navbar-container{background:#1a1a1a}.icon-button svg,.navbar-item a{color:#999;fill:#999}.font-size-tooltip .icon-button svg{fill:#fff}.font-size-tooltip .icon-button.disabled{background:#999}.icon-button:hover{background:#333}.icon-button:active{background:#444}.navbar-item a:active{color:#aaa;background-color:#222}.navbar-item:hover{background:#202020}.footer{background:#222;color:#999}.footer a{color:#999}.toc-link{color:#777;transition:color .3s;font-size:.875rem}.toc-link.is-active-link{color:#fff}.has-anchor .link-anchor{color:#555}.has-anchor .link-anchor:hover{color:#888}tt,code,kbd,samp{background:#222}.signature-attributes{color:#aaa}.ancestors{color:#999}.ancestors a{color:#999!important}.important{color:#950b02}.type-signature{color:#00918e}.name,.name a{color:#f7f7f7}.details{background:#222;color:#fff}.details a{color:#fff}.prettyprint{background:#222}.member-item-container strong,.method-member-container strong{color:#fff}.pre-top-bar-container{background:#292929}.prettyprint.source,.prettyprint code{background-color:#222;color:#c9d1d9}.pre-div{background-color:#222}.hljs .hljs-ln-numbers{color:#777}.hljs .selected{background:#444}.hljs .selected .hljs-ln-numbers{color:#eee}table .name,.params .name,.props .name,.name code{color:#fff}table td,.params td{background-color:#292929}table thead th,.params thead th,.props thead th{background-color:#222;color:#fff}table .params thead tr,.params .params thead tr,.props .props thead tr{background-color:#222;color:#fff}.disabled{color:#aaa}.code-copy-icon-container{fill:#fff}.code-copy-icon-container:hover{background-color:#444}.code-lang-name{color:#ff8a00}.tooltip{background:#ffce76;color:#222}.tooltip .pun,.tooltip .typ{background:#ffce76;color:#222}.hljs-comment{color:#8b949e}.hljs-doctag,.hljs-keyword,.hljs-template-tag,.hljs-variable.language_{color:#ff7b72}.hljs-template-variable,.hljs-type{color:#30ac7c}.hljs-meta,.hljs-string,.hljs-regexp{color:#a5d6ff}.hljs-title.class_,.hljs-title{color:#ffa657}.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#79c0ff}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-code,.hljs-comment,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}blockquote{background:#222;color:#fff}.search-container{background:rgba(255,255,255,.1)}.icon-button.search-close-button svg{fill:#a00}.search-container .wrapper{background:#222}.search-result-c{color:#666}.search-box-c{fill:#333}.search-input{background:#333;color:#fff}.search-box-c svg{fill:#fff}.search-result-item{background:#333}.search-result-item:hover{background:#444}.search-result-item:active{background:#555}.search-result-item-title{color:#fff}.search-result-item-p{color:#aaa}.mobile-menu-icon-container .icon-button{background:#333}.mobile-sidebar-container{background:#1a1a1a}.mobile-sidebar-wrapper{background:#222}.light ::selection{background:#ffce76;color:#1d1919}body.light{background-color:#fff;color:#111}.light a,.light a:active{color:#007bff}.light h1,.light h2,.light h3,.light h4,.light h5,.light h6{color:#111}.light .sidebar{background-color:#f7f7f7;color:#222}.light .sidebar-title{color:#222}.light .sidebar-section-title{color:#222}.light .sidebar-section-title:hover{background:#eee}.light .with-arrow{fill:#111}.light .sidebar-section-children-container{background:#eee}.light .sidebar-section-children a:hover{background:#e0e0e0}.light .sidebar-section-children a{color:#111}.light .navbar-container{background:#fff}.light .icon-button svg,.light .navbar-item a{color:#222;fill:#222}.light .tippy-box{background:#eee;color:#111}.light .tippy-arrow{color:#f1f1f1}.light .font-size-tooltip .icon-button svg{fill:#111}.light .font-size-tooltip .icon-button.disabled svg{fill:#999}.light .icon-button:hover{background:#f1f1f1}.light .icon-button:active{background:#e5e5e5}.light .navbar-item a:active{color:#333;background-color:#eee}.light .navbar-item:hover{background:#f7f7f7}.light .footer{background:#f7f7f7;color:#111}.light .footer a{color:#111}.light .toc-link{color:#999;transition:color .3s;font-size:.875rem}.light .toc-link.is-active-link{color:#111}.light .has-anchor .link-anchor{color:#ddd}.light .has-anchor .link-anchor:hover{color:#ccc}.light .signature-attributes{color:#aaa}.light .ancestors{color:#999}.light .ancestors a{color:#999!important}.light .important{color:#950b02}.light .type-signature{color:#00918e}.light .name,.light .name a{color:#293a80}.light .details{background:#f9f9f9;color:#101010}.light .details a{color:#111}.light .member-item-container strong,.light .method-member-container strong{color:#000}.light .prettyprint{background:#f7f7f7}.light .pre-div{background:#f7f7f7}.light .hljs .hljs-ln-numbers{color:#aaa}.light .hljs .selected{background:#ccc}.light table.hljs-ln td{background:0 0}.light .hljs .selected .hljs-ln-numbers{color:#444}.light .pre-top-bar-container{background-color:#eee}.light .prettyprint code{background-color:#f7f7f7}.light table .name,.light .params .name,.light .props .name,.light .name code{color:#4d4e53}.light table td,.light .params td{background:#f7f7f7}.light table thead th,.light .params thead th,.light .props thead th{background-color:#eee;color:#111}.light table .params thead tr,.light .params .params thead tr,.light .props .props thead tr{background-color:#eee;color:#111}.light .disabled{color:#454545}.light .code-copy-icon-container{fill:#111}.light .code-copy-icon-container:hover{background-color:#ddd}.light .code-lang-name{color:red}.light .tooltip{background:#ffce76;color:#000}.light .tooltip .pun,.light .tooltip .typ{background:#ffce76;color:#000}.light .hljs-comment,.light .hljs-quote{color:#a0a1a7}.light .hljs-doctag,.light .hljs-keyword,.light .hljs-formula{color:#a626a4}.light .hljs-section,.light .hljs-name,.light .hljs-selector-tag,.light .hljs-deletion,.light .hljs-subst{color:#e45649}.light .hljs-literal{color:#0184bb}.light .hljs-string,.light .hljs-regexp,.light .hljs-addition,.light .hljs-attribute,.light .hljs-meta .hljs-string{color:#50a14f}.light .hljs-attr,.light .hljs-variable,.light .hljs-template-variable,.light .hljs-type,.light .hljs-selector-class,.light .hljs-selector-attr,.light .hljs-selector-pseudo,.light .hljs-number{color:#986801}.light .hljs-symbol,.light .hljs-bullet,.light .hljs-link,.light .hljs-meta,.light .hljs-selector-id,.light .hljs-title{color:#4078f2}.light .hljs-built_in,.light .hljs-title.class_,.light .hljs-class .hljs-title{color:#c18401}.light .hljs-emphasis{font-style:italic}.light .hljs-strong{font-weight:700}.light .hljs-link{text-decoration:underline}.light blockquote{background:#eee;color:#111}.light code{background:#eee;color:#000}.light .search-container{background:rgba(0,0,0,.1)}.light .search-close-button svg{fill:red}.light .search-container .wrapper{background:#eee}.light .search-result-c{color:#aaa}.light .search-box-c svg{fill:#333}.light .search-input{background:#f7f7f7;color:#111}.light .search-result-item{background:#f7f7f7}.light .search-result-item:hover{background:#e9e9e9}.light .search-result-item:active{background:#f7f7f7}.light .search-result-item-title{color:#111}.light .search-result-item-p{color:#aaa}.light .mobile-menu-icon-container .icon-button{background:#e5e5e5}.light .mobile-sidebar-container{background:#fff}.light .mobile-sidebar-wrapper{background:#f7f7f7}
@@ -1,10 +1,10 @@
1
- <?js
2
- var data = obj;
3
- var self = this;
4
- ?>
5
-
6
- <?js if (data.augments && data.augments.length) { ?>
7
- <ul><?js data.augments.forEach(function(a) { ?>
8
- <li><?js= self.linkto(a, a) ?></li>
9
- <?js }) ?></ul>
10
- <?js } ?>
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ ?>
5
+
6
+ <?js if (data.augments && data.augments.length) { ?>
7
+ <ul><?js data.augments.forEach(function(a) { ?>
8
+ <li><?js= self.linkto(a, a) ?></li>
9
+ <?js }) ?></ul>
10
+ <?js } ?>
@@ -1,189 +1,190 @@
1
- <?js
2
- var self = this;
3
- var isGlobalPage;
4
-
5
- docs.forEach(function(doc, i) {
6
- ?>
7
-
8
- <?js
9
- // we only need to check this once
10
- if (typeof isGlobalPage === 'undefined') {
11
- isGlobalPage = (doc.kind === 'globalobj');
12
- }
13
- ?>
14
- <?js if (doc.kind === 'mainpage' || (doc.kind === 'package')) { ?>
15
- <?js= self.partial('mainpage.tmpl', doc) ?>
16
- <?js } else if (doc.kind === 'source') { ?>
17
- <?js= self.partial('source.tmpl', doc) ?>
18
- <?js } else { ?>
19
-
20
- <section>
21
-
22
- <?js if (((doc.ancestors && doc.ancestors.length) || doc.name || doc.variation) || (doc.kind === 'module' && doc.modules)) { ?>
23
- <header>
24
- <?js if (!doc.longname || doc.kind !== 'module') { ?>
25
- <?js if ((doc.ancestors && doc.ancestors.length) || doc.name || doc.variation) { ?>
26
- <h2>
27
- <?js if (doc.ancestors && doc.ancestors.length) { ?>
28
- <span class="ancestors"><?js= doc.ancestors.join('') ?></span>
29
- <?js } ?>
30
- <?js= doc.name ?>
31
- <?js if (doc.variation) { ?>
32
- <sup class="variation"><?js= doc.variation ?></sup>
33
- <?js } ?>
34
- </h2>
35
- <?js } ?>
36
- <?js if (doc.classdesc) { ?>
37
- <div class="class-description"><?js= doc.classdesc ?></div>
38
- <?js } ?>
39
- <?js } else if (doc.kind === 'module' && doc.modules) { ?>
40
- <?js doc.modules.forEach(function(module) { ?>
41
- <?js if (module.classdesc) { ?>
42
- <div class="class-description"><?js= module.classdesc ?></div>
43
- <?js } ?>
44
- <?js }) ?>
45
- <?js } ?>
46
- </header>
47
- <?js } ?>
48
-
49
- <article>
50
- <div class="container-overview">
51
- <?js if (doc.kind === 'module' && doc.modules) { ?>
52
- <?js if (doc.description) { ?>
53
- <div class="description"><?js= doc.description ?></div>
54
- <?js } ?>
55
-
56
- <?js doc.modules.forEach(function(module) { ?>
57
- <?js= self.partial('method.tmpl', module) ?>
58
- <?js }) ?>
59
- <?js } else if (doc.kind === 'class') { ?>
60
- <?js= self.partial('method.tmpl', doc) ?>
61
- <?js } else { ?>
62
- <?js if (doc.description) { ?>
63
- <div class="description"><?js= doc.description ?></div>
64
- <?js } ?>
65
-
66
- <?js= self.partial('details.tmpl', doc) ?>
67
-
68
- <?js if (doc.examples && doc.examples.length) { ?>
69
- <h3>Example<?js= doc.examples.length > 1? 's':'' ?></h3>
70
- <?js= self.partial('examples.tmpl', doc.examples) ?>
71
- <?js } ?>
72
- <?js } ?>
73
- </div>
74
-
75
- <?js if (doc.augments && doc.augments.length) { ?>
76
- <h3 class="subsection-title">Extends</h3>
77
-
78
- <?js= self.partial('augments.tmpl', doc) ?>
79
- <?js } ?>
80
-
81
- <?js if (doc.requires && doc.requires.length) { ?>
82
- <h3 class="subsection-title">Requires</h3>
83
-
84
- <ul><?js doc.requires.forEach(function(r) { ?>
85
- <li><?js= self.linkto(r, r) ?></li>
86
- <?js }); ?></ul>
87
- <?js } ?>
88
-
89
- <?js
90
- var classes = self.find({kind: 'class', memberof: doc.longname, inherited: {'!is': self.excludeInherited}});
91
- if (!isGlobalPage && classes && classes.length) {
92
- ?>
93
- <h3 class="subsection-title">Classes</h3>
94
-
95
- <dl><?js classes.forEach(function(c) { ?>
96
- <dt><?js= self.linkto(c.longname, c.name) ?></dt>
97
- <dd><?js if (c.summary) { ?><?js= c.summary ?><?js } ?></dd>
98
- <?js }); ?></dl>
99
- <?js } ?>
100
-
101
- <?js
102
- var mixins = self.find({kind: 'mixin', memberof: doc.longname, inherited: {'!is': self.excludeInherited}});
103
- if (!isGlobalPage && mixins && mixins.length) {
104
- ?>
105
- <h3 class="subsection-title">Mixins</h3>
106
-
107
- <dl><?js mixins.forEach(function(m) { ?>
108
- <dt><?js= self.linkto(m.longname, m.name) ?></dt>
109
- <dd><?js if (m.summary) { ?><?js= m.summary ?><?js } ?></dd>
110
- <?js }); ?></dl>
111
- <?js } ?>
112
-
113
- <?js
114
- var namespaces = self.find({kind: 'namespace', memberof: doc.longname, inherited: {'!is': self.excludeInherited}});
115
- if (!isGlobalPage && namespaces && namespaces.length) {
116
- ?>
117
- <h3 class="subsection-title">Namespaces</h3>
118
-
119
- <dl><?js namespaces.forEach(function(n) { ?>
120
- <dt><?js= self.linkto(n.longname, n.name) ?></dt>
121
- <dd><?js if (n.summary) { ?><?js= n.summary ?><?js } ?></dd>
122
- <?js }); ?></dl>
123
- <?js } ?>
124
-
125
- <?js
126
- var members = self.find({kind: 'member', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, inherited: {'!is': self.excludeInherited}});
127
-
128
- // symbols that are assigned to module.exports are not globals, even though they're not a memberof anything
129
- if (isGlobalPage && members && members.length && members.forEach) {
130
- members = members.filter(function(m) {
131
- return m.longname && m.longname.indexOf('module:') !== 0;
132
- });
133
- }
134
- if (members && members.length && members.forEach) {
135
- ?>
136
- <h3 class="subsection-title">Members</h3>
137
-
138
- <?js members.forEach(function(p) { ?>
139
- <?js= self.partial('members.tmpl', p) ?>
140
- <?js }); ?>
141
- <?js } ?>
142
-
143
- <?js
144
- var methods = self.find({kind: 'function', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, inherited: {'!is': self.excludeInherited}});
145
- if (methods && methods.length && methods.forEach) {
146
- ?>
147
- <h3 class="subsection-title">Methods</h3>
148
-
149
- <?js methods.forEach(function(m) { ?>
150
- <?js= self.partial('method.tmpl', m) ?>
151
- <?js }); ?>
152
- <?js } ?>
153
-
154
- <?js
155
- var typedefs = self.find({kind: 'typedef', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, inherited: {'!is': self.excludeInherited}});
156
- if (typedefs && typedefs.length && typedefs.forEach) {
157
- ?>
158
- <h3 class="subsection-title">Type Definitions</h3>
159
-
160
- <?js typedefs.forEach(function(e) {
161
- if (e.signature) {
162
- ?>
163
- <?js= self.partial('method.tmpl', e) ?>
164
- <?js
165
- }
166
- else {
167
- ?>
168
- <?js= self.partial('members.tmpl', e) ?>
169
- <?js
170
- }
171
- }); ?>
172
- <?js } ?>
173
-
174
- <?js
175
- var events = self.find({kind: 'event', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, inherited: {'!is': self.excludeInherited}});
176
- if (events && events.length && events.forEach) {
177
- ?>
178
- <h3 class="subsection-title">Events</h3>
179
-
180
- <?js events.forEach(function(e) { ?>
181
- <?js= self.partial('method.tmpl', e) ?>
182
- <?js }); ?>
183
- <?js } ?>
184
- </article>
185
-
186
- </section>
187
- <?js } ?>
188
-
189
- <?js }); ?>
1
+ <?js
2
+ var self = this;
3
+ var isGlobalPage;
4
+
5
+ docs.forEach(function(doc, i) {
6
+ ?>
7
+
8
+ <?js
9
+
10
+ // we only need to check this once
11
+ if (typeof isGlobalPage === 'undefined') {
12
+ isGlobalPage = (doc.kind === 'globalobj');
13
+ }
14
+ ?>
15
+ <?js if (doc.kind === 'mainpage' || (doc.kind === 'package')) { ?>
16
+ <?js= self.partial('mainpage.tmpl', doc) ?>
17
+ <?js } else if (doc.kind === 'source') { ?>
18
+ <?js= self.partial('source.tmpl', doc) ?>
19
+ <?js } else { ?>
20
+
21
+ <section>
22
+
23
+ <?js if (((doc.ancestors && doc.ancestors.length) || doc.name || doc.variation) || (doc.kind === 'module' && doc.modules)) { ?>
24
+ <header>
25
+ <?js if (!doc.longname || doc.kind !== 'module') { ?>
26
+ <?js if ((doc.ancestors && doc.ancestors.length) || doc.name || doc.variation) { ?>
27
+ <h1 id="<?js= doc.name ?>-title" class="has-anchor">
28
+ <?js if (doc.ancestors && doc.ancestors.length) { ?>
29
+ <span class="ancestors"><?js= doc.ancestors.join('') ?></span>
30
+ <?js } ?>
31
+ <?js= doc.name ?>
32
+ <?js if (doc.variation) { ?>
33
+ <sup class="variation"><?js= doc.variation ?></sup>
34
+ <?js } ?>
35
+ </h1>
36
+ <?js } ?>
37
+ <?js if (doc.classdesc) { ?>
38
+ <div class="class-description"><?js= doc.classdesc ?></div>
39
+ <?js } ?>
40
+ <?js } else if (doc.kind === 'module' && doc.modules) { ?>
41
+ <?js doc.modules.forEach(function(module) { ?>
42
+ <?js if (module.classdesc) { ?>
43
+ <div class="class-description"><?js= module.classdesc ?></div>
44
+ <?js } ?>
45
+ <?js }) ?>
46
+ <?js } ?>
47
+ </header>
48
+ <?js } ?>
49
+
50
+ <article>
51
+ <div class="container-overview">
52
+ <?js if (doc.kind === 'module' && doc.modules) { ?>
53
+ <?js if (doc.description) { ?>
54
+ <div class="description"><?js= doc.description ?></div>
55
+ <?js } ?>
56
+
57
+ <?js doc.modules.forEach(function(module) { ?>
58
+ <?js= self.partial('method.tmpl', module) ?>
59
+ <?js }) ?>
60
+ <?js } else if (doc.kind === 'class') { ?>
61
+ <?js= self.partial('method.tmpl', doc) ?>
62
+ <?js } else { ?>
63
+ <?js if (doc.description) { ?>
64
+ <div class="description"><?js= doc.description ?></div>
65
+ <?js } ?>
66
+
67
+ <?js= self.partial('details.tmpl', doc) ?>
68
+
69
+ <?js if (doc.examples && doc.examples.length) { ?>
70
+ <h3 id="example" class="has-anchor">Example<?js= doc.examples.length > 1? 's':'' ?></h3>
71
+ <?js= self.partial('examples.tmpl', doc.examples) ?>
72
+ <?js } ?>
73
+ <?js } ?>
74
+ </div>
75
+
76
+ <?js if (doc.augments && doc.augments.length) { ?>
77
+ <h3 id="Extends" class="subsection-title has-anchor">Extends</h3>
78
+
79
+ <?js= self.partial('augments.tmpl', doc) ?>
80
+ <?js } ?>
81
+
82
+ <?js if (doc.requires && doc.requires.length) { ?>
83
+ <h3 id="requires" class="subsection-title has-anchor">Requires</h3>
84
+
85
+ <ul><?js doc.requires.forEach(function(r) { ?>
86
+ <li><?js= self.linkto(r, r) ?></li>
87
+ <?js }); ?></ul>
88
+ <?js } ?>
89
+
90
+ <?js
91
+ var classes = self.find({kind: 'class', memberof: doc.longname, inherited: {'!is': self.excludeInherited}});
92
+ if (!isGlobalPage && classes && classes.length) {
93
+ ?>
94
+ <h3 id="classes" class="subsection-title has-anchor">Classes</h3>
95
+
96
+ <dl><?js classes.forEach(function(c) { ?>
97
+ <dt><?js= self.linkto(c.longname, c.name) ?></dt>
98
+ <dd><?js if (c.summary) { ?><?js= c.summary ?><?js } ?></dd>
99
+ <?js }); ?></dl>
100
+ <?js } ?>
101
+
102
+ <?js
103
+ var mixins = self.find({kind: 'mixin', memberof: doc.longname, inherited: {'!is': self.excludeInherited}});
104
+ if (!isGlobalPage && mixins && mixins.length) {
105
+ ?>
106
+ <h3 id="mixins" class="subsection-title has-anchor">Mixins</h3>
107
+
108
+ <dl><?js mixins.forEach(function(m) { ?>
109
+ <dt><?js= self.linkto(m.longname, m.name) ?></dt>
110
+ <dd><?js if (m.summary) { ?><?js= m.summary ?><?js } ?></dd>
111
+ <?js }); ?></dl>
112
+ <?js } ?>
113
+
114
+ <?js
115
+ var namespaces = self.find({kind: 'namespace', memberof: doc.longname, inherited: {'!is': self.excludeInherited}});
116
+ if (!isGlobalPage && namespaces && namespaces.length) {
117
+ ?>
118
+ <h3 id="namespaces" class="subsection-title has-anchor">Namespaces</h3>
119
+
120
+ <dl><?js namespaces.forEach(function(n) { ?>
121
+ <dt><?js= self.linkto(n.longname, n.name) ?></dt>
122
+ <dd><?js if (n.summary) { ?><?js= n.summary ?><?js } ?></dd>
123
+ <?js }); ?></dl>
124
+ <?js } ?>
125
+
126
+ <?js
127
+ var members = self.find({kind: 'member', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, inherited: {'!is': self.excludeInherited}});
128
+
129
+ // symbols that are assigned to module.exports are not globals, even though they're not a memberof anything
130
+ if (isGlobalPage && members && members.length && members.forEach) {
131
+ members = members.filter(function(m) {
132
+ return m.longname && m.longname.indexOf('module:') !== 0;
133
+ });
134
+ }
135
+ if (members && members.length && members.forEach) {
136
+ ?>
137
+ <h3 id="members" class="subsection-title has-anchor">Members</h3>
138
+
139
+ <?js members.forEach(function(p) { ?>
140
+ <?js= self.partial('members.tmpl', p) ?>
141
+ <?js }); ?>
142
+ <?js } ?>
143
+
144
+ <?js
145
+ var methods = self.find({kind: 'function', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, inherited: {'!is': self.excludeInherited}});
146
+ if (methods && methods.length && methods.forEach) {
147
+ ?>
148
+ <h3 id="methods" class="subsection-title has-anchor">Methods</h3>
149
+
150
+ <?js methods.forEach(function(m) { ?>
151
+ <?js= self.partial('method.tmpl', m) ?>
152
+ <?js }); ?>
153
+ <?js } ?>
154
+
155
+ <?js
156
+ var typedefs = self.find({kind: 'typedef', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, inherited: {'!is': self.excludeInherited}});
157
+ if (typedefs && typedefs.length && typedefs.forEach) {
158
+ ?>
159
+ <h3 id="type-definitions" class="subsection-title has-anchor">Type Definitions</h3>
160
+
161
+ <?js typedefs.forEach(function(e) {
162
+ if (e.signature) {
163
+ ?>
164
+ <?js= self.partial('method.tmpl', e) ?>
165
+ <?js
166
+ }
167
+ else {
168
+ ?>
169
+ <?js= self.partial('members.tmpl', e) ?>
170
+ <?js
171
+ }
172
+ }); ?>
173
+ <?js } ?>
174
+
175
+ <?js
176
+ var events = self.find({kind: 'event', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, inherited: {'!is': self.excludeInherited}});
177
+ if (events && events.length && events.forEach) {
178
+ ?>
179
+ <h3 id="events" class="subsection-title has-anchor">Events</h3>
180
+
181
+ <?js events.forEach(function(e) { ?>
182
+ <?js= self.partial('method.tmpl', e) ?>
183
+ <?js }); ?>
184
+ <?js } ?>
185
+ </article>
186
+
187
+ </section>
188
+ <?js } ?>
189
+
190
+ <?js }); ?>