Skip to content

Commit

Permalink
ci: fix Production Build Issue (#2594)
Browse files Browse the repository at this point in the history
* chore: fix api error

* save

* chore: updated Makefile

* chore: fixed the versions command and Makefile
  • Loading branch information
karl-cardenas-coding committed Apr 5, 2024
1 parent e06f436 commit be8d5cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion scripts/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be8d5cc

Please sign in to comment.