clean-jsdoc-theme 4.1.11 → 4.2.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # clean-jsdoc-theme
2
2
 
3
- [![Stars](https://img.shields.io/github/stars/ankitskvmdam/clean-jsdoc-theme)](https://github.com/ankitskvmdam/clean-jsdoc-theme) [![Fork](https://img.shields.io/github/forks/ankitskvmdam/clean-jsdoc-theme)](https://github.com/ankitskvmdam/clean-jsdoc-theme/fork) ![Version](https://img.shields.io/badge/version-4.1.11-005bff) [![Issues Open](https://img.shields.io/github/issues/ankitskvmdam/clean-jsdoc-theme)](https://github.com/ankitskvmdam/clean-jsdoc-theme/issues) [![Contributors](https://img.shields.io/github/contributors/ankitskvmdam/clean-jsdoc-theme)](https://github.com/ankitskvmdam/clean-jsdoc-theme/graphs/contributors) [![Build Status](https://travis-ci.org/ankitskvmdam/clean-jsdoc-theme.svg?branch=production)](https://travis-ci.org/ankitskvmdam/clean-jsdoc-theme) [![license](https://img.shields.io/github/license/ankitskvmdam/clean-jsdoc-theme)](https://github.com/ankitskvmdam/clean-jsdoc-theme/blob/master/LICENSE)
3
+ [![Stars](https://img.shields.io/github/stars/ankitskvmdam/clean-jsdoc-theme)](https://github.com/ankitskvmdam/clean-jsdoc-theme) [![Fork](https://img.shields.io/github/forks/ankitskvmdam/clean-jsdoc-theme)](https://github.com/ankitskvmdam/clean-jsdoc-theme/fork) ![Version](https://img.shields.io/badge/version-4.2.0-005bff) [![Issues Open](https://img.shields.io/github/issues/ankitskvmdam/clean-jsdoc-theme)](https://github.com/ankitskvmdam/clean-jsdoc-theme/issues) [![Contributors](https://img.shields.io/github/contributors/ankitskvmdam/clean-jsdoc-theme)](https://github.com/ankitskvmdam/clean-jsdoc-theme/graphs/contributors) [![Build Status](https://travis-ci.org/ankitskvmdam/clean-jsdoc-theme.svg?branch=production)](https://travis-ci.org/ankitskvmdam/clean-jsdoc-theme) [![license](https://img.shields.io/github/license/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
@@ -424,27 +424,28 @@ This will remove all symbols (members, methods ...) that come from inherited par
424
424
 
425
425
  ## Cheat sheet
426
426
 
427
- | name | default | use case | expected value(s) |
428
- | --------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- | --------------------- |
429
- | `default_theme` | `"dark"` | To set the default theme | `"light" or "dark"` |
430
- | `homepageTitle` | "Home" | To set the title of homepage | `string` |
431
- | `title` | `null` | To set the title | `HTML` or `string` |
432
- | `base_url` | `/` | To set the base URL | `string` |
433
- | `menu` | `null` | To render extra link in navbar | Array of Object(s) |
434
- | `meta` | `null` | Meta tag attributes | Array of Object(s) |
435
- | `search` | `true` | To render search or not | `true` or `false` |
436
- | `codepen` | `{}` | To open code in codepen | `Object` |
437
- | `static_dir` | `null` | To include static dir | Array of string |
438
- | `create_style` | `null` | To create custom style rules | `string` |
439
- | `add_style_path` | `null` | To add external css libraries/files | Array of Object(s) |
440
- | `include_css` | `null` | To include css files | Array of string |
441
- | `add_scripts` | `null` | To create custom script | `string` |
442
- | `add_script_path` | `null` | To add external js libraries/files | Array of Object(s) |
443
- | `include_js` | `null` | To include js files | `string` |
444
- | `footer` | `null` | To render footer | `HTML` or `string` |
445
- | `exclude_inherited` | `false` | To exclude inherited symbols | `boolean` |
446
- | `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>` |
447
- | `displayModuleHeader` | `false` | If you want the module name to appear on its page | `boolean` |
427
+ | name | default | use case | expected value(s) |
428
+ | ---------------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- | --------------------- |
429
+ | `default_theme` | `"dark"` | To set the default theme | `"light" or "dark"` |
430
+ | `homepageTitle` | "Home" | To set the title of homepage | `string` |
431
+ | `title` | `null` | To set the title | `HTML` or `string` |
432
+ | `base_url` | `/` | To set the base URL | `string` |
433
+ | `menu` | `null` | To render extra link in navbar | Array of Object(s) |
434
+ | `meta` | `null` | Meta tag attributes | Array of Object(s) |
435
+ | `search` | `true` | To render search or not | `true` or `false` |
436
+ | `codepen` | `{}` | To open code in codepen | `Object` |
437
+ | `static_dir` | `null` | To include static dir | Array of string |
438
+ | `create_style` | `null` | To create custom style rules | `string` |
439
+ | `add_style_path` | `null` | To add external css libraries/files | Array of Object(s) |
440
+ | `include_css` | `null` | To include css files | Array of string |
441
+ | `add_scripts` | `null` | To create custom script | `string` |
442
+ | `add_script_path` | `null` | To add external js libraries/files | Array of Object(s) |
443
+ | `include_js` | `null` | To include js files | `string` |
444
+ | `footer` | `null` | To render footer | `HTML` or `string` |
445
+ | `exclude_inherited` | `false` | To exclude inherited symbols | `boolean` |
446
+ | `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>` |
447
+ | `displayModuleHeader` | `false` | If you want the module name to appear on its page | `boolean` |
448
+ | `includeFilesListInHomepage` | `false` | If you want to add or remove the list of files in homepage | `boolean` |
448
449
 
449
450
  Don't forget to add the following in your jsdoc config file, otherwise toc will not work on some pages.
450
451
 
package/jsdoc-config.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "allowUnknownTags": true
4
4
  },
5
5
  "source": {
6
- "include": ["./demo/src", "./README.md"]
6
+ "include": ["./demo/src", "./README.md", "./static/scripts/core.js"]
7
7
  },
8
8
  "plugins": ["plugins/markdown"],
9
9
  "opts": {
@@ -13,6 +13,7 @@
13
13
  "template": "./",
14
14
  "tutorials": "./demo/src/tutorials",
15
15
  "theme_opts": {
16
+ "includeFilesListInHomepage": true,
16
17
  "search": true,
17
18
  "homepageTitle": "Clean JSDoc Theme",
18
19
  "default_theme": "dark",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clean-jsdoc-theme",
3
- "version": "4.1.11",
3
+ "version": "4.2.0",
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": {
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "homepage": "https://ankdev.me/clean-jsdoc-theme/v4/index.html",
22
22
  "peerDependencies": {
23
- "jsdoc": "[3, 4]"
23
+ "jsdoc": ">=3.x <=4.x"
24
24
  },
25
25
  "keywords": [
26
26
  "jsdoc",
package/publish.js CHANGED
@@ -892,6 +892,7 @@ exports.publish = function (taffyData, opts, tutorials) {
892
892
  packages = find({ kind: 'package' });
893
893
  // added by clean-jsdoc-theme-devs
894
894
  const homepageTitle = themeOpts.homepageTitle || 'Home';
895
+ const includeFilesListInHomepage = themeOpts.includeFilesListInHomepage || false
895
896
 
896
897
  generate(
897
898
  homepageTitle,
@@ -905,7 +906,7 @@ exports.publish = function (taffyData, opts, tutorials) {
905
906
  : 'Main Page',
906
907
  },
907
908
  ])
908
- .concat(files),
909
+ .concat(includeFilesListInHomepage ? files : []),
909
910
  indexUrl
910
911
  );
911
912