@@ -553,12 +553,12 @@ function processSource {
553
553
554
554
if [[ $BUILD_TYPE == " default" ]]; then
555
555
# Singlepage HTML
556
- generateBacklinks " html" " $HTML_OUTPUT " ;
556
+ mv " $HTML_TEMP /wattsi-output/index- html" " $HTML_OUTPUT /index.html "
557
557
558
558
# Singlepage Commit Snapshot
559
559
COMMIT_DIR=" $HTML_OUTPUT /commit-snapshots/$HTML_SHA "
560
560
mkdir -p " $COMMIT_DIR "
561
- generateBacklinks " snap" " $COMMIT_DIR " ;
561
+ mv " $HTML_TEMP /wattsi-output/index- snap" " $COMMIT_DIR /index.html "
562
562
563
563
cp -p entities/out/entities.json " $HTML_OUTPUT "
564
564
cp -p " $HTML_TEMP /wattsi-output/xrefs.json" " $HTML_OUTPUT "
@@ -584,7 +584,7 @@ Disallow: /review-drafts/" > "$HTML_OUTPUT/robots.txt"
584
584
YEARMONTH=$( basename " $SOURCE_LOCATION " .wattsi)
585
585
NEWDIR=" $HTML_OUTPUT /review-drafts/$YEARMONTH "
586
586
mkdir -p " $NEWDIR "
587
- generateBacklinks " review" " $NEWDIR " ;
587
+ mv " $HTML_TEMP /wattsi-output/index- review" " $NEWDIR /index.html "
588
588
fi
589
589
}
590
590
@@ -678,16 +678,6 @@ function runWattsi {
678
678
fi
679
679
}
680
680
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
-
691
681
# Starts the syntax-highlighting Python server, when appropriate
692
682
# Arguments: none
693
683
# Output: if the server is necessary, then
0 commit comments