perladvent / perldotcom

The source code for Perl.com website
https://www.perl.com
79 stars 80 forks source link

Convert and normalize search.cpan.org links #77

Closed briandfoy closed 6 years ago

briandfoy commented 6 years ago

CPAN Search is going away: https://log.perl.org/2018/05/goodbye-search-dot-cpan-dot-org.html

We need to find and convert all the search.cpan.org links.

briandfoy commented 6 years ago
matthewpersico commented 6 years ago

Is that the list of links to conver or links converted? If the former how does one “grab” a few links to convert? I’d hate to submit a PR that duplicates someone else’s work.

briandfoy commented 6 years ago

The unchecked boxes are the articles with problems. If they still have search.cpan.org links they need to be fixed. You can also look in the open pull requests to see if something was already done.

briandfoy commented 6 years ago

Some things I find useful:

grep "search.cpan.org" *.md | perl -nle '@l = m|(https?://.+?)\)|gi; print join "\n", @l' | grep search
perl -pi -e 's|https?://search.cpan.org/search\?([^)]+)|https://metacpan.org/search?q=$1|ig' *.md
briandfoy commented 6 years ago

I've fixed the rest of these, and the ones that aren't fixed need special attention because the references aren't links to CPAN Search.