Skip to content

Commit 69cc0b7

Browse files
committed
Add .nojekyll file and implemented 'upload' build rule.
Makefile: - Copy .nojekyll file to html directory so github will serve content from directories with names having leading underscores. - 'upload' build rule runs ghp-import, merges into master, and pushes all branches to origin.
1 parent 0d7100b commit 69cc0b7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ git-submodules:
4040

4141
site: images sphinx-html
4242
cp static/CNAME sphinx/_build/html
43+
cp static/.nojekyll sphinx/_build/html
4344

4445
upload:
45-
@echo "Not yet implemented."
46+
ghp-import sphinx/_build/html/ && \
47+
git checkout master && git merge gh-pages -m "gh-pages merge" && \
48+
git push origin --all && git checkout source
4649

4750
clean:
4851
$(MAKE) -C $(SPHINXDIR) clean

static/.nojekyll

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file is present so that github will serve file from directories
2+
# having names with a leading underscore.

0 commit comments

Comments
 (0)