-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
21 lines (14 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all: help
linkcheck-local: ## build the site locally and test links
docker run --rm -it --network="host" -u $(id -u):$(id -g) linkchecker/linkchecker --check-extern http://host.docker.internal:8000
linkcheck-staging: ## Test links on the production site
docker run --rm -it -u $(id -u):$(id -g) linkchecker/linkchecker --check-extern https://team-admin-staging.netlify.app
linkcheck-prod: ## Test links on the production site
docker run --rm -it -u $(id -u):$(id -g) linkchecker/linkchecker --check-extern https://team-admin.rstudio.com
build: ## build the site
docker run --rm -p 8000:8000 -v ${PWD}:/workspace sellorm/mkdocs build
serve: ## Serve the site for local development
docker run --rm -p 8000:8000 -v ${PWD}:/workspace sellorm/mkdocs serve -a 0.0.0.0:8000
help: ## Show this help menu
@grep -E '^[0-9a-zA-Z_-]+:.*?##.*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?##"; OFS="\t\t"}; {printf "\033[36m%-30s\033[0m %s\n", $$1, ($$2==""?"":$$2)}'
.PHONY: all linkcheck-local linkcheck-prod linkcheck-staging build serve help