Loading lib/jsduck/options.rb +1 −1 Original line number Diff line number Diff line Loading @@ -364,7 +364,7 @@ module JsDuck # Runs checks on the options def validate if @input_files.length == 0 if @input_files.length == 0 && !@welcome && !@guides && !@videos && !@examples puts "You should specify some input files, otherwise there's nothing I can do :(" exit(1) elsif @export != :stdout Loading template/app/view/cls/Index.js +2 −2 Original line number Diff line number Diff line Loading @@ -28,10 +28,10 @@ Ext.define('Docs.view.cls.Index', { }, /** * Returns tab config for classes page. * Returns tab config for classes page if at least one class. * @return {Object} */ getTab: function() { return {cls: 'classes', href: '#!/api', tooltip: 'API Documentation'}; return Docs.data.classes.length > 0 ? {cls: 'classes', href: '#!/api', tooltip: 'API Documentation'} : false; } }); Loading
lib/jsduck/options.rb +1 −1 Original line number Diff line number Diff line Loading @@ -364,7 +364,7 @@ module JsDuck # Runs checks on the options def validate if @input_files.length == 0 if @input_files.length == 0 && !@welcome && !@guides && !@videos && !@examples puts "You should specify some input files, otherwise there's nothing I can do :(" exit(1) elsif @export != :stdout Loading
template/app/view/cls/Index.js +2 −2 Original line number Diff line number Diff line Loading @@ -28,10 +28,10 @@ Ext.define('Docs.view.cls.Index', { }, /** * Returns tab config for classes page. * Returns tab config for classes page if at least one class. * @return {Object} */ getTab: function() { return {cls: 'classes', href: '#!/api', tooltip: 'API Documentation'}; return Docs.data.classes.length > 0 ? {cls: 'classes', href: '#!/api', tooltip: 'API Documentation'} : false; } });