mirror of
https://github.com/go-acme/lego.git
synced 2024-12-22 16:53:17 +02:00
chore: validate the DNS documentation generation. (#864)
This commit is contained in:
parent
5bf36f544a
commit
b186acb858
@ -43,6 +43,9 @@ install:
|
|||||||
- echo "TRAVIS_GO_VERSION=$TRAVIS_GO_VERSION"
|
- echo "TRAVIS_GO_VERSION=$TRAVIS_GO_VERSION"
|
||||||
- dep status -v
|
- dep status -v
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- make validate-doc
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- make clean
|
- make clean
|
||||||
|
|
||||||
|
13
Makefile
13
Makefile
@ -69,8 +69,17 @@ docs-serve: generate-dns
|
|||||||
docs-themes:
|
docs-themes:
|
||||||
@make -C ./docs hugo-themes
|
@make -C ./docs hugo-themes
|
||||||
|
|
||||||
# Generate DNS
|
# DNS Documentation
|
||||||
.PHONY: generate-dns
|
.PHONY: generate-dns validate-doc
|
||||||
|
|
||||||
generate-dns:
|
generate-dns:
|
||||||
go generate ./...
|
go generate ./...
|
||||||
|
|
||||||
|
validate-doc: generate-dns
|
||||||
|
ifneq ($(shell git status --porcelain -- ./docs/ ./cmd/ 2>/dev/null),)
|
||||||
|
@echo 'The documentation must be regenerated, please use `make generate-dns`.'
|
||||||
|
@git status --porcelain -- ./docs/ ./cmd/ 2>/dev/null
|
||||||
|
@exit 2
|
||||||
|
else
|
||||||
|
@echo 'All documentation changes are done the right way.'
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user