clean-jsdoc-theme 4.2.6 → 4.2.7
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.
- package/README.md +12 -0
- package/package.json +2 -2
- package/publish.js +6 -1
package/README.md
CHANGED
|
@@ -417,6 +417,17 @@ To include js files. Example:
|
|
|
417
417
|
It will include the js files to the output dir and also attach a script tag to the html pointing to the included js
|
|
418
418
|
file.
|
|
419
419
|
|
|
420
|
+
### To ignore sorting
|
|
421
|
+
|
|
422
|
+
To ignore the sorting of members/methods/event in the page. If it is `false` then the order of
|
|
423
|
+
members/methods/events will be in the order they are in code/source.
|
|
424
|
+
|
|
425
|
+
```json
|
|
426
|
+
"theme_opts": {
|
|
427
|
+
"sort": false
|
|
428
|
+
}
|
|
429
|
+
```
|
|
430
|
+
|
|
420
431
|
### Footer
|
|
421
432
|
|
|
422
433
|
```json
|
|
@@ -459,6 +470,7 @@ This will remove all symbols (members, methods ...) that come from inherited par
|
|
|
459
470
|
| `sections` | `["Modules", "Classes", "Externals", "Events", "Namespaces", "Mixins", "Tutorials", "Interfaces", "Global"]` | To order navbar/sidebar sections or to hide/remove navbar/sidebar sections | `Array<SECTION_TYPE>` |
|
|
460
471
|
| `displayModuleHeader` | `false` | If you want the module name to appear on its page | `boolean` |
|
|
461
472
|
| `includeFilesListInHomepage` | `false` | If you want to add or remove the list of files in homepage | `boolean` |
|
|
473
|
+
| `sort` | `true` | To sort the output members/methods/events | `boolean` |
|
|
462
474
|
|
|
463
475
|
Don't forget to add the following in your jsdoc config file, otherwise toc will not work on some pages.
|
|
464
476
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clean-jsdoc-theme",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.7",
|
|
4
4
|
"description": "A beautifully crafted theme/template for JSDoc 3. This theme/template looks and feels like a premium theme/template. This is a fully mobile responsive theme and also fully customizable theme.",
|
|
5
5
|
"main": "publish.js",
|
|
6
6
|
"scripts": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"uglify-js": "^3.16.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@jsdoc/salty": "^0.2.
|
|
48
|
+
"@jsdoc/salty": "^0.2.4",
|
|
49
49
|
"fs-extra": "^10.1.0",
|
|
50
50
|
"html-minifier": "^4.0.0",
|
|
51
51
|
"klaw-sync": "^6.0.0",
|
package/publish.js
CHANGED
|
@@ -669,7 +669,12 @@ exports.publish = function (taffyData, opts, tutorials) {
|
|
|
669
669
|
helper.setTutorials(tutorials);
|
|
670
670
|
|
|
671
671
|
data = helper.prune(data);
|
|
672
|
-
|
|
672
|
+
|
|
673
|
+
// eslint-disable-next-line no-extra-boolean-cast, no-implicit-coercion
|
|
674
|
+
if(themeOpts.sort !== false ) {
|
|
675
|
+
data.sort('longname, version, since');
|
|
676
|
+
}
|
|
677
|
+
|
|
673
678
|
helper.addEventListeners(data);
|
|
674
679
|
|
|
675
680
|
data().each((doclet) => {
|