Skip to content

Commit bb60ccf

Browse files
committed
ilnk to superclasses and roles
1 parent b618194 commit bb60ccf

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

htmlify.pl

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,23 @@ ($out_dir = 'html', Bool :$debug)
118118
next unless %methods-by-type{$r};
119119
$pod.content.push:
120120
pod-heading("Methods supplied by role $r"),
121-
# TODO: make that a link to $r
122-
pod-block("$podname does role $r, which provides the following methods:"),
121+
pod-block(
122+
"$podname does role ",
123+
pod-link($r.name, "/type/$r"),
124+
", which provides the following methods:",
125+
),
123126
%methods-by-type{$r}.list,
124127
;
125128
}
126129
for @mro -> $c {
127130
next unless %methods-by-type{$c};
128131
$pod.content.push:
129132
pod-heading("Methods supplied by class $c"),
130-
# TODO: make that a link to $c
131-
pod-block("$podname inherits from class $c, which provides the following methods:"),
133+
pod-block(
134+
"$podname inherits from class ",
135+
pod-link($c.name, "/type/$c"),
136+
", which provides the following methods:",
137+
),
132138
%methods-by-type{$c}.list,
133139
;
134140
}

0 commit comments

Comments
 (0)