Skip to content

Commit f93cb1d

Browse files
igncpjayphelps
authored andcommitted
style(docs): improve readability of publish_docs (#2015)
Break down the script into multiple lines, but remaining the ampersands so it fails if any part of the command fails
1 parent 1bbbe8b commit f93cb1d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

publish_docs.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@
33
# Generates documentation and pushes it up to the site
44
# WARNING: Do NOT run this script unless you have remote `upstream` set properly
55
#
6-
rm -rf tmp/docs && npm run build_docs && git checkout gh-pages && git fetch upstream && git rebase upstream/gh-pages && cp -r ./tmp/docs/ ./ && rm -rf tmp/ && git add . && git commit -am "chore(docs): docs generated automatically" && git push upstream gh-pages
6+
rm -rf tmp/docs && \
7+
npm run build_docs && \
8+
git checkout gh-pages && \
9+
git fetch upstream && \
10+
git rebase upstream/gh-pages && \
11+
cp -r ./tmp/docs/ ./ && \
12+
rm -rf tmp/ && \
13+
git add . && \
14+
git commit -am "chore(docs): docs generated automatically" && \
15+
git push upstream gh-pages

0 commit comments

Comments
 (0)