Couple fixes.

- Add a "make clean" target that deletes various directories produced when locally building
the site.

- Clean the tree before "make lint". This removes any stale files from the public directory,
which is important since those can lead to spurious lint errors.

- Stop passing the no-longer-existing -minify argument to gen_site.sh.
This commit is contained in:
mtail 2019-04-29 14:40:53 -07:00
parent 8cbefd3417
commit f5cfde45a8
2 changed files with 8 additions and 5 deletions

View File

@ -15,7 +15,7 @@ jobs:
- run:
name: Generating Site
command: scripts/gen_site.sh "" -no_minify -no_aliases
command: scripts/gen_site.sh "" -no_minify
- run:
name: Running Linters

View File

@ -16,19 +16,22 @@ build:
@$(docker) scripts/build_site.sh
gen: build
@$(docker) scripts/gen_site.sh "" -minify
@$(docker) scripts/gen_site.sh ""
opt:
@$(docker) scripts/opt_site.sh
lint: build gen
clean:
@rm -fr public resources .htmlproofer tmp
lint: clean build gen
@$(docker) scripts/lint_site.sh
serve: build
@docker run -t -i --sig-proxy=true --rm -v $(shell pwd):/site -w /site -p 1313:1313 $(img) hugo serve --baseURL "http://${ISTIO_SERVE_DOMAIN}:1313/" --bind 0.0.0.0 --disableFastRender
netlify:
@scripts/gen_site.sh "$(baseurl)" -minify
@scripts/gen_site.sh "$(baseurl)"
netlify_archive:
@scripts/gen_archive_site.sh "$(baseurl)" -minify
@scripts/gen_archive_site.sh "$(baseurl)"