mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-09 22:45:16 +08:00
Add docs script to automatically move output of grunt docs to gh-pages
This commit is contained in:
parent
285a60493e
commit
35991c5786
1 changed files with 13 additions and 0 deletions
13
script/docs
Normal file
13
script/docs
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
mkdir docs/output
|
||||
script/grunt docs
|
||||
git checkout gh-pages --quiet
|
||||
cp -rf docs/output/* docs
|
||||
mv -f docs/sidebar.json _data
|
||||
rm -f docs/api.json
|
||||
rm -rf docs/output
|
||||
|
||||
git add .
|
||||
printf "Now commit the changes! \n\n"
|
||||
git status
|
Loading…
Reference in a new issue