Files
tinymce-docs-4x/_scripts/api-reference-local.sh
T
2018-10-05 08:29:47 +02:00

22 lines
543 B
Bash
Executable File

#!/bin/bash
set -e
if [[ $1 -eq 0 ]] ; then
echo 'You need to specify the root tinymce directory to generate the source for'
echo './_scripts/api-reference-local ../tinymce'
exit 1
fi
API_TMPDIR="/tmp/tinymce-$API_VERSION"
echo -e "\n > importing data files for tinymce api reference: local from $1\n"
rm -rf "$API_TMPDIR"
mkdir "$API_TMPDIR"
moxiedoc "$1/src/core/main/ts" "$1/src/ui/main/ts" -t tinymcenext -o "$API_TMPDIR/tinymce-api-reference.zip"
unzip -o "$API_TMPDIR/tinymce-api-reference.zip"
rm _data/nav_api.json
echo ""