From 724cf0942388a91d29966a138f6e269b792fd709 Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 15 Jan 2018 15:58:31 -0800 Subject: [PATCH] remove docs folder before copying --- build/build-docs.js | 1 + 1 file changed, 1 insertion(+) diff --git a/build/build-docs.js b/build/build-docs.js index ea95a50..7c3cc28 100644 --- a/build/build-docs.js +++ b/build/build-docs.js @@ -3,6 +3,7 @@ const shell = require('shelljs'); shell.exec('gitbook build', (code, stdout, stderr) => { if( code === 0 ) { + shell.rm('-rf', 'site/docs'); shell.exec('mv _book site/docs') } }); \ No newline at end of file