clean-jsdoc-theme 4.2.5 → 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 +13 -1
- package/package.json +2 -2
- package/publish.js +7 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# clean-jsdoc-theme
|
|
2
2
|
|
|
3
|
-
[](https://github.com/ankitskvmdam/clean-jsdoc-theme) [](https://github.com/ankitskvmdam/clean-jsdoc-theme/fork) ](https://github.com/ankitskvmdam/clean-jsdoc-theme) [](https://github.com/ankitskvmdam/clean-jsdoc-theme/fork)  [](https://github.com/ankitskvmdam/clean-jsdoc-theme/issues) [](https://github.com/ankitskvmdam/clean-jsdoc-theme/graphs/contributors) [](https://travis-ci.org/ankitskvmdam/clean-jsdoc-theme) [](https://github.com/ankitskvmdam/clean-jsdoc-theme/blob/master/LICENSE)
|
|
4
4
|
<br>
|
|
5
5
|
|
|
6
6
|
`clean-jsdoc-theme` is a beautifully crafted theme for JSDoc 3/JSDoc 4. It is a clean and fully responsive theme with loads of
|
|
@@ -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
|
@@ -452,12 +452,10 @@ function buildSidebarMembers({
|
|
|
452
452
|
function buildSearchListForData() {
|
|
453
453
|
data().each((item) => {
|
|
454
454
|
if (item.kind !== 'package' && !item.inherited) {
|
|
455
|
-
const description = (item.description || '').substr(0, 100)
|
|
456
|
-
|
|
457
455
|
searchList.push({
|
|
458
456
|
title: item.longname,
|
|
459
457
|
link: linkto(item.longname, item.name),
|
|
460
|
-
description
|
|
458
|
+
description: item.description
|
|
461
459
|
})
|
|
462
460
|
}
|
|
463
461
|
});
|
|
@@ -671,7 +669,12 @@ exports.publish = function (taffyData, opts, tutorials) {
|
|
|
671
669
|
helper.setTutorials(tutorials);
|
|
672
670
|
|
|
673
671
|
data = helper.prune(data);
|
|
674
|
-
|
|
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
|
+
|
|
675
678
|
helper.addEventListeners(data);
|
|
676
679
|
|
|
677
680
|
data().each((doclet) => {
|