Try to use global gitbook-cli
This commit is contained in:
parent
ff21408440
commit
3c812792bb
@ -7,6 +7,11 @@ cd "$(dirname "$0")"
|
|||||||
# Helpful to verify which versions we're using
|
# Helpful to verify which versions we're using
|
||||||
yarn -v
|
yarn -v
|
||||||
node -v
|
node -v
|
||||||
|
echo 'help ~~~~~~~~~~~~'
|
||||||
|
npm --help
|
||||||
|
echo 'root ~~~~~~~~~~~~'
|
||||||
|
npm root -g
|
||||||
|
# export PATH=$PATH:/opt
|
||||||
|
|
||||||
# Install GitBook CLI
|
# Install GitBook CLI
|
||||||
echo 'Installing Gitbook CLI'
|
echo 'Installing Gitbook CLI'
|
||||||
@ -24,8 +29,9 @@ for D in *; do
|
|||||||
|
|
||||||
# Clear previous output, generate new
|
# Clear previous output, generate new
|
||||||
rm -rf _book
|
rm -rf _book
|
||||||
npx gitbook install
|
node gitbook install
|
||||||
npx gitbook build
|
node gitbook gitbook build
|
||||||
|
# /usr/lib/node_modules/gitbook-cli/
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user