Skip to content

Commit

Permalink
book: add deploy command
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Sep 30, 2023
1 parent 2d640ca commit 5a88ee8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "book/public"]
path = book/public
url = https://github.com/rust-nostr/rust-nostr.github.io.git
1 change: 0 additions & 1 deletion book/.gitignore

This file was deleted.

10 changes: 8 additions & 2 deletions book/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ init:
pip install -U poetry
poetry install

build:
poetry run mkdocs build --strict --clean --verbose
checkout:
git submodule update --init --recursive --remote

build: checkout
poetry run mkdocs build --strict --clean --verbose --site-dir public/book

deploy: build
cd public && git add book && git commit -m "Deploy book" && git push origin HEAD:master --force

serve:
mkdocs serve
1 change: 1 addition & 0 deletions book/public
Submodule public added at 9de3ac

0 comments on commit 5a88ee8

Please sign in to comment.