@itee/tasks 1.4.4 → 1.4.5

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 (61) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/package.json +3 -3
  3. package/sources/utils/testing.js +1 -1
  4. package/docs/-_utils.mjs.html +0 -898
  5. package/docs/cleans_clean.task.mjs.html +0 -238
  6. package/docs/fonts/glyphicons-halflings-regular.eot +0 -0
  7. package/docs/fonts/glyphicons-halflings-regular.svg +0 -288
  8. package/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
  9. package/docs/fonts/glyphicons-halflings-regular.woff +0 -0
  10. package/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
  11. package/docs/global.html +0 -2200
  12. package/docs/helps_help.task.mjs.html +0 -326
  13. package/docs/img/glyphicons-halflings-white.png +0 -0
  14. package/docs/img/glyphicons-halflings.png +0 -0
  15. package/docs/index.html +0 -228
  16. package/docs/lints_lint.task.mjs.html +0 -255
  17. package/docs/patches_patch.task.mjs.html +0 -252
  18. package/docs/quicksearch.html +0 -31
  19. package/docs/releases_release.task.mjs.html +0 -238
  20. package/docs/scripts/docstrap.lib.js +0 -11
  21. package/docs/scripts/fulltext-search-ui.js +0 -89
  22. package/docs/scripts/fulltext-search.js +0 -36
  23. package/docs/scripts/lunr.min.js +0 -6
  24. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  25. package/docs/scripts/prettify/jquery.min.js +0 -6
  26. package/docs/scripts/prettify/lang-css.js +0 -21
  27. package/docs/scripts/prettify/prettify.js +0 -496
  28. package/docs/scripts/sunlight.js +0 -1157
  29. package/docs/scripts/toc.js +0 -203
  30. package/docs/styles/darkstrap.css +0 -960
  31. package/docs/styles/prettify-tomorrow.css +0 -132
  32. package/docs/styles/site.cerulean.css +0 -7008
  33. package/docs/styles/site.cosmo.css +0 -7061
  34. package/docs/styles/site.cyborg.css +0 -7048
  35. package/docs/styles/site.darkly.css +0 -7171
  36. package/docs/styles/site.darkstrap.css +0 -5638
  37. package/docs/styles/site.dibs-bootstrap.css +0 -5899
  38. package/docs/styles/site.flatly.css +0 -7147
  39. package/docs/styles/site.journal.css +0 -6973
  40. package/docs/styles/site.lumen.css +0 -7298
  41. package/docs/styles/site.paper.css +0 -7623
  42. package/docs/styles/site.readable.css +0 -6997
  43. package/docs/styles/site.sandstone.css +0 -7035
  44. package/docs/styles/site.simplex.css +0 -7023
  45. package/docs/styles/site.slate.css +0 -7343
  46. package/docs/styles/site.spacelab.css +0 -7055
  47. package/docs/styles/site.superhero.css +0 -7131
  48. package/docs/styles/site.united.css +0 -6895
  49. package/docs/styles/site.yeti.css +0 -7195
  50. package/docs/styles/sunlight.dark.css +0 -345
  51. package/docs/styles/sunlight.default.css +0 -344
  52. package/docs/tests_benchmarks_compute-benchmarks.task.mjs.html +0 -438
  53. package/docs/tests_benchmarks_run-benchmarks-for-backend.task.mjs.html +0 -251
  54. package/docs/tests_benchmarks_run-benchmarks-for-frontend.task.mjs.html +0 -252
  55. package/docs/tests_bundlings_check-bundling-from-esm-files-direct.task.mjs.html +0 -288
  56. package/docs/tests_bundlings_check-bundling.task.mjs.html +0 -231
  57. package/docs/tests_run-tests.task.mjs.html +0 -228
  58. package/docs/tests_units_compute-unit-tests.task.mjs.html +0 -758
  59. package/docs/tests_units_run-unit-tests-for-backend.task.mjs.html +0 -256
  60. package/docs/tests_units_run-unit-tests-for-frontend.task.mjs.html +0 -252
  61. package/docs/utils_texts.mjs.html +0 -328
