Skip to content

Commit 36e3f68

Browse files
authored
Add 'href' and 'kind' to Documentable. (#2400)
These are each referenced from mustache templates where Documentable is the context type: * 'kind' is used in category.html, at the top-level. * 'href' is used in _head.html while iterating over navLinks, which are Documentable.
1 parent 72c69f8 commit 36e3f68

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/src/model/documentable.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ abstract class Documentable extends Nameable {
2727
bool get isDocumented;
2828

2929
DartdocOptionContext get config;
30+
31+
String get href;
32+
33+
String get kind;
3034
}
3135

3236
/// For a given package, indicate with this enum whether it should be documented

lib/src/model/package.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ class Package extends LibraryContainer
9090

9191
String get homepage => packageMeta.homepage;
9292

93+
@override
9394
String get kind => (isSdk) ? 'SDK' : 'package';
9495

9596
@override

0 commit comments

Comments
 (0)