diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index e7e993e92..c570c5459 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -10,7 +10,7 @@ on: - "content/**/examples/**" - "scripts/reference-tables.*" - "scripts/coverage-report.*" - - "coverage/**" + - "content/about/coverage-and-quality/**" pull_request: paths: - "package*.json" @@ -18,7 +18,7 @@ on: - "content/**/examples/**" - "scripts/reference-tables.*" - "scripts/coverage-report.*" - - "coverage/**" + - "content/about/coverage-and-quality/**" jobs: examples: diff --git a/content/about/coverage-and-quality/coverage-and-quality-report.html b/content/about/coverage-and-quality/coverage-and-quality-report.html index d64352d9a..f1b521862 100644 --- a/content/about/coverage-and-quality/coverage-and-quality-report.html +++ b/content/about/coverage-and-quality/coverage-and-quality-report.html @@ -17,7 +17,7 @@

Coverage and Quality Reports

-

Page last updated: February 13, 2024

+

Page last updated:

About These Reports

diff --git a/package.json b/package.json index de39f188d..3d38024fa 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "npm run reference-tables", "git add content/index/index.html", "npm run coverage-report", - "git add coverage/" + "git add content/about/coverage-and-quality/" ] }, "ava": { diff --git a/scripts/coverage-report.js b/scripts/coverage-report.js index c11b240c5..2244b571d 100644 --- a/scripts/coverage-report.js +++ b/scripts/coverage-report.js @@ -1138,26 +1138,12 @@ $('#example_summary_prototype').html(countPrototype); $('#example_summary_mouse').html(countMouse); $('#example_summary_pointer').html(countPointer); -// Create a new Date object -var currentDate = new Date(); - -// Format the date as a string -const formattedDate = currentDate.toLocaleDateString('en-US', { - day: 'numeric', - month: 'long', - year: 'numeric', -}); - // cheerio seems to fold the doctype lines despite the template const result = $.html() .replace('', '\n') .replace( '', '\n' - ) - .replace( - '

Page last updated:

', - `

Page last updated: ${formattedDate}

` ); fs.writeFile(coverageReportPath, result, function (err) { diff --git a/scripts/coverage-report.template b/scripts/coverage-report.template index c4529e6ed..b57db9b3d 100644 --- a/scripts/coverage-report.template +++ b/scripts/coverage-report.template @@ -18,7 +18,7 @@

Coverage and Quality Reports

-

Page last updated:

+

Page last updated:

About These Reports