diff --git a/Makefile b/Makefile index 4f879211ca..ca2e211051 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,12 @@ clean-versions: ## Clean Docusarus content versions rm -rf api_versions.json versions.json versioned_docs versioned_sidebars api_versioned_sidebars api_versioned_docs git checkout -- docusaurus.config.js static/robots.txt +clean-api: ## Clean API docs + @echo "cleaning api docs" + npm run clean-api-docs + # Remove the sidebar file as it's not removed by the clean-api command + rm -f docs/api-content/api-docs/v1/sidebar.ts + clean-visuals: @echo "Cleaning visual regression tests" diff --git a/scripts/versions.sh b/scripts/versions.sh index 103bbc8175..275d8e3fcc 100755 --- a/scripts/versions.sh +++ b/scripts/versions.sh @@ -150,7 +150,7 @@ for item in $(git branch --format '%(refname:short)'); do rm api_versions.json # Remove API auto-generated files - npm run clean-api-docs + make clean-api # Switch back to the original branch git checkout $current_branch