1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

isBlock to manifest

This commit is contained in:
Adria Navarro 2024-01-30 10:20:52 +01:00
parent 5b5228d8b0
commit eac30aa787
2 changed files with 275 additions and 141 deletions

File diff suppressed because it is too large Load diff

View file

@ -115,6 +115,7 @@ function getCommentInfo(file, func) {
docs.example = docs.example.replace("product", "multiply")
}
docs.description = blocks[0].trim()
docs.isBlock = docs.tags.some(el => el.title === "block")
return docs
}
@ -159,6 +160,7 @@ function run() {
numArgs: args.length,
example: jsDocInfo.example || undefined,
description: jsDocInfo.description,
isBlock: jsDocInfo.isBlock,
})
}
outputJSON[collection] = collectionInfo