mirror of https://github.com/istio/istio.io.git
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:
parent
8cbefd3417
commit
f5cfde45a8
|
@ -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
|
||||
|
|
11
Makefile
11
Makefile
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue