Add custom style for API docs
[remotestorage.js] / Makefile
1
2 DOC_BIN=naturaldocs
3 DOC_DIR=./doc/code
4 DOC_CONFIG_DIR=./doc/config
5 DOC_CUSTOM_CSS=custom-1
6 SOURCE_DIR=./src
7
8 NODEJS=node
9
10 default: debug-only
11
12 build:
13         cd build/ && $(NODEJS) build.js
14
15 debug-only:
16         cd build/ && $(NODEJS) build.js debug
17
18 prepare-gh-pages:
19         git checkout gh-pages
20         git merge master
21
22 push-gh-pages:
23         git push origin gh-pages
24
25 commit-build: prepare-gh-pages build
26         git add build/
27         git commit -m "build: `date -u`"
28         git checkout master
29
30 commit-docs: prepare-gh-pages doc
31         git add $(DOC_DIR) $(DOC_CONFIG_DIR)
32         git commit -m "doc build: `date -u`"
33         git checkout master
34
35 push-build: commit-build push-gh-pages
36 push-docs: commit-docs push-gh-pages
37 push-assets: commit-build commit-docs push-gh-pages
38
39 doc:
40         mkdir -p $(DOC_DIR) $(DOC_CONFIG_DIR)
41         $(DOC_BIN) -i $(SOURCE_DIR) -o html $(DOC_DIR) -p $(DOC_CONFIG_DIR) -s Default $(DOC_CUSTOM_CSS)
42
43 clean-doc:
44         rm -rf $(DOC_DIR)
45
46 .PHONY: doc clean-doc build commit-build push-build prepare-gh-pages