paper.js/build/docs.sh

36 lines
883 B
Bash
Raw Normal View History

#!/bin/bash
2011-06-25 16:34:59 -04:00
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
# http://paperjs.org/
#
# Copyright (c) 2011 - 2016, Juerg Lehni & Jonathan Puckey
2014-01-03 19:47:16 -05:00
# http://scratchdisk.com/ & http://jonathanpuckey.com/
#
2011-07-01 06:17:45 -04:00
# Distributed under the MIT license. See LICENSE file for details.
#
# All rights reserved.
# Generate documentation
#
# MODE:
2014-08-16 13:24:54 -04:00
# docs Generates the JS API docs - Default
# serverdocs Generates the website templates for the online JS API docs
if [ $# -eq 0 ]
then
2014-08-16 13:24:54 -04:00
MODE="docs"
else
2014-08-16 13:24:54 -04:00
MODE=$1
fi
cd jsdoc-toolkit
# TODO: jsdoc2 -c=conf/$MODE.conf -D="renderMode:$MODE"
java -cp jsrun.jar:lib/* JsRun app/run.js -c=conf/$MODE.conf -D="renderMode:$MODE"
cd ..
if [ $MODE = "docs" ]
then
2014-08-16 13:24:54 -04:00
# Build paper.js library for documentation
./preprocess.sh stripped ../src/paper.js "-i '../src/constants.js'" ../dist/docs/assets/js/paper.js
fi