firedoc
Version:
API Doc generator rewritten from [YUIDoc](https://github.com/yui/yuidoc). We use this tool to document a large JavaScript game engine [Fireball](http://github.com/fireball-x/fireball) at [docs-zh.fireball-x.com/api](http://docs-zh.fireball-x.com/api/) and
39 lines (28 loc) • 852 B
Plain Text
MOCHA_EXEC=node_modules/.bin/_mocha
ISTANBUL_EXEC=node_modules/.bin/istanbul
all:
npm -g i .
version:
./scripts/versions.js
help:
./scripts/help.sh
docs: docsghpages
firedoc build ./lib --markdown
docsghpages:
-rm -rf ./docs-ghpages
-mkdir -p ./docs-ghpages/en
-mkdir -p ./docs-ghpages/zh
firedoc build ./ --lang en -D 'docs-ghpages/en' --theme notab -Hv
firedoc build ./ --lang zh -D 'docs-ghpages/zh' --theme notab -Hv
cp -r ./docs-ghpages/en/* ./docs-ghpages/
sh ./scripts/ghpages.sh
notab:
node bin/firedoc-build ./lib --en -o 'docs-ghpages/en' --theme notab
sh ./scripts/ghpages.sh
deploydocs: version
./scripts/docs.sh
test:
NODE_ENV=test $(ISTANBUL_EXEC) cover $(MOCHA_EXEC) -- -R spec --timeout 3000 ./test/test-*.js
test.nocoverage:
NODE_ENV=test $(MOCHA_EXEC) --timeout 3000 ./test/test-*.js
.PHONY: docs clean test