Add html lint checker
parent
0d462a7bb2
commit
f52b1e2050
6
Makefile
6
Makefile
|
@ -4,6 +4,11 @@ BOOK_OUTPUT := _book
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
gitbook build . $(BOOK_OUTPUT)
|
gitbook build . $(BOOK_OUTPUT)
|
||||||
|
cp images/apple-touch-icon-precomposed-152.png $(BOOK_OUTPUT)/gitbook/images
|
||||||
|
|
||||||
|
.PHONY: lint
|
||||||
|
lint:
|
||||||
|
htmlproofer --url-ignore "/localhost/,/172.17.8.101/,/172.20.0.113/,/slideshare.net/,/grpc.io/,/kiali.io/,/condiut.io/,/twitter.com/,/facebook.com/,/medium.com/,/google.com/,/jimmysong.io/" $(BOOK_OUTPUT)
|
||||||
|
|
||||||
.PHONY: serve
|
.PHONY: serve
|
||||||
serve:
|
serve:
|
||||||
|
@ -25,6 +30,7 @@ mobi:
|
||||||
install:
|
install:
|
||||||
npm install gitbook-cli -g
|
npm install gitbook-cli -g
|
||||||
gitbook install
|
gitbook install
|
||||||
|
gem install html-proofer
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -4,6 +4,6 @@ build:
|
||||||
- script:
|
- script:
|
||||||
name: build
|
name: build
|
||||||
code: |
|
code: |
|
||||||
gitbook install
|
make install
|
||||||
gitbook build
|
make build
|
||||||
|
make lint
|
||||||
|
|
Loading…
Reference in New Issue