Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing a couple of the visibility bugs and updating the global search…
… to search both private/public classes and modules so the sidebar only needs to deal with public
- Loading branch information
1 parent
e7ec1fd
commit ca511cf
Showing
5 changed files
with
106 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
module.exports = { | ||
publicClasses: function(context, options) { | ||
'use strict'; | ||
var ret = ""; | ||
|
||
for(var i=0; i < context.length; i++) { | ||
if(!context[i].itemtype && context[i].access === 'public') { | ||
ret = ret + options.fn(context[i]); | ||
} else if (context[i].itemtype) { | ||
ret = ret + options.fn(context[i]); | ||
} | ||
} | ||
|
||
return ret; | ||
}, | ||
search : function(classes, modules) { | ||
'use strict'; | ||
var ret = ''; | ||
|
||
for(var i=0; i < classes.length; i++) { | ||
if(i > 0) { | ||
ret += ', '; | ||
} | ||
ret += "\"" + 'classes/' + classes[i].displayName + "\""; | ||
} | ||
|
||
if(ret.length > 0 && modules.length > 0) { | ||
ret += ', '; | ||
} | ||
|
||
for(var j=0; j < modules.length; j++) { | ||
if(j > 0) { | ||
ret += ', '; | ||
} | ||
ret += "\"" + 'modules/' + modules[j].displayName + "\""; | ||
} | ||
|
||
return ret; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters