Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): ensure no duplicates in alias names of docs #2499

Merged
merged 1 commit into from Jun 12, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/dgeni-package/processors/readTypeScriptModules.js
Expand Up @@ -146,13 +146,19 @@ module.exports = function readTypeScriptModules(tsParser, readFilesProcessor, mo
}
});

//Make sure duplicate aliases aren't created, so "Ambiguous link" warnings are prevented
var aliasNames = [name];
if (typeParamString) {
aliasNames.push(name + typeParamString);
}

var exportDoc = {
docType: getExportDocType(exportSymbol),
name: name,
id: name,
typeParams: typeParamString,
heritage: heritageString,
aliases: [name, name + typeParamString],
aliases: aliasNames,
moduleDoc: moduleDoc,
content: getContent(exportSymbol),
fileInfo: getFileInfo(exportSymbol, basePath),
Expand Down