Skip to content

Commit 84fbf79

Browse files
committed
Tweak output to make it more stable
1 parent 9d29ac6 commit 84fbf79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/md2html/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ for specification in $specifications; do
5858

5959
node scripts/md2html/md2html.js --maintainers $maintainers $specification "$allVersions" > $tempfile
6060
npx respec --no-sandbox --use-local --src $tempfile --out $tempfile2
61-
# remove unwanted Google Tag Manager and Google Analytics scripts
61+
# remove unwanted Google Tag Manager and Google Analytics scripts, non-deterministic changes, and ReSpec minor version
6262
sed -e 's/<script type="text\/javascript" async="" src="https:\/\/www.google-analytics.com\/analytics.js"><\/script>//' \
6363
-e 's/<script type="text\/javascript" async="" src="https:\/\/www.googletagmanager.com\/gtag\/js?id=G-[^"]*"><\/script>//' \
64+
-e 's/ toc-inline//' -e 's/ darkmode//' \
65+
-e 's/"ReSpec \([0-9]*\)[.0-9]*"/"ReSpec \1"/' \
6466
$tempfile2 > $destination
6567

6668
echo === Built $destination

0 commit comments

Comments
 (0)