fixed local api reference and updated readme.md
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user