diff --git a/_pages/time-table.html b/_pages/time-table.html index 85afbd4..23c2e82 100644 --- a/_pages/time-table.html +++ b/_pages/time-table.html @@ -119,31 +119,4 @@

- - diff --git a/_tests/custom_checks.rb b/_tests/custom_checks.rb index ff381ef..1fd7082 100644 --- a/_tests/custom_checks.rb +++ b/_tests/custom_checks.rb @@ -3,6 +3,7 @@ require 'json' require 'yaml' +require 'time' class CustomChecks < ::HTMLProofer::Check BASE_PATH = '_site' @@ -10,7 +11,9 @@ class CustomChecks < ::HTMLProofer::Check def run filename = @runner.current_filename puts "\tchecking ... " + filename.delete_prefix('_site') + check_directory_structure(filename) if filename.end_with?('.html') + check_time_table_overlaps if filename.end_with?('time-table/index.html') end # Check directory structure to ensure all pages are generated as index.html @@ -45,4 +48,48 @@ def is_redirect_file?(filename) content.include?(" e + add_failure("タイムテーブル検証エラー: #{e.message}") + end end