mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
refactor(script/docs): Add comments
This commit is contained in:
parent
35991c5786
commit
52e2c1251e
1 changed files with 5 additions and 3 deletions
|
@ -1,11 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Runs script/grunt docs and moves the output to gh-pages branch
|
||||
# This overwrites whatever is in gh-pages
|
||||
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
|
||||
cp -rf docs/output/* docs # Place all of the html in its proper place
|
||||
mv -f docs/sidebar.json _data # Move sidebar.json to appropriate folder
|
||||
rm -f docs/api.json # Remove unecessary file
|
||||
rm -rf docs/output
|
||||
|
||||
git add .
|
||||
|
|
Loading…
Reference in a new issue