File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 55 },
66 "scripts" : {
77 "build" : " ./node_modules/.bin/gitbook build && ./node_modules/.bin/gitbook pdf && ./node_modules/.bin/gitbook mobi && ./node_modules/.bin/gitbook epub" ,
8- "build-pdf" : " ./node_modules/.bin/gitbook pdf"
8+ "build-pdf" : " ./node_modules/.bin/gitbook pdf" ,
9+ "publish" : " ./publish.sh"
910 }
1011}
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ rm -rf ./_book
4+ gitbook build
5+ mkdir ./_book/ebook
6+ gitbook pdf ./ ./_book/ebook/React模式.pdf
7+ gitbook mobi ./ ./_book/ebook/React模式.mobi
8+ gitbook epub ./ ./_book/ebook/React模式.epub
9+ git checkout gh-pages
10+ git pull origin gh-pages
11+ cp -rf ./_book/* ./
12+ git add .
13+ git commit -m ' chore(docs): regenerated book'
14+ git push origin gh-pages
15+ git checkout master
You can’t perform that action at this time.
0 commit comments