Add Makefile and reference to docs

This commit is contained in:
Peter 2020-04-07 00:31:47 +02:00
parent c3e362c8e5
commit 2475f88df3
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
2 changed files with 20 additions and 1 deletions

View file

@ -1 +1,5 @@
# inetmock
# INetMock
## Docs
Docs are available either in the [`docs/`](./docs/) directory or as rendered markdown book at the [GitHub pages](https://baez90.github.io/inetmock/).

15
docs/Makefile Normal file
View file

@ -0,0 +1,15 @@
.PHONY: book deploy
book:
@mdbook build
deploy: book
@rm -rf /tmp/book
@git worktree remove -f /tmp/book
@git worktree add /tmp/book gh-pages
@rm -rf /tmp/book/*
@cp -rp book/* /tmp/book/
@cd /tmp/book && \
git add -A && \
git commit -m "deployed on $(shell date) by ${USER}" && \
git push origin gh-pages