Skip to content

Commit 25a0d15

Browse files
authored
DOC-2324: Migrate 5 antora changes to new branch in main repo
DOC-2324: Migrate 5 antora changes to new branch in main repo
2 parents 7921d4a + c8011c6 commit 25a0d15

File tree

638 files changed

+14205
-5372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

638 files changed

+14205
-5372
lines changed
File renamed without changes.

_new_content_templates/configuration-option-setting.adoc renamed to -new-material-templates/configuration-option-setting.adoc

File renamed without changes.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
if [[ -z $1 ]] ; then
66
echo 'You need to specify the root tinymce directory to generate the source for'
7-
echo './_scripts/api-reference-local ../tinymce'
7+
echo './-scripts/api-reference-local ../tinymce'
88
exit 1
99
fi
1010

@@ -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
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ rm -rf _data
1313
rm -rf "$API_TMPDIR"
1414
mkdir "$API_TMPDIR"
1515
curl -s "$TARBALL_URL" | tar xzf - -C "$API_TMPDIR" --strip-components 1
16-
npx moxiedoc "$API_TMPDIR/modules/tinymce/src/core/main/ts" -t antora -s "legacy" -o "$API_TMPDIR/tinymce-api-reference.zip"
16+
npx moxiedoc "$API_TMPDIR/modules/tinymce/src/core/main/ts" -t antora -o "$API_TMPDIR/tinymce-api-reference.zip"
1717
unzip -o "$API_TMPDIR/tinymce-api-reference.zip"
1818

1919
# remove old api adoc pages
20-
rm -rf modules/ROOT/pages/api/
20+
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/api/
23+
rm -rf build/site/tinymce/5/apis/
2424

2525
# move newly generated adoc pages, antora will then generate new static html pages
26-
mv _data/antora/api modules/ROOT/pages/
26+
mv _data/antora modules/ROOT/pages/apis
2727

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

3131
# cleanup moxiedoc tmp _data folder
3232
rm -rf _data
3333

34-
echo "donesky"
34+
echo "API reference updated."
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [ -e $list_file ]
2525
then
2626
echo ""
2727
else
28-
echo "please execute from the TinyMCE documentation root directory (such as './_scripts/icon_list_refresh.sh') and ensure '$list_file' exists"
28+
echo "please execute from the TinyMCE documentation root directory (such as './-scripts/icon_list_refresh.sh') and ensure '$list_file' exists"
2929
exit 1
3030
fi
3131

.github/workflows/feature_5_docs.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/release_5_docs.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/staging_5_docs.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,4 @@ node_modules
77
build/
88

99
# Antora tmp files
10-
_site/
11-
12-
# Moxiedoc files
13-
moxiedoc_nav.adoc
14-
modules/ROOT/pages/api/
10+
_site/

0 commit comments

Comments
 (0)