don't throw an exception if there are no source files with JSDoc comments (#329)

This commit is contained in:
Jeff Williams 2013-01-30 17:31:05 -08:00
parent d679eae2d5
commit f09ef82246

View File

@ -361,7 +361,9 @@ exports.publish = function(taffyData, opts, tutorials) {
fs.copyFileSync(fileName, toDir); fs.copyFileSync(fileName, toDir);
}); });
if (sourceFilePaths.length) {
sourceFiles = shortenPaths( sourceFiles, path.commonPrefix(sourceFilePaths) ); sourceFiles = shortenPaths( sourceFiles, path.commonPrefix(sourceFilePaths) );
}
data().each(function(doclet) { data().each(function(doclet) {
var url = helper.createLink(doclet); var url = helper.createLink(doclet);
helper.registerLink(doclet.longname, url); helper.registerLink(doclet.longname, url);