build(aio): deprecate `@howToUse` and `@whatItDoes` tags (#22401)
See https://github.com/angular/angular/issues/22135#issuecomment-367632372 PR Close #22401
This commit is contained in:
parent
8c358844dd
commit
e75f0cee18
|
@ -1,3 +1,10 @@
|
||||||
module.exports = function() {
|
module.exports = function(log, createDocMessage) {
|
||||||
return {name: 'howToUse'};
|
return {
|
||||||
|
name: 'howToUse',
|
||||||
|
transforms(doc, tag, value) {
|
||||||
|
log.warn(createDocMessage('Deprecated `@howToUse` tag found', doc));
|
||||||
|
log.warn('PLEASE FIX by renaming to `@usageNotes.');
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
module.exports = function() {
|
module.exports = function(log, createDocMessage) {
|
||||||
return {name: 'whatItDoes'};
|
return {
|
||||||
|
name: 'whatItDoes',
|
||||||
|
transforms(doc, tag, value) {
|
||||||
|
log.warn(createDocMessage('Deprecated `@whatItDoes` tag found', doc));
|
||||||
|
log.warn('PLEASE FIX by adding the content of this tag as the first paragraph of the `@description` tag.');
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue