fixed local api reference and updated readme.md

This commit is contained in:
Spocke
2018-08-14 10:58:07 +02:00
parent df9b951228
commit 03a9a8774c
2 changed files with 15 additions and 2 deletions
+7
View File
@@ -59,3 +59,10 @@ including information on troubleshooting the "first time set up" process.
## Why is HTML minification disabled?
It's very slow and the minifier is using regex to parse HTML. We may add a different minifier in the future.
## Generating api docs from local files
```
npm i -g ephox/moxiedoc#feature/tinymcenext
./_scripts/api-reference-local.sh ../tinymce
```
+8 -2
View File
@@ -2,13 +2,19 @@
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\n"
echo -e "\n > importing data files for tinymce api reference: local from $1\n"
rm -rf "$API_TMPDIR"
mkdir "$API_TMPDIR"
moxiedoc "../tinymce-stash/src/core/src/main/js" -t tinymcenext -o "$API_TMPDIR/tinymce-api-reference.zip"
moxiedoc "$1/src/core/main/ts" -t tinymcenext -o "$API_TMPDIR/tinymce-api-reference.zip"
unzip -o "$API_TMPDIR/tinymce-api-reference.zip"
rm _data/nav_api.json