-
Notifications
You must be signed in to change notification settings - Fork 26.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2f3294
commit ae98d45
Showing
6 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
cd docs | ||
|
||
function deploy_doc(){ | ||
echo "Creating doc at commit $1 and pushing to folder $2" | ||
git checkout $1 | ||
if [ ! -z "$2" ] | ||
then | ||
echo "Pushing version" $2 | ||
make clean && make html && scp -r -oStrictHostKeyChecking=no _build/html $doc:$dir/$2 | ||
else | ||
echo "Pushing master" | ||
make clean && make html && scp -r -oStrictHostKeyChecking=no _build/html/* $doc:$dir | ||
fi | ||
} | ||
|
||
deploy_doc "master" | ||
deploy_doc "b33a385" v1.0.0 | ||
deploy_doc "fe02e45" v1.1.0 | ||
deploy_doc "89fd345" v1.2.0 | ||
deploy_doc "fc9faa8" v2.0.0 | ||
deploy_doc "3ddce1d" v2.1.1 | ||
deploy_doc "f2f3294" v2.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters