Skip to content

Commit 4213bf6

Browse files
authored
Revert #4076 (#4079)
This reverts commit e4469d7. There was an unforeseen issue affecting the GH Pages deploy script, which I will need to dig into and test separately. Reverting first so we can get those deploys working for now. Sorry for the noise!
1 parent e679a18 commit 4213bf6

File tree

6 files changed

+42
-86
lines changed

6 files changed

+42
-86
lines changed

.eleventyignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
*.md
1+
*.*
22
11ty/
3-
acknowledgements.html
43
acknowledgements/
54
conformance-challenges/
65
guidelines/

11ty/CustomLiquid.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ export class CustomLiquid extends Liquid {
8989
const isIndex = indexPattern.test(filepath);
9090
const isTechniques = techniquesPattern.test(filepath);
9191
const isUnderstanding = understandingPattern.test(filepath);
92-
93-
if (!isTechniques && !isUnderstanding) return super.parse(html);
9492

9593
const $ = flattenDom(html, filepath);
9694

eleventy.config.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import compact from "lodash-es/compact";
2-
import { rimraf } from "rimraf";
32

43
import { copyFile } from "fs/promises";
54

@@ -125,7 +124,6 @@ export default function (eleventyConfig: any) {
125124
eleventyConfig.addGlobalData("eleventyComputed", {
126125
// permalink determines output structure; see https://www.11ty.dev/docs/permalinks/
127126
permalink: ({ page, isUnderstanding }: GlobalData) => {
128-
if (page.inputPath === "./index.html" && process.env.WCAG_MODE) return false;
129127
if (isUnderstanding) {
130128
// understanding-metadata.html exists in 2 places; top-level wins in XSLT process
131129
if (/\/20\/understanding-metadata/.test(page.inputPath)) return false;
@@ -175,12 +173,6 @@ export default function (eleventyConfig: any) {
175173

176174
eleventyConfig.addPassthroughCopy("working-examples/**");
177175

178-
eleventyConfig.on("eleventy.before", async ({ runMode }: EleventyEvent) => {
179-
// Clear the _site folder before publishes to GH Pages or W3C site,
180-
// to avoid inheriting dev-only files from previous runs
181-
if (runMode === "build" && process.env.WCAG_MODE) await rimraf("_site");
182-
});
183-
184176
eleventyConfig.on("eleventy.after", async ({ dir }: EleventyEvent) => {
185177
// addPassthroughCopy can only map each file once,
186178
// but base.css needs to be copied to a 2nd destination

index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

package-lock.json

Lines changed: 41 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"liquidjs": "^10.14.0",
2222
"lodash-es": "^4.17.21",
2323
"mkdirp": "^3.0.1",
24-
"rimraf": "^5.0.10",
2524
"tsx": "^4.11.0"
2625
},
2726
"devDependencies": {

0 commit comments

Comments
 (0)