Skip to content

Commit e5a1de9

Browse files
authored
Merge pull request #2191 from daspecster/fix-update-json-docs-script
Clean up doc site scripts.
2 parents 41fcf9f + 94d4ff9 commit e5a1de9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/update_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ git config --global user.name "travis-ci"
8989
git commit -m "Update docs after merge to master."
9090
# NOTE: This may fail if two docs updates (on merges to master)
9191
# happen in close proximity.
92-
git push \
92+
git push -q \
9393
"https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME}" \
9494
HEAD:gh-pages

scripts/update_json_docs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function buildDocs () {
1313
function pushDocs () {
1414
echo "Deploying JSON documentation..."
1515
if [[ ! -d "ghpages" ]]; then
16-
git submodule add -f -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} ghpages
16+
git submodule add -q -f -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} ghpages
1717
fi
1818
mkdir -p ghpages/json/${1}
1919
cp -R docs/_build/json_build/* ghpages/
@@ -24,7 +24,7 @@ function pushDocs () {
2424
git config user.email "travis@travis-ci.org"
2525
git commit -m "Updating docs for ${1}"
2626
git status
27-
git push https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} HEAD:gh-pages
27+
git push -q https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} HEAD:gh-pages
2828
else
2929
echo "Nothing to commit."
3030
fi
@@ -35,7 +35,7 @@ function pushDocs () {
3535

3636
function cleanSubmodule () {
3737
echo "Cleaning up!"
38-
git submodule deinit -f ghpages
38+
git submodule deinit -q -f ghpages
3939
git reset HEAD .gitmodules
4040
git reset HEAD ghpages
4141
rm -rf ghpages

0 commit comments

Comments
 (0)