Skip to content

Commit

Permalink
Make origin links point to #infix_*, fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouq committed Mar 3, 2014
1 parent e76fa11 commit f189ac4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions htmlify.pl
Original file line number Diff line number Diff line change
Expand Up @@ -444,17 +444,17 @@ (Bool :$debug, Bool :$typegraph = False)
$s.trans([</ \\ ">] => [<\\/ \\\\ \\">]);
}
@items.push: $dr.lookup('language', :by<kind>).sort(*.name).map({
qc[\{ label: "Language: {.name}", value: "{.name}", url: "{ fix-url(.url) }" \}]
qq[\{ label: "Language: {.name}", value: "{.name}", url: "{ fix-url(.url) }" \}]
});
@items.push: $dr.lookup('type', :by<kind>).sort(*.name).map({
qc[\{ label: "Type: {.name}", value: "{.name}", url: "{ fix-url(.url) }" \}]
qq[\{ label: "Type: {.name}", value: "{.name}", url: "{ fix-url(.url) }" \}]
});
my %seen;
@items.push: $dr.lookup('routine', :by<kind>).grep({!%seen{.name}++}).sort(*.name).map({
qc[\{ label: "{ (.subkind // 'Routine').tclc }: {escape .name}", value: "{escape .name}", url: "{ fix-url(.url) }" \}]
qq[\{ label: "{ (.subkind // 'Routine').tclc }: {escape .name}", value: "{escape .name}", url: "{ fix-url(.url) }" \}]
});
@items.push: $dr.lookup('operator', :by<kind>).map({
qc[\{ label: "$_.human-kind() {escape .name}", value: "{escape .name}", url: "{ fix-url .url }"\}]
qq[\{ label: "$_.human-kind() {escape .name}", value: "{escape .name}", url: "{ fix-url .url }"\}]
});

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

0 comments on commit f189ac4

Please sign in to comment.