mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-22 04:24:05 +00:00
Makefile: "publish-book" target combines both books (#1306)
Since both books share the same Git branch and the same base URL, it makes sense to combine them when publishing.
This commit is contained in:
parent
80cba4db91
commit
b01be646cf
27
Makefile
27
Makefile
@ -224,10 +224,18 @@ book:
|
||||
cd docs/the_nimbus_book && \
|
||||
mdbook build
|
||||
|
||||
publish-book: | book
|
||||
auditors-book:
|
||||
cd docs/the_auditors_handbook && \
|
||||
mdbook build
|
||||
|
||||
publish-book: | book auditors-book
|
||||
git branch -D gh-pages && \
|
||||
git branch --track gh-pages origin/gh-pages && \
|
||||
git worktree add tmp-book gh-pages && \
|
||||
rm -rf tmp-book/* && \
|
||||
mkdir -p tmp-book/auditors-book && \
|
||||
cp -a docs/the_nimbus_book/book/* tmp-book/ && \
|
||||
cp -a docs/the_auditors_handbook/book/* tmp-book/auditors-book/ && \
|
||||
cd tmp-book && \
|
||||
git add . && { \
|
||||
git commit -m "make publish-book" && \
|
||||
@ -236,21 +244,4 @@ publish-book: | book
|
||||
git worktree remove -f tmp-book && \
|
||||
rm -rf tmp-book
|
||||
|
||||
auditors-book:
|
||||
cd docs/the_auditors_handbook && \
|
||||
mdbook build
|
||||
|
||||
publish-auditors-book: | auditors-book
|
||||
git worktree add tmp-book gh-pages && \
|
||||
mkdir -p tmp-book/auditors-book && \
|
||||
rm -rf tmp-book/auditors-book/* && \
|
||||
cp -a docs/the_auditors_handbook/book/* tmp-book/auditors-book/ && \
|
||||
cd tmp-book && \
|
||||
git add . && { \
|
||||
git commit -m "make publish-auditors-book" && \
|
||||
git push origin gh-pages || true; } && \
|
||||
cd .. && \
|
||||
git worktree remove -f tmp-book && \
|
||||
rm -rf tmp-book
|
||||
|
||||
endif # "variables.mk" was not included
|
||||
|
Loading…
x
Reference in New Issue
Block a user