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
@@ -1,109 +1,109 @@
1
- <?js
2
- var data = obj;
3
- var props = data.subprops || data.properties;
4
-
5
- /* sort subprops under their parent props (like opts.classname) */
6
- var parentProp = null;
7
- props.forEach(function(prop, i) {
8
- if (!prop) { return; }
9
- if ( parentProp && prop.name && prop.name.indexOf(parentProp.name + '.') === 0 ) {
10
- prop.name = prop.name.substr(parentProp.name.length+1);
11
- parentProp.subprops = parentProp.subprops || [];
12
- parentProp.subprops.push(prop);
13
- props[i] = null;
14
- }
15
- else {
16
- parentProp = prop;
17
- }
18
- });
19
-
20
- /* determine if we need extra columns, "attributes" and "default" */
21
- props.hasAttributes = false;
22
- props.hasDefault = false;
23
- props.hasName = false;
24
-
25
- props.forEach(function(prop) {
26
- if (!prop) { return; }
27
-
28
- if (prop.optional || prop.nullable) {
29
- props.hasAttributes = true;
30
- }
31
-
32
- if (prop.name) {
33
- props.hasName = true;
34
- }
35
-
36
- if (typeof prop.defaultvalue !== 'undefined' && !data.isEnum) {
37
- props.hasDefault = true;
38
- }
39
- });
40
- ?>
41
- <div class="allow-overflow">
42
- <table class="props">
43
- <thead>
44
- <tr>
45
- <?js if (props.hasName) {?>
46
- <th>Name</th>
47
- <?js } ?>
48
-
49
- <th>Type</th>
50
-
51
- <?js if (props.hasAttributes) {?>
52
- <th>Attributes</th>
53
- <?js } ?>
54
-
55
- <?js if (props.hasDefault) {?>
56
- <th>Default</th>
57
- <?js } ?>
58
-
59
- <th class="last">Description</th>
60
- </tr>
61
- </thead>
62
-
63
- <tbody>
64
- <?js
65
- var self = this;
66
- props.forEach(function(prop) {
67
- if (!prop) { return; }
68
- ?>
69
-
70
- <tr>
71
- <?js if (props.hasName) {?>
72
- <td class="name"><code><?js= prop.name ?></code></td>
73
- <?js } ?>
74
-
75
- <td class="type">
76
- <?js if (prop.type && prop.type.names) {?>
77
- <?js= self.partial('type.tmpl', prop.type.names) ?>
78
- <?js } ?>
79
- </td>
80
-
81
- <?js if (props.hasAttributes) {?>
82
- <td class="attributes">
83
- <?js if (prop.optional) { ?>
84
- &lt;optional><br>
85
- <?js } ?>
86
-
87
- <?js if (prop.nullable) { ?>
88
- &lt;nullable><br>
89
- <?js } ?>
90
- </td>
91
- <?js } ?>
92
-
93
- <?js if (props.hasDefault) {?>
94
- <td class="default">
95
- <?js if (typeof prop.defaultvalue !== 'undefined') { ?>
96
- <?js= self.htmlsafe(prop.defaultvalue) ?>
97
- <?js } ?>
98
- </td>
99
- <?js } ?>
100
-
101
- <td class="description last"><?js= prop.description ?><?js if (prop.subprops) { ?>
102
- <h6>Properties</h6><?js= self.partial('properties.tmpl', prop) ?>
103
- <?js } ?></td>
104
- </tr>
105
-
106
- <?js }); ?>
107
- </tbody>
108
- </table>
109
- </div>
1
+ <?js
2
+ var data = obj;
3
+ var props = data.subprops || data.properties;
4
+
5
+ /* sort subprops under their parent props (like opts.classname) */
6
+ var parentProp = null;
7
+ props.forEach(function(prop, i) {
8
+ if (!prop) { return; }
9
+ if ( parentProp && prop.name && prop.name.indexOf(parentProp.name + '.') === 0 ) {
10
+ prop.name = prop.name.substr(parentProp.name.length+1);
11
+ parentProp.subprops = parentProp.subprops || [];
12
+ parentProp.subprops.push(prop);
13
+ props[i] = null;
14
+ }
15
+ else {
16
+ parentProp = prop;
17
+ }
18
+ });
19
+
20
+ /* determine if we need extra columns, "attributes" and "default" */
21
+ props.hasAttributes = false;
22
+ props.hasDefault = false;
23
+ props.hasName = false;
24
+
25
+ props.forEach(function(prop) {
26
+ if (!prop) { return; }
27
+
28
+ if (prop.optional || prop.nullable) {
29
+ props.hasAttributes = true;
30
+ }
31
+
32
+ if (prop.name) {
33
+ props.hasName = true;
34
+ }
35
+
36
+ if (typeof prop.defaultvalue !== 'undefined' && !data.isEnum) {
37
+ props.hasDefault = true;
38
+ }
39
+ });
40
+ ?>
41
+ <div class="allow-overflow">
42
+ <table class="props">
43
+ <thead>
44
+ <tr>
45
+ <?js if (props.hasName) {?>
46
+ <th>Name</th>
47
+ <?js } ?>
48
+
49
+ <th>Type</th>
50
+
51
+ <?js if (props.hasAttributes) {?>
52
+ <th>Attributes</th>
53
+ <?js } ?>
54
+
55
+ <?js if (props.hasDefault) {?>
56
+ <th>Default</th>
57
+ <?js } ?>
58
+
59
+ <th class="last">Description</th>
60
+ </tr>
61
+ </thead>
62
+
63
+ <tbody>
64
+ <?js
65
+ var self = this;
66
+ props.forEach(function(prop) {
67
+ if (!prop) { return; }
68
+ ?>
69
+
70
+ <tr>
71
+ <?js if (props.hasName) {?>
72
+ <td class="name"><code><?js= prop.name ?></code></td>
73
+ <?js } ?>
74
+
75
+ <td class="type">
76
+ <?js if (prop.type && prop.type.names) {?>
77
+ <?js= self.partial('type.tmpl', prop.type.names) ?>
78
+ <?js } ?>
79
+ </td>
80
+
81
+ <?js if (props.hasAttributes) {?>
82
+ <td class="attributes">
83
+ <?js if (prop.optional) { ?>
84
+ &lt;optional><br>
85
+ <?js } ?>
86
+
87
+ <?js if (prop.nullable) { ?>
88
+ &lt;nullable><br>
89
+ <?js } ?>
90
+ </td>
91
+ <?js } ?>
92
+
93
+ <?js if (props.hasDefault) {?>
94
+ <td class="default">
95
+ <?js if (typeof prop.defaultvalue !== 'undefined') { ?>
96
+ <?js= self.htmlsafe(prop.defaultvalue) ?>
97
+ <?js } ?>
98
+ </td>
99
+ <?js } ?>
100
+
101
+ <td class="description last"><?js= prop.description ?><?js if (prop.subprops) { ?>
102
+ <h6>Properties</h6><?js= self.partial('properties.tmpl', prop) ?>
103
+ <?js } ?></td>
104
+ </tr>
105
+
106
+ <?js }); ?>
107
+ </tbody>
108
+ </table>
109
+ </div>
package/tmpl/returns.tmpl CHANGED
@@ -1,19 +1,19 @@
1
- <?js
2
- var data = obj || {};
3
- if (data.description) {
4
- ?>
5
- <div class="param-desc">
6
- <?js= description ?>
7
- </div>
8
- <?js } ?>
9
-
10
- <?js if (data.type && data.type.names) {?>
11
- <dl class="param-type">
12
- <dt>
13
- Type
14
- </dt>
15
- <dd>
16
- <?js= this.partial('type.tmpl', data.type.names) ?>
17
- </dd>
18
- </dl>
1
+ <?js
2
+ var data = obj || {};
3
+ if (data.description) {
4
+ ?>
5
+ <div class="param-desc">
6
+ <?js= description ?>
7
+ </div>
8
+ <?js } ?>
9
+
10
+ <?js if (data.type && data.type.names) {?>
11
+ <dl class="param-type">
12
+ <dt>
13
+ Type:&nbsp;
14
+ </dt>
15
+ <dd>
16
+ <?js= this.partial('type.tmpl', data.type.names) ?>
17
+ </dd>
18
+ </dl>
19
19
  <?js } ?>
@@ -0,0 +1,17 @@
1
+ <div class="search-container" id="search-container" style="display: none">
2
+ <div class="wrapper" id="search-wrapper">
3
+ <button class="icon-button search-close-button" id="search-close-button">
4
+ <svg>
5
+ <use xlink:href="#close-icon"></use>
6
+ </svg>
7
+
8
+ </button>
9
+ <div class="search-box-c">
10
+ <svg><use xlink:href="#search-icon"></use></svg>
11
+ <input type="text" id="search-input" class="search-input" placeholder="Search..." autofocus>
12
+ </div>
13
+ <div class="search-result-c" id="search-result-c">
14
+ Type anything to view search result
15
+ </div>
16
+ </div>
17
+ </div>
@@ -0,0 +1,24 @@
1
+ <?js
2
+ var data = this.sidebar
3
+
4
+ if(Array.isArray(data.sections)) {
5
+
6
+ data.sections.forEach(function(section) {
7
+ if(section.items.length > 0) { ?>
8
+
9
+ <div class="sidebar-section-title with-arrow" data-isopen="false" id="<?js= section.id?>">
10
+ <div><?js= section.name ?></div>
11
+ <svg><use xlink:href="#down-icon"></use></svg>
12
+ </div>
13
+ <div class="sidebar-section-children-container">
14
+
15
+ <?js
16
+ section.items.forEach(function(item) { ?>
17
+ <div class="sidebar-section-children">
18
+ <?js= item.anchor ?>
19
+ </div>
20
+
21
+ <?js }) ?>
22
+ </div>
23
+
24
+ <?js }})}?>
@@ -0,0 +1,10 @@
1
+ <?js
2
+ var data = this.sidebar
3
+
4
+ if(data.title.isHTML) { ?>
5
+ <?js= data.title.title ?>
6
+ <?js } else { ?>
7
+
8
+ <a href="<?js= this.baseURL ?>" class="sidebar-title"><?js= data.title.title ?></a>
9
+
10
+ <?js } ?>
@@ -0,0 +1,9 @@
1
+ <div class="sidebar" id="sidebar">
2
+ <?js= this.partial('sidebar-title.tmpl')?>
3
+
4
+
5
+ <div class="sidebar-items-container">
6
+ <?js= this.partial('sidebar-items.tmpl') ?>
7
+
8
+ </div>
9
+ </div>
package/tmpl/source.tmpl CHANGED
@@ -1,8 +1,13 @@
1
- <?js
2
- var data = obj;
3
- ?>
4
- <section>
5
- <article>
6
- <pre class="prettyprint source linenums"><code><?js= data.code ?></code></pre>
7
- </article>
1
+ <?js
2
+ var data = obj;
3
+ ?>
4
+ <section id="source-page" class="source-page">
5
+ <header>
6
+ <h1 id="title" class="has-anchor">
7
+ <?js= data.title ?>
8
+ </h1>
9
+ </header>
10
+ <article>
11
+ <pre class="prettyprint source lang-js"><code><?js= data.code ?></code></pre>
12
+ </article>
8
13
  </section>
package/tmpl/toc.tmpl ADDED
@@ -0,0 +1,4 @@
1
+ <div class="toc-content">
2
+ <span class="bold">On this page</span>
3
+ <div id="toc"></div>
4
+ </div>
@@ -1,19 +1,19 @@
1
- <section>
2
-
3
- <header>
4
- <?js if (children.length > 0) { ?>
5
- <ul><?js
6
- var self = this;
7
- children.forEach(function(t) { ?>
8
- <li><?js= self.tutoriallink(t.name) ?></li>
9
- <?js }); ?></ul>
10
- <?js } ?>
11
-
12
- <h2><?js= header ?></h2>
13
- </header>
14
-
15
- <article>
16
- <?js= content ?>
17
- </article>
18
-
19
- </section>
1
+ <section>
2
+
3
+ <header>
4
+ <?js if (children.length > 0) { ?>
5
+ <ul><?js
6
+ var self = this;
7
+ children.forEach(function(t) { ?>
8
+ <li><?js= self.tutoriallink(t.name) ?></li>
9
+ <?js }); ?></ul>
10
+ <?js } ?>
11
+
12
+ <h2><?js= header ?></h2>
13
+ </header>
14
+
15
+ <article>
16
+ <?js= content ?>
17
+ </article>
18
+
19
+ </section>
package/tmpl/type.tmpl CHANGED
@@ -1,7 +1,7 @@
1
- <?js
2
- var data = obj;
3
- var self = this;
4
- data.forEach(function(name, i) { ?>
5
- <span class="param-type"><?js= self.linkto(name, self.htmlsafe(name)) ?></span>
6
- <?js if (i < data.length-1) { ?>|<?js } ?>
1
+ <?js
2
+ var data = obj;
3
+ var self = this;
4
+ data.forEach(function(name, i) { ?>
5
+ <span class="param-type"><?js= self.linkto(name, self.htmlsafe(name)) ?></span>
6
+ <?js if (i < data.length-1) { ?>|<?js } ?>
7
7
  <?js }); ?>
File without changes
Binary file
Binary file
Binary file
@@ -1,93 +0,0 @@
1
- Copyright (c) 2014, Indian Type Foundry (info@indiantypefoundry.com).
2
-
3
- This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
- This license is copied below, and is also available with a FAQ at:
5
- http://scripts.sil.org/OFL
6
-
7
-
8
- -----------------------------------------------------------
9
- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
- -----------------------------------------------------------
11
-
12
- PREAMBLE
13
- The goals of the Open Font License (OFL) are to stimulate worldwide
14
- development of collaborative font projects, to support the font creation
15
- efforts of academic and linguistic communities, and to provide a free and
16
- open framework in which fonts may be shared and improved in partnership
17
- with others.
18
-
19
- The OFL allows the licensed fonts to be used, studied, modified and
20
- redistributed freely as long as they are not sold by themselves. The
21
- fonts, including any derivative works, can be bundled, embedded,
22
- redistributed and/or sold with any software provided that any reserved
23
- names are not used by derivative works. The fonts and derivatives,
24
- however, cannot be released under any other type of license. The
25
- requirement for fonts to remain under this license does not apply
26
- to any document created using the fonts or their derivatives.
27
-
28
- DEFINITIONS
29
- "Font Software" refers to the set of files released by the Copyright
30
- Holder(s) under this license and clearly marked as such. This may
31
- include source files, build scripts and documentation.
32
-
33
- "Reserved Font Name" refers to any names specified as such after the
34
- copyright statement(s).
35
-
36
- "Original Version" refers to the collection of Font Software components as
37
- distributed by the Copyright Holder(s).
38
-
39
- "Modified Version" refers to any derivative made by adding to, deleting,
40
- or substituting -- in part or in whole -- any of the components of the
41
- Original Version, by changing formats or by porting the Font Software to a
42
- new environment.
43
-
44
- "Author" refers to any designer, engineer, programmer, technical
45
- writer or other person who contributed to the Font Software.
46
-
47
- PERMISSION & CONDITIONS
48
- Permission is hereby granted, free of charge, to any person obtaining
49
- a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
- redistribute, and sell modified and unmodified copies of the Font
51
- Software, subject to the following conditions:
52
-
53
- 1) Neither the Font Software nor any of its individual components,
54
- in Original or Modified Versions, may be sold by itself.
55
-
56
- 2) Original or Modified Versions of the Font Software may be bundled,
57
- redistributed and/or sold with any software, provided that each copy
58
- contains the above copyright notice and this license. These can be
59
- included either as stand-alone text files, human-readable headers or
60
- in the appropriate machine-readable metadata fields within text or
61
- binary files as long as those fields can be easily viewed by the user.
62
-
63
- 3) No Modified Version of the Font Software may use the Reserved Font
64
- Name(s) unless explicit written permission is granted by the corresponding
65
- Copyright Holder. This restriction only applies to the primary font name as
66
- presented to the users.
67
-
68
- 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
- Software shall not be used to promote, endorse or advertise any
70
- Modified Version, except to acknowledge the contribution(s) of the
71
- Copyright Holder(s) and the Author(s) or with their explicit written
72
- permission.
73
-
74
- 5) The Font Software, modified or unmodified, in part or in whole,
75
- must be distributed entirely under this license, and must not be
76
- distributed under any other license. The requirement for fonts to
77
- remain under this license does not apply to any document created
78
- using the Font Software.
79
-
80
- TERMINATION
81
- This license becomes null and void if any of the above conditions are
82
- not met.
83
-
84
- DISCLAIMER
85
- THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
- OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
- INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
- DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
- FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
- OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,93 +0,0 @@
1
- Copyright 2011 The Montserrat Project Authors (https://github.com/JulietaUla/Montserrat)
2
-
3
- This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
- This license is copied below, and is also available with a FAQ at:
5
- http://scripts.sil.org/OFL
6
-
7
-
8
- -----------------------------------------------------------
9
- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
- -----------------------------------------------------------
11
-
12
- PREAMBLE
13
- The goals of the Open Font License (OFL) are to stimulate worldwide
14
- development of collaborative font projects, to support the font creation
15
- efforts of academic and linguistic communities, and to provide a free and
16
- open framework in which fonts may be shared and improved in partnership
17
- with others.
18
-
19
- The OFL allows the licensed fonts to be used, studied, modified and
20
- redistributed freely as long as they are not sold by themselves. The
21
- fonts, including any derivative works, can be bundled, embedded,
22
- redistributed and/or sold with any software provided that any reserved
23
- names are not used by derivative works. The fonts and derivatives,
24
- however, cannot be released under any other type of license. The
25
- requirement for fonts to remain under this license does not apply
26
- to any document created using the fonts or their derivatives.
27
-
28
- DEFINITIONS
29
- "Font Software" refers to the set of files released by the Copyright
30
- Holder(s) under this license and clearly marked as such. This may
31
- include source files, build scripts and documentation.
32
-
33
- "Reserved Font Name" refers to any names specified as such after the
34
- copyright statement(s).
35
-
36
- "Original Version" refers to the collection of Font Software components as
37
- distributed by the Copyright Holder(s).
38
-
39
- "Modified Version" refers to any derivative made by adding to, deleting,
40
- or substituting -- in part or in whole -- any of the components of the
41
- Original Version, by changing formats or by porting the Font Software to a
42
- new environment.
43
-
44
- "Author" refers to any designer, engineer, programmer, technical
45
- writer or other person who contributed to the Font Software.
46
-
47
- PERMISSION & CONDITIONS
48
- Permission is hereby granted, free of charge, to any person obtaining
49
- a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
- redistribute, and sell modified and unmodified copies of the Font
51
- Software, subject to the following conditions:
52
-
53
- 1) Neither the Font Software nor any of its individual components,
54
- in Original or Modified Versions, may be sold by itself.
55
-
56
- 2) Original or Modified Versions of the Font Software may be bundled,
57
- redistributed and/or sold with any software, provided that each copy
58
- contains the above copyright notice and this license. These can be
59
- included either as stand-alone text files, human-readable headers or
60
- in the appropriate machine-readable metadata fields within text or
61
- binary files as long as those fields can be easily viewed by the user.
62
-
63
- 3) No Modified Version of the Font Software may use the Reserved Font
64
- Name(s) unless explicit written permission is granted by the corresponding
65
- Copyright Holder. This restriction only applies to the primary font name as
66
- presented to the users.
67
-
68
- 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
- Software shall not be used to promote, endorse or advertise any
70
- Modified Version, except to acknowledge the contribution(s) of the
71
- Copyright Holder(s) and the Author(s) or with their explicit written
72
- permission.
73
-
74
- 5) The Font Software, modified or unmodified, in part or in whole,
75
- must be distributed entirely under this license, and must not be
76
- distributed under any other license. The requirement for fonts to
77
- remain under this license does not apply to any document created
78
- using the Font Software.
79
-
80
- TERMINATION
81
- This license becomes null and void if any of the above conditions are
82
- not met.
83
-
84
- DISCLAIMER
85
- THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
- OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
- INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
- DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
- FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
- OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,53 +0,0 @@
1
- /* global document */
2
- (function() {
3
- var targets = document.querySelectorAll('pre');
4
- var main = document.querySelector('#main');
5
-
6
- var footer = document.querySelector('#footer');
7
- var pageTitle = document.querySelector('#page-title');
8
- var pageTitleHeight = 0;
9
-
10
- var footerHeight = footer.getBoundingClientRect().height;
11
-
12
- if (pageTitle) {
13
- pageTitleHeight = pageTitle.getBoundingClientRect().height;
14
-
15
- // Adding margin (Outer height)
16
- pageTitleHeight += 45;
17
- }
18
-
19
- // subtracted 20 for extra padding.
20
- // eslint-disable-next-line no-undef
21
- var divMaxHeight = window.innerHeight - pageTitleHeight - footerHeight - 80;
22
-
23
- setTimeout(function() {
24
- targets.forEach(function(item) {
25
- var innerHTML = item.innerHTML;
26
- var divElement = document.createElement('div');
27
-
28
- divElement.style.maxHeight = divMaxHeight + 'px';
29
- divElement.style.marginTop = '2rem';
30
- divElement.innerHTML = innerHTML;
31
- // item.removeChild();
32
- item.innerHTML = '';
33
- item.appendChild(divElement);
34
- });
35
-
36
- // eslint-disable-next-line no-undef
37
- main.style.minHeight = window.innerHeight - footerHeight - 15 + 'px';
38
-
39
- // See if we have to move something into view
40
- // eslint-disable-next-line no-undef
41
- var location = window.location.href.split('#')[1];
42
-
43
- if (location && location.length > 0) {
44
- try {
45
- var element = document.querySelector('#'.concat(decodeURI(location)));
46
-
47
- element.scrollIntoView();
48
- } catch (error) {
49
- console.log(error);
50
- }
51
- }
52
- }, 300);
53
- })();