Add Makefile and reference to docs
This commit is contained in:
parent
c3e362c8e5
commit
2475f88df3
2 changed files with 20 additions and 1 deletions
|
@ -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
15
docs/Makefile
Normal 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
|
Loading…
Reference in a new issue