Skip to content

Commit f189ac4

Browse files
committed
Make origin links point to #infix_*, fix search
1 parent e76fa11 commit f189ac4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

htmlify.pl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -444,17 +444,17 @@ (Bool :$debug, Bool :$typegraph = False)
444444
$s.trans([</ \\ ">] => [<\\/ \\\\ \\">]);
445445
}
446446
@items.push: $dr.lookup('language', :by<kind>).sort(*.name).map({
447-
qc[\{ label: "Language: {.name}", value: "{.name}", url: "{ fix-url(.url) }" \}]
447+
qq[\{ label: "Language: {.name}", value: "{.name}", url: "{ fix-url(.url) }" \}]
448448
});
449449
@items.push: $dr.lookup('type', :by<kind>).sort(*.name).map({
450-
qc[\{ label: "Type: {.name}", value: "{.name}", url: "{ fix-url(.url) }" \}]
450+
qq[\{ label: "Type: {.name}", value: "{.name}", url: "{ fix-url(.url) }" \}]
451451
});
452452
my %seen;
453453
@items.push: $dr.lookup('routine', :by<kind>).grep({!%seen{.name}++}).sort(*.name).map({
454-
qc[\{ label: "{ (.subkind // 'Routine').tclc }: {escape .name}", value: "{escape .name}", url: "{ fix-url(.url) }" \}]
454+
qq[\{ label: "{ (.subkind // 'Routine').tclc }: {escape .name}", value: "{escape .name}", url: "{ fix-url(.url) }" \}]
455455
});
456456
@items.push: $dr.lookup('operator', :by<kind>).map({
457-
qc[\{ label: "$_.human-kind() {escape .name}", value: "{escape .name}", url: "{ fix-url .url }"\}]
457+
qq[\{ label: "$_.human-kind() {escape .name}", value: "{escape .name}", url: "{ fix-url .url }"\}]
458458
});
459459

460460
my $items = @items.join(",\n");
@@ -609,8 +609,8 @@ (Bool :$debug, Bool :$typegraph = False)
609609
pod-block("Documentation for $subkind $name, assembled from the
610610
following types:"),
611611
@docs.map({
612-
pod-heading(.origin.name ~ '.' ~ .name),
613-
pod-block("From ", pod-link(.origin.name, .origin.url ~ '#' ~ .name)),
612+
pod-heading(.origin.name ~ '.' ~ .name), # TODO: better way to get link to origin
613+
pod-block("From ", pod-link(.origin.name, .origin.url ~ '#' ~ (.subkind ~~ /fix/ ?? .subkind~'_' !! '') ~ .name)),
614614
.pod.list,
615615
})
616616
);

0 commit comments

Comments
 (0)