Skip to content

Commit

Permalink
Fix broken doc search links, timestamp v0.23.3
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Feb 6, 2024
1 parent 2d94e6c commit e13a1f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Revision history for Perl extension PGXN::Site

0.23.3
0.23.3 2024-02-06T20:20:13Z
- Fixed 404 "Not Found" errors for documentation with uppercase characters
in the file name, such as `/dist/vectorize/vector-serve/README.html`,
and fixes another letter casing issue for links to between stable,
testing, and unstable states on the distribution page.

0.23.2 2024-02-05T21:28:11Z
- Restored the limit on the list of recent release on the home page to five.
Expand Down
6 changes: 3 additions & 3 deletions lib/PGXN/Site/Templates.pm
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ template distribution => sub {
my $datetime = $dist->date_for(lc $status);
(my $date = $datetime) =~ s{T.+}{};
a {
href is '/dist/' . $dist->name . lc "/$stat_version/";
href is '/dist/' . lc $dist->name . "/$stat_version/";
outs $dist->name . " $stat_version";
outs_raw qq{<time datetime="$datetime">$date</time>};
}
Expand All @@ -393,7 +393,7 @@ template distribution => sub {
for my $rel (@rels) {
# Include release status in the option name?
option {
value is '/dist/' . lc $dist->name . lc "/$rel->{version}/";
value is '/dist/' . lc $dist->name . "/$rel->{version}/";
selected is 'selected' if $rel->{version} eq $version;
(my $date = $rel->{date}) =~ s{T.+}{};
"$rel->{version} — $date";
Expand Down Expand Up @@ -989,7 +989,7 @@ sub _detailed_results {
h2 {
if ($hit->{docpath}) {
a {
href is '/dist/' . lc $hit->{dist} . "/$hit->{docpath}.html";
href is "/dist/\L$hit->{dist}\E/$hit->{docpath}.html";
$hit->{$label}
};
} else {
Expand Down

0 comments on commit e13a1f9

Please sign in to comment.