clean-jsdoc-theme 3.3.2 → 3.3.3

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
@@ -3,7 +3,7 @@
3
3
  <p align=center><i align="center">A beautiful, responsive, customizable theme for JSDoc</i></p>
4
4
  <hr>
5
5
 
6
- [![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-3.3.2-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)
6
+ [![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-3.3.3-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)
7
7
  <br>
8
8
 
9
9
  Clean-jsdoc-theme is a beautifully crafted theme/template for JSDoc 3. This theme/template looks and feels like a premium theme/template as it's mobile responsive and also highly customizable. For more options [look below at the options section](#options).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clean-jsdoc-theme",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
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": {
package/publish.js CHANGED
@@ -579,7 +579,8 @@ function buildMemberNav({
579
579
  [] :
580
580
  find({
581
581
  kind: 'function',
582
- memberof: item.longname
582
+ memberof: item.longname,
583
+ inherited: {'!is': Boolean(themeOpts.exclude_inherited)}
583
584
  });
584
585
 
585
586
  if (!hasOwnProp.call(item, 'longname')) {
@@ -636,7 +637,7 @@ function buildMemberNav({
636
637
  itemsNav += "<ul class='methods accordion-content'>";
637
638
 
638
639
  methods.forEach(function(method) {
639
- var name = method.longname.split('#');
640
+ var name = method.longname.split(method.scope === 'static' ? '.' : '#');
640
641
  var first = name[0];
641
642
  var last = name[1];
642
643
 
@@ -732,7 +733,7 @@ function buildNav(members) {
732
733
  [SECTION_TYPE.Modules]: buildMemberNav({
733
734
  itemHeading: 'Modules',
734
735
  items: members.modules,
735
- itemsSeen: {},
736
+ itemsSeen: seen,
736
737
  linktoFn: linkto,
737
738
  sectionName: SECTION_TYPE.Modules
738
739
  }),
@@ -39,20 +39,16 @@ function search(list, options, keys, searchKey) {
39
39
 
40
40
  var result = fuse.search(searchKey);
41
41
 
42
- console.log(result, result.length);
43
42
  if (result.length > 20) { result = result.slice(0, 20); }
44
43
 
45
- console.log(result);
46
44
  var searchUL = document.getElementById('search-item-ul');
47
45
 
48
- searchUL.innerHTML = '';
49
-
50
46
  if (result.length === 0) {
51
- searchUL.innerHTML += '<li class="p-h-n"> No Result Found </li>';
47
+ searchUL.innerHTML = '<li class="p-h-n"> No Result Found </li>';
52
48
  } else {
53
- result.forEach(function(obj) {
54
- searchUL.innerHTML += '<li>' + obj.item.link + '</li>';
55
- });
49
+ searchUL.innerHTML = result.reduce(function(html, obj) {
50
+ return html + '<li>' + obj.item.link + '</li>';
51
+ }, '');
56
52
  }
57
53
  }
58
54
 
@@ -79,5 +75,3 @@ function setupSearch(list, options) {
79
75
  window.addEventListener('click', checkClick);
80
76
  });
81
77
  }
82
-
83
-