mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
a7a07fb6d5
- Convert from {@code ...} to shorter `...` - Reformat some documentation comment blocks - Update copyright notices
34 lines
843 B
Bash
Executable file
34 lines
843 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
|
# http://paperjs.org/
|
|
#
|
|
# Copyright (c) 2011 - 2016, Juerg Lehni & Jonathan Puckey
|
|
# http://scratchdisk.com/ & http://jonathanpuckey.com/
|
|
#
|
|
# Distributed under the MIT license. See LICENSE file for details.
|
|
#
|
|
# All rights reserved.
|
|
|
|
# Generate documentation
|
|
#
|
|
# MODE:
|
|
# docs Generates the JS API docs - Default
|
|
# serverdocs Generates the website templates for the online JS API docs
|
|
|
|
if [ $# -eq 0 ]
|
|
then
|
|
MODE="docs"
|
|
else
|
|
MODE=$1
|
|
fi
|
|
|
|
cd jsdoc-toolkit
|
|
java -jar jsrun.jar app/run.js -c=conf/$MODE.conf -D="renderMode:$MODE"
|
|
cd ..
|
|
|
|
if [ $MODE = "docs" ]
|
|
then
|
|
# Build paper.js library for documentation
|
|
./preprocess.sh stripped ../src/paper.js "-o '{ \"browser\": true }' -i '../src/constants.js'" ../dist/docs/assets/js/paper.js
|
|
fi
|