Kaynağa Gözat

Clear dist dir before building docs bundle

Christopher Mullins 6 yıl önce
ebeveyn
işleme
7761c1b57f
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      .prepare_docs

+ 2 - 0
.prepare_docs

@@ -31,6 +31,8 @@ DIST_DIR="./dist/docs"
 BRANCHES_DIR="${DIST_DIR}/branches"
 API_SPEC_FILE="${DOCS_DIR}/openapi.yaml"
 
+rm -rf "${DIST_DIR}"
+
 redoc_bundle_file=$(mktemp)
 git_ref_version=$(git describe --always)
 branch_docs_dir="${BRANCHES_DIR}/${git_ref_version}"