mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
19 lines
442 B
Bash
Executable file
19 lines
442 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Builds docs and moves the output to gh-pages branch (overwrites)
|
|
mkdir -p _docs_output
|
|
script/grunt docs
|
|
./node_modules/.bin/gitbook --gitbook=latest build . ./_docs_output --log=debug --debug
|
|
rm -r docs_src/classes
|
|
git checkout gh-pages --quiet
|
|
cp -rf _docs_output/* .
|
|
# rm -r _docs_output
|
|
|
|
git add .
|
|
git status -s
|
|
printf "\nDocs updated! \n\n"
|
|
git commit -m 'Update Docs'
|
|
git push origin gh-pages
|
|
git checkout master
|