Skip to content

Commit be63f9a

Browse files
Stop generating caniuse boxes
Depends on whatwg/wattsi#124 Fixes #213
1 parent a31e95a commit be63f9a

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

build.sh

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -484,30 +484,20 @@ function clearCacheIfNecessary {
484484
fi
485485
}
486486

487-
# Updates the caniuse.json and mdn-spec-links-html.json files, if either
488-
# $DO_UPDATE is true or they are not yet cached.
487+
# Updates the mdn-spec-links-html.json file, if either $DO_UPDATE is true
488+
# or it is not yet cached.
489489
# Arguments: none
490490
# Output:
491-
# - $HTML_CACHE will contain a usable caniuse.json file
491+
# - $HTML_CACHE will contain a usable mdn-spec-links-html.json file
492492
function updateRemoteDataFiles {
493493
CURL_ARGS=( --retry 2 )
494494
if ! $VERBOSE; then
495495
CURL_ARGS+=( --silent )
496496
fi
497497

498-
CURL_CANIUSE_ARGS=( "${CURL_ARGS[@]}" \
499-
--output "$HTML_CACHE/caniuse.json" -k )
500498
CURL_MDN_SPEC_LINKS_ARGS=( "${CURL_ARGS[@]}" \
501499
--output "$HTML_CACHE/mdn-spec-links-html.json" -k )
502500

503-
504-
if [[ $DO_UPDATE == "true" || ! -f "$HTML_CACHE/caniuse.json" ]]; then
505-
rm -f "$HTML_CACHE/caniuse.json"
506-
$QUIET || echo "Downloading caniuse data..."
507-
curl "${CURL_CANIUSE_ARGS[@]}" \
508-
https://raw.githubusercontent.com/Fyrd/caniuse/master/data.json
509-
fi
510-
511501
if [[ $DO_UPDATE == "true" \
512502
|| ! -f "$HTML_CACHE/mdn-spec-links-html.json" ]]; then
513503
rm -f "$HTML_CACHE/mdn-spec-links-html.json"
@@ -645,7 +635,6 @@ function runWattsi {
645635
WATTSI_ARGS+=( --single-page-only )
646636
fi
647637
WATTSI_ARGS+=( "$1" "$HTML_SHA" "$2" "$BUILD_TYPE" \
648-
"$HTML_CACHE/caniuse.json" \
649638
"$HTML_CACHE/mdn-spec-links-html.json" )
650639
if [[ "$DO_HIGHLIGHT" == "true" ]]; then
651640
WATTSI_ARGS+=( "$HIGHLIGHT_SERVER_URL" )
@@ -670,7 +659,6 @@ function runWattsi {
670659
--form "source=@$1" \
671660
--form "sha=$HTML_SHA" \
672661
--form "build=$BUILD_TYPE" \
673-
--form "caniuse=@$HTML_CACHE/caniuse.json" \
674662
--form "mdn=@$HTML_CACHE/mdn-spec-links-html.json" \
675663
--dump-header "$HTML_TEMP/wattsi-headers.txt" \
676664
--output "$HTML_TEMP/wattsi-output.zip" )

0 commit comments

Comments
 (0)