File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,13 @@ (Bool :$debug, Bool :$typegraph = False)
150
150
% names {$ name }<routine >. push : " /type/$ podname .html#" ~ uri_escape($ name );
151
151
% routines {$ name }. push : $ podname => $ chunk ;
152
152
% types <routine >{$ name } = " /routine/" ~ uri_escape( $ name );
153
+ $ dr . add-new(
154
+ : kind<routine >,
155
+ # TODO: determine subkind, ie method/sub
156
+ : name($ name ),
157
+ : pod($ chunk ),
158
+ :! pod-is-complete,
159
+ );
153
160
}
154
161
if $ tg . types{$ podname } -> $ t {
155
162
$ pod . content. push : Pod ::Block::Named. new (
@@ -201,6 +208,13 @@ (Bool :$debug, Bool :$typegraph = False)
201
208
}
202
209
}
203
210
}
211
+ $ dr . add-new(
212
+ : kind<type >,
213
+ # TODO: subkind
214
+ : $ pod ,
215
+ : pod-is-complete,
216
+ : name($ podname ),
217
+ );
204
218
spurt " html/$ what /$ podname .html" , p2h($ pod );
205
219
}
206
220
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class Perl6::Documentable::Registry {
5
5
has @ . documentables ;
6
6
has Bool $ . composed = False ;
7
7
has % ! cache ;
8
- has % ! grouped-by
8
+ has % ! grouped-by ;
9
9
method add-new (* % args ) {
10
10
die " Cannot add something to a composed registry" if $ . composed ;
11
11
@ ! documentables . push : Perl6::Documentable. new (| % args );
@@ -24,6 +24,6 @@ class Perl6::Documentable::Registry {
24
24
% ! cache {$ by }{$ d . " $ by" ()}. push : $ d ;
25
25
}
26
26
}
27
- % ! cache {$ by }{$ d };
27
+ % ! cache {$ by }{$ what };
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments