mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
don't set the github repo's nameWithOwner if the config is incomplete
This commit is contained in:
parent
4ad4dde687
commit
409c62b22c
@ -33,10 +33,14 @@ function getParser(parser, conf) {
|
||||
|
||||
if (parser === parsers.gfm) {
|
||||
parser = require(parser);
|
||||
|
||||
var githubConf = {
|
||||
nameWithOwner: conf.githubRepoOwner + "/" + conf.githubRepoName,
|
||||
repoName: conf.githubRepoName
|
||||
};
|
||||
if (conf.githubRepoOwner && conf.githubRepoName) {
|
||||
githubConf.nameWithOwner = conf.githubRepoOwner + "/" + conf.githubRepoName;
|
||||
}
|
||||
|
||||
parser.hardwrap = !!conf.hardwrap;
|
||||
|
||||
return function(source) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user