Skip to content
Myr

Script to update gh-pages from master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent b23d078 · Browse files · 1 file+27 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+27 added−0 removed

  • other:+27 added−0 removed

1 file+27 added−0 removed

added:scripts/update-website+27 added
1#!/bin/sh23# This script builds the website from the docs directory of4# the current branch and copies it over to the gh-pages5# branch.67set -eu8set -o xtrace910# build website11scriptdir=`dirname "$0"`12cd "$scriptdir"/../docs13rm -rf output14rake build15cd ..1617# copy to /tmp18tmpdir=$(mktemp -d -t jq.website.XXXXXXXXXX)19cp -r docs/output/* "$tmpdir"2021# copy to gh-pages22git checkout gh-pages23cp -r "$tmpdir"/* .2425# clean up26rm -rf "$tmpdir"27echo SUCCESS