Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ca85405

Browse files
committedJul 19, 2022
doc: add a .nojekyll to gh pages and ignore submodules
1 parent 92bb7d5 commit ca85405

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

‎publish-gh-pages

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ git checkout master -- \
99
'*.png' \
1010
_config.yml \
1111
;
12+
touch .nojekyll
13+
# submodules are not deleted on checkout.
14+
# We should not publish like this, we should make a separate tree,
15+
# otherwise files appear and disapear as you publish, which is bad
16+
# for editors. But lazy.
17+
echo 'submodules' >> .gitignore
1218
cp out/README.html index.html
1319
cp out/doc/* .
1420
mv README.html index-split.html
1521
git add .
16-
git commit --message "$(git log -n1 --pretty='%H' master)"
17-
git push
22+
git commit --allow-empty --message "$(git log -n1 --pretty='%H' master)"
23+
git push -f
1824
git checkout -

0 commit comments

Comments
 (0)
Please sign in to comment.