Skip to content

Commit

Permalink
Makefile: implement make serve
Browse files Browse the repository at this point in the history
this is needed to test redirects
  • Loading branch information
schuellerf authored and ochosi committed Nov 22, 2024
1 parent 51e80d3 commit cf1e1d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ build-website: ## build the website (dependencies need to be met)
build: install-dependencies build-website ## build the website in one go

.PHONY: run
run: ## run docusaurus locally for testing
run: ## run docusaurus locally with auto-updates from the code (redirects don't work here)
npm start

.PHONY: serve
serve: build ## serve the pre-built docusaurus locally (redirects only work here, not with `make run`)
npm run serve

.PHONY: protect-readmes
protect-readmes: ## verify the READMEs don't get changed in a pull request (to be used in the workflow)
python3 scripts/protect_readmes.py readme-list
Expand Down

0 comments on commit cf1e1d5

Please sign in to comment.