mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
don't throw an exception if there are no source files with JSDoc comments (#329)
This commit is contained in:
parent
d679eae2d5
commit
f09ef82246
@ -361,7 +361,9 @@ exports.publish = function(taffyData, opts, tutorials) {
|
||||
fs.copyFileSync(fileName, toDir);
|
||||
});
|
||||
|
||||
sourceFiles = shortenPaths( sourceFiles, path.commonPrefix(sourceFilePaths) );
|
||||
if (sourceFilePaths.length) {
|
||||
sourceFiles = shortenPaths( sourceFiles, path.commonPrefix(sourceFilePaths) );
|
||||
}
|
||||
data().each(function(doclet) {
|
||||
var url = helper.createLink(doclet);
|
||||
helper.registerLink(doclet.longname, url);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user