Skip to content

Commit

Permalink
reject en
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 21, 2024
1 parent 48ca515 commit 8e57794
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ end
def all_html
Dir['_site/**/*.html']
.reject { |f| f.end_with?('.amp.html') }
.reject { |f| f.start_with?('_site/en/') }
.reject { |f| f.start_with?('_site/zh/') }
.reject { |f| f.start_with?('_site/ru/') }
end
Expand Down Expand Up @@ -368,9 +369,6 @@ task orphans: [:build] do
.reject { |a| a.end_with? '.amp.html' }
.reject { |a| a.include? '2009/03/04/pdd' }
.reject { |a| a.include? '2017/05/02/unl' }
.reject { |a| a.start_with? "#{prefix}en/" }
.reject { |a| a.start_with? "#{prefix}ru/" }
.reject { |a| a.start_with? "#{prefix}zh/" }
.group_by(&:itself)
.each { |k, v| counts[k] = v.length }
orphans = 0
Expand Down

0 comments on commit 8e57794

Please sign in to comment.