Skip to content

Commit a5617fc

Browse files
committed
Remove gh-pages from makefile, we are using readthedocs
1 parent 6f4eb47 commit a5617fc

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

Makefile

-22
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,12 @@ SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = docs/_build
9-
GH_PAGES_SOURCES = docs pygccxml Makefile
109

1110
# User-friendly check for sphinx-build
1211
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
1312
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
1413
endif
1514

16-
# Check if the spinx version is the right one. Sphinx does not allow to check for
17-
# minor sphinx revisions in conf.py, so we have to do this check here.
18-
# This is needed because it the doc is uploaded to the git pages, we don't want
19-
# to merge in changes due to a sphinx version change.
20-
ifeq ($(shell $(SPHINXBUILD) --version | grep -q "1.2.2" >/dev/null 2>&1; echo $$?), 1)
21-
$(error You need sphinx 1.2.2 to build the documentation !)
22-
endif
23-
2415
# Internal variables.
2516
PAPEROPT_a4 = -D latex_paper_size=a4
2617
PAPEROPT_letter = -D latex_paper_size=letter
@@ -184,16 +175,3 @@ pseudoxml:
184175
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
185176
@echo
186177
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
187-
188-
gh-pages:
189-
git checkout gh-pages
190-
rm -rf docs/*
191-
rm -rf documentation/*
192-
git checkout master $(GH_PAGES_SOURCES)
193-
git reset HEAD
194-
make html
195-
mv -fv docs/_build/html/* documentation
196-
rm -rf $(GH_PAGES_SOURCES)
197-
rm -rf documentation/_sources
198-
git add -A
199-
git commit -m "Generated gh-pages for `git log master -1 --pretty=short --abbrev-commit`"

0 commit comments

Comments
 (0)