Skip to content

Commit

Permalink
This PR cleans up a plugin
Browse files Browse the repository at this point in the history
- The plugin is not activated on doc-website, but it is usful and could be activated at some time.
- The patch makes it work
- It removes a redundant file
  • Loading branch information
finanalyst committed Apr 28, 2024
1 parent 98f36e7 commit 643cc15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Website/plugins/link-error-test/config.raku
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
:run-tests,
:render,
:template-raku<let-templates.raku>,
:version<0.3.17>,
:version<0.3.18>,
)
5 changes: 4 additions & 1 deletion Website/plugins/link-error-test/let-callable.raku
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ sub ($pr, %processed, %options) {
my %targets;
#| possible filenames that map to a real html file
my %aliases;
#| page names generated after LET plugin is called
my @structure-files;

sub failed-targets($file, Str $target) {
my $old = $target.trim;
Expand Down Expand Up @@ -90,8 +92,9 @@ sub ($pr, %processed, %options) {
$resp
}
%aliases = %config<aliases>.kv.map({ '/' ~ $^a => '/' ~ $^b });
@structure-files = %config<structure-files>.map( '/' ~ * );
#| SetHash of files in collection
my SetHash $files .= new( %aliases.keys );
my SetHash $files .= new( %aliases.keys.Slip, @structure-files.Slip );
#| SetHash of files found missing
my SetHash $missing .= new;
my @remote-links;
Expand Down
20 changes: 0 additions & 20 deletions Website/plugins/link-error-test/let_response_check.js

This file was deleted.

0 comments on commit 643cc15

Please sign in to comment.