From cb670f0b02228dbec412f35e6221e564d88f1853 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 6 Apr 2020 16:17:18 +0200 Subject: [PATCH] Improve Commit Snapshot setup Buids upon https://github.com/tabatkins/bikeshed/pull/1635. Remaining work tracked by https://github.com/whatwg/spec-factory/pull/5. Closes https://github.com/whatwg/meta/issues/88. Closes #309. Co-authored-by: Domenic Denicola --- resources.whatwg.org/build/deploy.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/resources.whatwg.org/build/deploy.sh b/resources.whatwg.org/build/deploy.sh index 343a488dd..372d488c5 100644 --- a/resources.whatwg.org/build/deploy.sh +++ b/resources.whatwg.org/build/deploy.sh @@ -10,8 +10,6 @@ SHORTNAME=$(git config --local remote.origin.url | sed -n 's#.*/\([^.]*\)\.git#\ INPUT_FILE=$(find . -maxdepth 1 -name "*.bs" -print -quit) H1=$(grep < "$INPUT_FILE" "^H1: .*$" | sed -e "s/H1: //") -LS_URL="https://$SHORTNAME.spec.whatwg.org/" -COMMIT_URL_BASE="https://github.com/whatwg/$SHORTNAME/commit/" WEB_ROOT="$SHORTNAME.spec.whatwg.org" COMMITS_DIR="commit-snapshots" REVIEW_DRAFTS_DIR="review-drafts" @@ -36,9 +34,6 @@ echo "" echo "Running deploy for commit: $SHA" echo "" -BACK_TO_LS_LINK="Go to the living standard" -SNAPSHOT_LINK="Snapshot as of this commit" - rm -rf "$WEB_ROOT" || exit 0 copy_extra_files() { @@ -105,9 +100,7 @@ COMMIT_DIR="$WEB_ROOT/$COMMITS_DIR/$SHA" mkdir -p "$COMMIT_DIR" curlbikeshed "$COMMIT_DIR/index.html" \ -F md-status=LS-COMMIT \ - -F md-warning="Commit $SHA $COMMIT_URL_BASE$SHA replaced by $LS_URL" \ - -F md-title="$H1 Standard (Commit Snapshot $SHA)" \ - -F md-Text-Macro="SNAPSHOT-LINK $BACK_TO_LS_LINK" + -F md-Text-Macro="COMMIT-SHA $SHA" copy_extra_files "$COMMIT_DIR" run_post_build_step "$COMMIT_DIR" echo "Commit snapshot output to $COMMIT_DIR" @@ -115,7 +108,7 @@ echo "" header "Starting living standard..." curlbikeshed "$WEB_ROOT/index.html" \ - -F md-Text-Macro="SNAPSHOT-LINK $SNAPSHOT_LINK" + -F md-Text-Macro="COMMIT-SHA $SHA" copy_extra_files "$WEB_ROOT" run_post_build_step "$WEB_ROOT" echo "Living standard output to $WEB_ROOT"