We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28e18a0 commit b4b3fd3Copy full SHA for b4b3fd3
scripts/docs/docs.sh
@@ -1,5 +1,9 @@
1
#!/usr/bin/env sh
2
3
+if [[ `git status --porcelain` ]]; then
4
+ echo "Working directory must be clean"
5
+ exit 1
6
+fi
7
echo Removing current docs folder...
8
rm -rf docs
9
echo Building new docs...
@@ -12,3 +16,12 @@ touch docs/.nojekyll
12
16
echo Adding CNAME file...
13
17
echo jsonapy.pycolore.fr > docs/CNAME
14
18
echo Done.
19
+echo Switching to gh-pages branch...
20
+git add docs
21
+git stash
22
+git checkout gh-pages
23
+git stash pop --quiet
24
+git checkout --theirs .
25
26
+git stash drop
27
+echo Ready to commit.
0 commit comments