diff --git a/lib/src/model/directives/categorization.dart b/lib/src/model/directives/categorization.dart index d44acc132f..879308ef10 100644 --- a/lib/src/model/directives/categorization.dart +++ b/lib/src/model/directives/categorization.dart @@ -7,7 +7,7 @@ import 'package:dartdoc/src/model/model.dart'; import 'package:meta/meta.dart'; final RegExp _categoryRegExp = RegExp( - r'[ ]*{@(api|category|subCategory|image|samples) (.+?)}[ ]*\n?', + r'[ ]*{@(category|subCategory|image|samples) (.+?)}[ ]*\n?', multiLine: true); /// Mixin parsing the `@category` directive for ModelElements. @@ -28,7 +28,6 @@ mixin Categorization on DocumentationComment implements Indexable { _hasCategorization = true; switch (match[1]) { case 'category': - case 'api': categorySet.add(match[2]!.trim()); case 'subCategory': subCategorySet.add(match[2]!.trim()); diff --git a/lib/src/model/documentation_comment.dart b/lib/src/model/documentation_comment.dart index 63879dd123..9635a88486 100644 --- a/lib/src/model/documentation_comment.dart +++ b/lib/src/model/documentation_comment.dart @@ -158,7 +158,6 @@ mixin DocumentationComment 'youtube', // Other directives, parsed by `model/directives/*.dart`: - 'api', 'canonicalFor', 'category', 'hideConstantImplementations',