Skip to content

Commit 18bdae0

Browse files
authored
Remove Perl post-process backlink generator
It is fragile and doesn't work on the multipage spec. Instead, we will just have the links in the source document (see whatwg/html#5610). Closes #87.
1 parent d476917 commit 18bdae0

File tree

2 files changed

+3
-65
lines changed

2 files changed

+3
-65
lines changed

.post-process-partial-backlink-generator.pl

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

build.sh

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -553,12 +553,12 @@ function processSource {
553553

554554
if [[ $BUILD_TYPE == "default" ]]; then
555555
# Singlepage HTML
556-
generateBacklinks "html" "$HTML_OUTPUT";
556+
mv "$HTML_TEMP/wattsi-output/index-html" "$HTML_OUTPUT/index.html"
557557

558558
# Singlepage Commit Snapshot
559559
COMMIT_DIR="$HTML_OUTPUT/commit-snapshots/$HTML_SHA"
560560
mkdir -p "$COMMIT_DIR"
561-
generateBacklinks "snap" "$COMMIT_DIR";
561+
mv "$HTML_TEMP/wattsi-output/index-snap" "$COMMIT_DIR/index.html"
562562

563563
cp -p entities/out/entities.json "$HTML_OUTPUT"
564564
cp -p "$HTML_TEMP/wattsi-output/xrefs.json" "$HTML_OUTPUT"
@@ -584,7 +584,7 @@ Disallow: /review-drafts/" > "$HTML_OUTPUT/robots.txt"
584584
YEARMONTH=$(basename "$SOURCE_LOCATION" .wattsi)
585585
NEWDIR="$HTML_OUTPUT/review-drafts/$YEARMONTH"
586586
mkdir -p "$NEWDIR"
587-
generateBacklinks "review" "$NEWDIR";
587+
mv "$HTML_TEMP/wattsi-output/index-review" "$NEWDIR/index.html"
588588
fi
589589
}
590590

@@ -678,16 +678,6 @@ function runWattsi {
678678
fi
679679
}
680680

681-
# Runs backlink generation post-processing on the output of Wattsi
682-
# Arguments:
683-
# - $1: the spec variant (e.g. "snap" or "html") to run on
684-
# - $2: The destination directory for the output file
685-
# Output:
686-
# - $2 will contain an index.html file derived from the given variant, with post-processing applied
687-
function generateBacklinks {
688-
perl .post-process-partial-backlink-generator.pl "$HTML_TEMP/wattsi-output/index-$1" > "$2/index.html";
689-
}
690-
691681
# Starts the syntax-highlighting Python server, when appropriate
692682
# Arguments: none
693683
# Output: if the server is necessary, then

0 commit comments

Comments
 (0)