-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
43 lines (36 loc) · 1.31 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = docs/build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) docs/source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
.PHONY: help
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " deploy deploys to the gh-pages section of the repository"
.PHONY: clean
clean:
rm -rf $(BUILDDIR)/*
.PHONY: html
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)."
.PHONY: deploy
deploy:
cd plugin_packaging && ./build_plugin.sh && cd ..
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)
ghp-import -n $(BUILDDIR) -m "Travis documentation push"
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)."
git push -fq https://$(TRAVIS_GH_TOKEN)@github.com/smartshark/issueSHARK.git gh-pages
@echo
@echo "Push finished. The HTML pages are pushed to https://smartshark.github.io/issueSHARK/"