@@ -1,326 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html lang="en">
4
- <head>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width">
7
- <title>Itee Tasks v1.4.3 Source: helps/help.task.mjs</title>
8
-
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/sunlight.dark.css">
13
-
14
- <link type="text/css" rel="stylesheet" href="styles/site.cyborg.css">
15
-
16
- </head>
17
-
18
- <body>
19
-
20
- <div class="navbar navbar-default navbar-fixed-top ">
21
- <div class="container">
22
- <div class="navbar-header">
23
- <a class="navbar-brand" href="index.html">Itee Tasks v1.4.3</a>
24
- <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
25
- <span class="icon-bar"></span>
26
- <span class="icon-bar"></span>
27
- <span class="icon-bar"></span>
28
- </button>
29
- </div>
30
- <div class="navbar-collapse collapse" id="topNavigation">
31
- <ul class="nav navbar-nav">
32
-
33
- <li class="dropdown">
34
- <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
35
- <ul class="dropdown-menu inline">
36
- <li><a href="global.html#alignTextCenter">alignTextCenter</a></li><li><a href="global.html#alignTextLeft">alignTextLeft</a></li><li><a href="global.html#alignTextRight">alignTextRight</a></li><li><a href="global.html#checkBundlingFromEsmFilesDirectTask">checkBundlingFromEsmFilesDirectTask</a></li><li><a href="global.html#checkBundlingTask">checkBundlingTask</a></li><li><a href="global.html#computeBenchmarksTask">computeBenchmarksTask</a></li><li><a href="global.html#computeUnitTestsTask">computeUnitTestsTask</a></li><li><a href="global.html#npmrunclean">npm run clean</a></li><li><a href="global.html#npmrunhelpdefault">npm run help ( default )</a></li><li><a href="global.html#npmrunlint">npm run lint</a></li><li><a href="global.html#npmrunpatch">npm run patch</a></li><li><a href="global.html#npmrunrelease">npm run release</a></li><li><a href="global.html#npmruntest">npm run test</a></li><li><a href="global.html#runBenchmarksForBackendTask">runBenchmarksForBackendTask</a></li><li><a href="global.html#runBenchmarksForFrontendTask">runBenchmarksForFrontendTask</a></li><li><a href="global.html#runUnitTestsForBackendTask">runUnitTestsForBackendTask</a></li><li><a href="global.html#runUnitTestsForFrontendTask">runUnitTestsForFrontendTask</a></li><li><a href="global.html#toCamelCase">toCamelCase</a></li>
37
- </ul>
38
- </li>
39
-
40
- </ul>
41
-
42
- <div class="col-sm-3 col-md-3">
43
- <form class="navbar-form" role="search">
44
- <div class="input-group">
45
- <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
46
- <div class="input-group-btn">
47
- <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
48
- </div>
49
- </div>
50
- </form>
51
- </div>
52
-
53
- </div>
54
-
55
- </div>
56
- </div>
57
-
58
-
59
- <div class="container" id="toc-content">
60
- <div class="row">
61
-
62
-
63
- <div class="col-md-12">
64
-
65
- <div id="main">
66
-
67
-
68
- <h1 class="page-title">Source: helps/help.task.mjs</h1>
69
-
70
- <section>
71
- <article>
72
- <pre
73
- class="sunlight-highlight-javascript linenums">import { basename } from 'node:path'
74
- import {
75
- blue,
76
- cyan,
77
- green,
78
- magenta,
79
- red,
80
- yellow
81
- } from '../utils/colors.mjs'
82
- import {
83
- log,
84
- logLoadingTask
85
- } from '../utils/loggings.mjs'
86
- import {
87
- getPrettyNodeVersion,
88
- getPrettyNpmVersion,
89
- getPrettyPackageName,
90
- getPrettyPackageVersion
91
- } from '../utils/packages.mjs'
92
- import {
93
- alignTextCenter,
94
- alignTextLeft,
95
- Indenter,
96
- } from '../utils/texts.mjs'
97
-
98
- logLoadingTask( import.meta.filename )
99
-
100
- /**
101
- * @method npm run help ( default )
102
- * @global
103
- * @description Will display the help in console
104
- */
105
- const helpTask = ( done ) => {
106
-
107
- const bannerWidth = 70
108
- const prettyPackageName = getPrettyPackageName()
109
- const prettyPackageVersion = getPrettyPackageVersion()
110
- const prettyNodeVersion = getPrettyNodeVersion()
111
- const prettyNpmVersion = getPrettyNpmVersion()
112
-
113
- const tableCharset = {
114
- topLeftCorner: '┏',
115
- topRightCorner: '┓',
116
- bottomRightCorner: '┛',
117
- bottomLeftCorner: '┗',
118
- horizontalBorder: '━',
119
- horizontalSeparator: '─',
120
- leftJoinSeparator: '┠',
121
- rightJoinSeparator: '┨',
122
- verticalBorder: '┃',
123
- verticalSeparator: '',
124
- }
125
-
126
- const mainBorder = tableCharset.horizontalBorder.repeat( bannerWidth )
127
- const thinBorder = tableCharset.horizontalSeparator.repeat( bannerWidth )
128
- const tableTop = `${ tableCharset.topLeftCorner }${ mainBorder }${ tableCharset.topRightCorner }`
129
- const tableSeparator = `${ tableCharset.leftJoinSeparator }${ thinBorder }${ tableCharset.rightJoinSeparator }`
130
- const tableBottom = `${ tableCharset.bottomLeftCorner }${ mainBorder }${ tableCharset.bottomRightCorner }`
131
- const tableLine = ( innerText ) => `${ tableCharset.verticalBorder }${ innerText }${ tableCharset.verticalBorder }`
132
-
133
- const {
134
- I_,
135
- I__,
136
- I___,
137
- I____,
138
- } = new Indenter( '\t', 4 )
139
-
140
- const npmRun = blue( 'npm run' )
141
-
142
- log( '' )
143
- log( tableTop )
144
- log( tableLine( alignTextCenter( 'HELP', bannerWidth ) ) )
145
- log( tableLine( alignTextCenter( prettyPackageName, bannerWidth ) ) )
146
- log( tableLine( alignTextCenter( prettyPackageVersion, bannerWidth ) ) )
147
- log( tableSeparator )
148
- log( tableLine( alignTextLeft( prettyNodeVersion, bannerWidth ) ) )
149
- log( tableLine( alignTextLeft( prettyNpmVersion, bannerWidth ) ) )
150
- log( tableBottom )
151
- log( I_, 'Available commands are:' )
152
- log( I__, npmRun, cyan( 'help' ), '- Display this help.' )
153
- log( I__, npmRun, cyan( 'patch' ), '- Will apply some patch/replacements in dependencies.', red( '(Apply only once after run "npm install")' ) )
154
- log( I__, npmRun, cyan( 'clean' ), '- Will delete builds and temporary folders.' )
155
- log( I__, npmRun, cyan( 'lint' ), '- Will run the eslint in pedantic mode with auto fix when possible.' )
156
- log( I__, npmRun, cyan( 'doc' ), '- Will run jsdoc, and create documentation under `documentation` folder, using the docdash theme' )
157
- log( I__, npmRun, cyan( 'test' ), '- Will run the test framworks (unit and bench), and create reports under `documentation/report` folder, using the mochawesome theme' )
158
- log( I__, npmRun, cyan( 'unit' ), '- Will run the karma server for unit tests.' )
159
- log( I__, npmRun, cyan( 'bench' ), '- Will run the karma server for benchmarks.' )
160
- log( I__, npmRun, cyan( 'build' ), yellow( '--' ), green( '&lt;options>' ), '- Will build the application for development and/or production environments.' )
161
- log( I___, yellow( 'Note: The two dash are only required if you provide options !' ) )
162
- log( I___, 'The available', green( '&lt;options>' ), 'are:' )
163
- log( I____, green( '-i' ), 'or', green( '--input' ), '- The main file path to build', cyan( '[Default: "sources/main.js"]' ), '.' )
164
- log( I____, green( '-o' ), 'or', green( '--output' ), '- The folder where output the build', cyan( '[Default: "builds"]' ), '.' )
165
- log(
166
- I____,
167
- green( '-f:' ),
168
- magenta( '&lt;format>' ),
169
- 'or',
170
- green( '--format:' ),
171
- magenta( '&lt;format>' ),
172
- ' - to specify the output build type. Where format could be any of:', magenta( 'cjs, esm, iife, umd' ), '.'
173
- )
174
- log( I____, green( '-e:' ), magenta( '&lt;env>' ), 'or', green( '--env:' ), magenta( '&lt;env>' ), ' - to specify the build environment. Where env could be any of:', magenta(
175
- 'dev' ), magenta( 'prod' ), cyan( '[Default: "dev"]' ), '.' )
176
- log( I____, green( '-s' ), 'or', green( '--sourcemap' ), ' - to build with related source map', cyan( '[Default: true]' ), '.' )
177
- log( I____, green( '-t' ), 'or', green( '--treeshake' ), ' - allow to perform treeshaking when building', cyan( '[Default: true]' ), '.' )
178
- log( I__, npmRun, cyan( 'release' ), '- Will run all the lint, test stuff, and if succeed will build the application.' )
179
- log( '' )
180
- log( I_, 'In case you have', blue( 'gulp' ), 'installed globally, you could use also:' )
181
- log( I__, blue( 'gulp' ), cyan( 'command' ), '- It will perform the command like using "npm run" but with less characters to type... Because you\'re a developer, right ?' )
182
- log( '' )
183
-
184
- done()
185
-
186
- }
187
- helpTask.displayName = basename( import.meta.filename, '.task.mjs' )
188
- helpTask.description = 'Display the package help'
189
- helpTask.flags = null
190
-
191
- export { helpTask }
192
- </pre>
193
- </article>
194
- </section>
195
-
196
-
197
-
198
-
199
-
200
- </div>
201
- </div>
202
-
203
- <div class="clearfix"></div>
204
-
205
-
206
-
207
- </div>
208
- </div>
209
-
210
-
211
- <div class="modal fade" id="searchResults">
212
- <div class="modal-dialog">
213
- <div class="modal-content">
214
- <div class="modal-header">
215
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
216
- <h4 class="modal-title">Search results</h4>
217
- </div>
218
- <div class="modal-body"></div>
219
- <div class="modal-footer">
220
- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
221
- </div>
222
- </div><!-- /.modal-content -->
223
- </div><!-- /.modal-dialog -->
224
- </div>
225
-
226
-
227
- <footer>
228
-
229
-
230
- <span class="copyright">
231
- Copyright 2015-Present <a href="https://github.com/Itee">Itee (Tristan Valcke)</a>
232
- </span>
233
-
234
- <span class="jsdoc-message">
235
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a>
236
-
237
- using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
238
- </span>
239
- </footer>
240
-
241
- <script src="scripts/docstrap.lib.js"></script>
242
- <script src="scripts/toc.js"></script>
243
-
244
- <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
245
-
246
-
247
- <script>
248
- $( function () {
249
- $( "[id*='$']" ).each( function () {
250
- var $this = $( this );
251
-
252
- $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
253
- } );
254
-
255
- $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
256
- var $this = $( this );
257
-
258
- var example = $this.find( "code" );
259
- exampleText = example.html();
260
- var lang = /{@lang (.*?)}/.exec( exampleText );
261
- if ( lang && lang[1] ) {
262
- exampleText = exampleText.replace( lang[0], "" );
263
- example.html( exampleText );
264
- lang = lang[1];
265
- } else {
266
- var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
267
- lang = langClassMatch ? langClassMatch[1] : "javascript";
268
- }
269
-
270
- if ( lang ) {
271
-
272
- $this
273
- .addClass( "sunlight-highlight-" + lang )
274
- .addClass( "linenums" )
275
- .html( example.html() );
276
-
277
- }
278
- } );
279
-
280
- Sunlight.highlightAll( {
281
- lineNumbers : true,
282
- showMenu : true,
283
- enableDoclinks : true
284
- } );
285
-
286
- $.catchAnchorLinks( {
287
- navbarOffset: 10
288
- } );
289
- $( "#toc" ).toc( {
290
- anchorName : function ( i, heading, prefix ) {
291
- return $( heading ).attr( "id" ) || ( prefix + i );
292
- },
293
- selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
294
- showAndHide : false,
295
- smoothScrolling: true
296
- } );
297
-
298
- $( "#main span[id^='toc']" ).addClass( "toc-shim" );
299
- $( '.dropdown-toggle' ).dropdown();
300
-
301
- $( "table" ).each( function () {
302
- var $this = $( this );
303
- $this.addClass('table');
304
- } );
305
-
306
- } );
307
- </script>
308
-
309
-
310
-
311
- <!--Navigation and Symbol Display-->
312
-
313
-
314
- <!--Google Analytics-->
315
-
316
-
317
-
318
- <script type="text/javascript">
319
- $(document).ready(function() {
320
- SearcherDisplay.init();
321
- });
322
- </script>
323
-
324
-
325
- </body>
326
- </html>
Binary file
package/docs/index.html DELETED
@@ -1,228 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html lang="en">
4
- <head>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width">
7
- <title>Itee Tasks v1.4.3 Index</title>
8
-
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/sunlight.dark.css">
13
-
14
- <link type="text/css" rel="stylesheet" href="styles/site.cyborg.css">
15
-
16
- </head>
17
-
18
- <body>
19
-
20
- <div class="navbar navbar-default navbar-fixed-top ">
21
- <div class="container">
22
- <div class="navbar-header">
23
- <a class="navbar-brand" href="index.html">Itee Tasks v1.4.3</a>
24
- <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
25
- <span class="icon-bar"></span>
26
- <span class="icon-bar"></span>
27
- <span class="icon-bar"></span>
28
- </button>
29
- </div>
30
- <div class="navbar-collapse collapse" id="topNavigation">
31
- <ul class="nav navbar-nav">
32
-
33
- <li class="dropdown">
34
- <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
35
- <ul class="dropdown-menu inline">
36
- <li><a href="global.html#alignTextCenter">alignTextCenter</a></li><li><a href="global.html#alignTextLeft">alignTextLeft</a></li><li><a href="global.html#alignTextRight">alignTextRight</a></li><li><a href="global.html#checkBundlingFromEsmFilesDirectTask">checkBundlingFromEsmFilesDirectTask</a></li><li><a href="global.html#checkBundlingTask">checkBundlingTask</a></li><li><a href="global.html#computeBenchmarksTask">computeBenchmarksTask</a></li><li><a href="global.html#computeUnitTestsTask">computeUnitTestsTask</a></li><li><a href="global.html#npmrunclean">npm run clean</a></li><li><a href="global.html#npmrunhelpdefault">npm run help ( default )</a></li><li><a href="global.html#npmrunlint">npm run lint</a></li><li><a href="global.html#npmrunpatch">npm run patch</a></li><li><a href="global.html#npmrunrelease">npm run release</a></li><li><a href="global.html#npmruntest">npm run test</a></li><li><a href="global.html#runBenchmarksForBackendTask">runBenchmarksForBackendTask</a></li><li><a href="global.html#runBenchmarksForFrontendTask">runBenchmarksForFrontendTask</a></li><li><a href="global.html#runUnitTestsForBackendTask">runUnitTestsForBackendTask</a></li><li><a href="global.html#runUnitTestsForFrontendTask">runUnitTestsForFrontendTask</a></li><li><a href="global.html#toCamelCase">toCamelCase</a></li>
37
- </ul>
38
- </li>
39
-
40
- </ul>
41
-
42
- <div class="col-sm-3 col-md-3">
43
- <form class="navbar-form" role="search">
44
- <div class="input-group">
45
- <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
46
- <div class="input-group-btn">
47
- <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
48
- </div>
49
- </div>
50
- </form>
51
- </div>
52
-
53
- </div>
54
-
55
- </div>
56
- </div>
57
-
58
-
59
- <div class="container" id="toc-content">
60
- <div class="row">
61
-
62
-
63
- <div class="col-md-8">
64
-
65
- <div id="main">
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
- <section class="readme-section">
89
- <article><h1>@itee/tasks</h1></article>
90
- </section>
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- </div>
99
- </div>
100
-
101
- <div class="clearfix"></div>
102
-
103
-
104
- <div class="col-md-3">
105
- <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
106
- </div>
107
-
108
-
109
- </div>
110
- </div>
111
-
112
-
113
- <div class="modal fade" id="searchResults">
114
- <div class="modal-dialog">
115
- <div class="modal-content">
116
- <div class="modal-header">
117
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
118
- <h4 class="modal-title">Search results</h4>
119
- </div>
120
- <div class="modal-body"></div>
121
- <div class="modal-footer">
122
- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
123
- </div>
124
- </div><!-- /.modal-content -->
125
- </div><!-- /.modal-dialog -->
126
- </div>
127
-
128
-
129
- <footer>
130
-
131
-
132
- <span class="copyright">
133
- Copyright 2015-Present <a href="https://github.com/Itee">Itee (Tristan Valcke)</a>
134
- </span>
135
-
136
- <span class="jsdoc-message">
137
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a>
138
-
139
- using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
140
- </span>
141
- </footer>
142
-
143
- <script src="scripts/docstrap.lib.js"></script>
144
- <script src="scripts/toc.js"></script>
145
-
146
- <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
147
-
148
-
149
- <script>
150
- $( function () {
151
- $( "[id*='$']" ).each( function () {
152
- var $this = $( this );
153
-
154
- $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
155
- } );
156
-
157
- $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
158
- var $this = $( this );
159
-
160
- var example = $this.find( "code" );
161
- exampleText = example.html();
162
- var lang = /{@lang (.*?)}/.exec( exampleText );
163
- if ( lang && lang[1] ) {
164
- exampleText = exampleText.replace( lang[0], "" );
165
- example.html( exampleText );
166
- lang = lang[1];
167
- } else {
168
- var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
169
- lang = langClassMatch ? langClassMatch[1] : "javascript";
170
- }
171
-
172
- if ( lang ) {
173
-
174
- $this
175
- .addClass( "sunlight-highlight-" + lang )
176
- .addClass( "linenums" )
177
- .html( example.html() );
178
-
179
- }
180
- } );
181
-
182
- Sunlight.highlightAll( {
183
- lineNumbers : true,
184
- showMenu : true,
185
- enableDoclinks : true
186
- } );
187
-
188
- $.catchAnchorLinks( {
189
- navbarOffset: 10
190
- } );
191
- $( "#toc" ).toc( {
192
- anchorName : function ( i, heading, prefix ) {
193
- return $( heading ).attr( "id" ) || ( prefix + i );
194
- },
195
- selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
196
- showAndHide : false,
197
- smoothScrolling: true
198
- } );
199
-
200
- $( "#main span[id^='toc']" ).addClass( "toc-shim" );
201
- $( '.dropdown-toggle' ).dropdown();
202
-
203
- $( "table" ).each( function () {
204
- var $this = $( this );
205
- $this.addClass('table');
206
- } );
207
-
208
- } );
209
- </script>
210
-
211
-
212
-
213
- <!--Navigation and Symbol Display-->
214
-
215
-
216
- <!--Google Analytics-->
217
-
218
-
219
-
220
- <script type="text/javascript">
221
- $(document).ready(function() {
222
- SearcherDisplay.init();
223
- });
224
- </script>
225
-
226
-
227
- </body>
228
- </html>