Skip to content

Commit

Permalink
Search distributions by default
Browse files Browse the repository at this point in the history
Instead of documentation, because few releases include documentation
other than a README, which pgxn-api indexes in the distributions index
and not the documentation index.

So make distribution search the default to improve the default search
experience.
  • Loading branch information
theory committed Feb 2, 2024
1 parent c44a634 commit c4b27ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ Revision history for Perl extension PGXN::Site

0.22.3
- Updated the donor links, removing or replacing dead URLs.
- Changed the default search index from "Documentation" to "Distributions".
Few releases include documentation other than a README, which pgxn-api
indexes in the distributions index and not the documentation index. So
make distribution search the default to improve the default search
experience.

0.22.2 2023-02-18T23:25:58Z
- Replaced Twitter link with Mastodon and added a rel link to Mastodon
Expand Down
2 changes: 1 addition & 1 deletion lib/PGXN/Site/Templates.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1383,9 +1383,9 @@ template search_form => sub {
name is 'in';
my $in = $args->{in};
for my $spec (
[ dists => 'Distributions' ],
[ docs => 'Documentation' ],
[ extensions => 'Extensions' ],
[ dists => 'Distributions' ],
[ users => 'Users' ],
[ tags => 'Tags' ]
) {
Expand Down
2 changes: 1 addition & 1 deletion t/templates.t
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ sub test_search_form {

my $i = 0;
for my $spec (
[ dists => 'Distributions' ],
[ docs => 'Documentation' ],
[ extensions => 'Extensions' ],
[ dists => 'Distributions' ],
[ users => 'Users' ],
[ tags => 'Tags' ],
) {
Expand Down

0 comments on commit c4b27ff

Please sign in to comment.