Skip to content

Commit

Permalink
Update docs script
Browse files Browse the repository at this point in the history
  • Loading branch information
jlavelle committed Oct 19, 2020
1 parent 5f17c15 commit d030ed9
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion scripts/mkDocs.fish
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
set root (realpath (dirname (status --current-filename)))/..
set currentBranch (git branch --show-current)
set msg "Generated docs "(date "+%m/%d/%y %T")" for branch $currentBranch"

git checkout gh-pages
or exit

echo Deleting old documentation in $root/docs

rm -rf $root/docs

cd $root/examples
spago docs

echo Copying generated documentation to $root/docs
rsync -a $root/examples/generated-docs/html/ $root/docs/
echo Done.

git add -f $root/docs/.

git commit -m $msg
and git push

git checkout $currentBranch

0 comments on commit d030ed9

Please sign in to comment.