Skip to content

Commit

Permalink
Add html lint checker
Browse files Browse the repository at this point in the history
  • Loading branch information
rootsongjc committed Sep 25, 2018
1 parent 0d462a7 commit f52b1e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ BOOK_OUTPUT := _book
.PHONY: build
build:
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
serve:
Expand All @@ -25,6 +30,7 @@ mobi:
install:
npm install gitbook-cli -g
gitbook install
gem install html-proofer

.PHONY: clean
clean:
Expand Down
6 changes: 3 additions & 3 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ build:
- script:
name: build
code: |
gitbook install
gitbook build
make install
make build
make lint

0 comments on commit f52b1e2

Please sign in to comment.