Skip to content

Commit 17d379b

Browse files
committed
DOC-2324: Fix API script
1 parent 0f66832 commit 17d379b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

_scripts/api-reference-local.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ echo -e "\n > importing data files for tinymce api reference: local from $1\n"
1414

1515
rm -rf "$API_TMPDIR"
1616
mkdir "$API_TMPDIR"
17-
npx moxiedoc "$1/modules/tinymce/src/core/main/ts" -t antora -s "legacy" -o "$API_TMPDIR/tinymce-api-reference.zip"
17+
npx moxiedoc "$1/modules/tinymce/src/core/main/ts" -t antora -o "$API_TMPDIR/tinymce-api-reference.zip"
1818
unzip -o "$API_TMPDIR/tinymce-api-reference.zip"
1919

2020
# remove old api adoc pages
21-
rm -rf modules/ROOT/pages/api/
21+
rm -rf modules/ROOT/pages/apis/
2222

2323
# removed old static api html pages (clear cache), it can corrupt the build
24-
rm -rf build/site/tinymce/5/api/
24+
rm -rf build/site/tinymce/5/apis/
2525

2626
# move newly generated adoc pages, antora will then generate new static html pages
27-
mv _data/antora/api modules/ROOT/pages
27+
mv _data/antora modules/ROOT/pages/apis
2828

2929
# move api navigation
3030
mv _data/moxiedoc_nav.adoc modules/ROOT/moxiedoc_nav.adoc

_scripts/api-reference.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ unzip -o "$API_TMPDIR/tinymce-api-reference.zip"
2020
rm -rf modules/ROOT/pages/apis/
2121

2222
# removed old static api html pages (clear cache), it can corrupt the build
23-
rm -rf build/site/_/tinymce/5/apis/
23+
rm -rf build/site/tinymce/5/apis/
2424

2525
# move newly generated adoc pages, antora will then generate new static html pages
2626
mv _data/antora modules/ROOT/pages/apis

0 commit comments

Comments
 (0)