2011-05-31 17:17:13 -04:00
|
|
|
# Paper.js
|
|
|
|
#
|
|
|
|
# This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
|
|
|
# based on Scriptographer.org and designed to be largely API compatible.
|
|
|
|
# http://scriptographer.org/
|
|
|
|
#
|
|
|
|
# Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
|
|
|
# http://lehni.org/ & http://jonathanpuckey.com/
|
|
|
|
#
|
|
|
|
# All rights reserved. See LICENSE file for details.
|
|
|
|
|
|
|
|
# Generate documentation
|
2011-06-01 06:19:15 -04:00
|
|
|
#
|
|
|
|
# MODE:
|
|
|
|
# docs Generates the JS API docs
|
|
|
|
# templatedocs Generates the website templates for the online JS API docs
|
|
|
|
|
|
|
|
if [ $# -eq 0 ]
|
|
|
|
then
|
|
|
|
MODE="docs"
|
|
|
|
else
|
|
|
|
MODE=$1
|
|
|
|
fi
|
2011-05-31 17:17:13 -04:00
|
|
|
|
|
|
|
cd jsdoc-toolkit
|
2011-06-01 13:49:50 -04:00
|
|
|
java -jar jsrun.jar app/run.js -c=conf/$MODE.conf -D="renderMode:$MODE"
|
2011-06-02 14:50:43 -04:00
|
|
|
cd ..
|
|
|
|
|
2011-06-12 14:03:18 -04:00
|
|
|
./preprocess.sh ../src/paper.js ../dist/docs/resources/js/paper.js "-DBROWSER" stripped
|