File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,15 @@ multi sub MAIN('path-to-index') {
27
27
multi sub MAIN (' build' ) {
28
28
my % words ;
29
29
30
- # XXX p6doc probably uses another path to @*INC which is probably incomplete
31
-
32
- for @ * INC . map ({CompUnitRepo. new ($ _ )})». IO -> $ lib_path is copy {
33
- next unless $ lib_path . e ;
34
-
35
- $ lib_path = $ lib_path . Str ;
30
+ # XXX should index more than this
31
+ for ($ * REPO . repo-chain()>>. Str X ~ </doc/ >). grep : *. IO . d -> $ lib_path is copy {
36
32
my @ files = find(: dir($ lib_path ),: type(' file' )). map ({. IO });
37
33
38
34
for @ files -> $ f {
39
35
my $ file = $ f . path ;
40
36
next if $ file ! ~~ /\. pod$ /;
41
37
my $ pod = substr ($ file . Str , 0 , $ file . Str . chars -4 );
42
- $ pod .= subst (/ $ lib_path\ / / ," " );
38
+ $ pod .= subst ($ lib_path ," " );
43
39
$ pod .= subst (/\ // ,' ::' ,: g);
44
40
my $ section = ' ' ;
45
41
for open ( $ file . Str ). lines -> $ row {
You can’t perform that action at this time.
0 commit comments