From fea2363a2e3021cfa76301958f30d19679abbe09 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Mon, 12 Nov 2018 19:51:57 -0600
Subject: [PATCH] Clear old _site contents on regeneration

---
 buildroot/share/git/mfpub | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/buildroot/share/git/mfpub b/buildroot/share/git/mfpub
index 6885216a0bb..200602506c8 100755
--- a/buildroot/share/git/mfpub
+++ b/buildroot/share/git/mfpub
@@ -97,6 +97,8 @@ fi
 echo
 echo "Generating MarlinDocumentation..."
 
+rm -rf _site
+
 # build the site statically and proof it
 bundle exec jekyll build --profile --trace --no-watch
 bundle exec htmlproofer ./_site --only-4xx --allow-hash-href --check-favicon --check-html --url-swap ".*marlinfw.org/:/"