@@ -207,15 +207,9 @@ sub process-pod-dir($dir, :&sorted-by = &[cmp]) {
207
207
my $ total = + @ pod-sources ;
208
208
my $ kind = $ dir . lc ;
209
209
for @ pod-sources . kv -> $ num , (: key($ filename ), : value($ file )) {
210
- try {
211
- printf " % 4d/% d : % -40s => % s\n " , $ num + 1, $ total , $ file . path , " $ kind /$ filename" ;
212
- my $ pod = extract-pod($ file . path );
213
- process-pod-source : $ kind , : $ pod , : $ filename , : pod-is-complete;
214
- CATCH {
215
- note " Error Processing: $ filename" ;
216
- . resume;
217
- }
218
- }
210
+ printf " % 4d/% d : % -40s => % s\n " , $ num + 1, $ total , $ file . path , " $ kind /$ filename" ;
211
+ my $ pod = extract-pod($ file . path );
212
+ process-pod-source : $ kind , : $ pod , : $ filename , : pod-is-complete;
219
213
}
220
214
}
221
215
@@ -565,7 +559,7 @@ sub find-definitions(:$pod, :$origin, :$min-level = -1, :$url) {
565
559
566
560
my $ new-head = Pod ::Heading. new (
567
561
: level(@ pod-section [$ i ]. level),
568
- : contents[pod-link " ($ origin. name () ) $ subkinds $ name" ,
562
+ : contents[pod-link " ($ origin. name () ) $ subkinds { $ name . gist } " ,
569
563
$ created . url ~ " #$ origin. human-kind () $ origin. name ()" . subst (: g, /\s + /, ' _' )
570
564
]
571
565
);
@@ -674,7 +668,7 @@ sub write-search-file() {
674
668
$ s . trans ([</ \\ " >] => [<\\ / \\\\ \\ " > ]);
675
669
}
676
670
my @ items = $ * DR . get-kinds. map (-> $ kind {
677
- $ * DR . lookup($ kind , : by<kind >). categorize ({escape . name })\
671
+ $ * DR . lookup($ kind , : by<kind >). categorize ({escape . name . gist })\
678
672
. pairs . sort ({. key }). map : -> (: key($ name ), : value(@ docs )) {
679
673
qq [[ \{ category: "{
680
674
( @ docs > 1 ?? $ kind !! @ docs . [0 ]. subkinds[0 ] ). wordcase
@@ -868,7 +862,7 @@ sub write-kind($kind) {
868
862
}
869
863
. pod[0 ]. contents[0 ]. contents. Str . split (' ' )[1 ] ~ ' _' ;
870
864
}
871
- ) ~ . name . subst (' ' , ' _' )),
865
+ ) ~ . name . gist . subst (' ' , ' _' )),
872
866
),
873
867
. pod. list,
874
868
})
0 commit comments