Merge upstream improvements to build/preview script
The upstream template repo made minor changes to the build and preview
scripts for generating a local documentation site preview. This just
pulls in the latest upstream versions.
Signed-off-by: Justin W. Flory (he/him) <git@jwf.io>