build(docs-infra): Ensures that only member docs are linked (#36316)
This commit ensures that `member` docs are only linked if the linking text contains `.`. PR Close #36316
This commit is contained in:

committed by
Matias Niemelä

parent
4fb034aeec
commit
aebd5f9af6
@ -90,6 +90,12 @@ module.exports = function autoLinkCode(getDocFromAlias) {
|
||||
}
|
||||
|
||||
var doc = docs[0];
|
||||
|
||||
const isInvalidDoc = doc.docType === 'member' && !keyword.includes('.');
|
||||
if (isInvalidDoc) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (doc.path === '') {
|
||||
var message = `
|
||||
autoLinkCode: Doc path is empty for "${doc.id}" - link will not be generated for "${keyword}".
|
||||
|
Reference in New Issue
Block a user