Skip to content

Commit 5a88ee8

Browse files
committed
book: add deploy command
1 parent 2d640ca commit 5a88ee8

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "book/public"]
2+
path = book/public
3+
url = https://github.com/rust-nostr/rust-nostr.github.io.git

book/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

book/Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ init:
22
pip install -U poetry
33
poetry install
44

5-
build:
6-
poetry run mkdocs build --strict --clean --verbose
5+
checkout:
6+
git submodule update --init --recursive --remote
7+
8+
build: checkout
9+
poetry run mkdocs build --strict --clean --verbose --site-dir public/book
10+
11+
deploy: build
12+
cd public && git add book && git commit -m "Deploy book" && git push origin HEAD:master --force
713

814
serve:
915
mkdocs serve

book/public

Submodule public added at 9de3ac8

0 commit comments

Comments
 (0)