-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…dits to bundling with es6 vite documentation. (#3020) * DOC-2228: Updates to bundling with js, to bundling with es6+vite. * DOC-2228: add changelog entry. * DOC-2228: update js code blocks for various files. * DOC-2228: add example 2 to bundling-plugins.adoc update bundling-plugins-that-cant-bundle.adoc message. * DOC-2228: Various updates including.. removal of example 1 from bundling-plugins.adoc condensing of css and js to css or bundled css * Update bundling-plugins.adoc Co-authored-by: Hamza Benkhaldoun <[email protected]> * DOC-2228: update admon-building-plugin-langs.adoc to include links. --------- Co-authored-by: Hamza Benkhaldoun <[email protected]>
- Loading branch information
1 parent
94248c9
commit cc12cff
Showing
57 changed files
with
342 additions
and
552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
modules/ROOT/partials/module-loading/admon-bundling-plugin-langs.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
NOTE: The plugin language files (such as `+./plugins/plugin/langs/sv_SE.js+`) are required where the editor user interface is localized using the xref:ui-localization.adoc#language[`+language+` option]. | ||
NOTE: The plugin language files (such as `+./plugins/plugin/langs/sv_SE.js+`) are required where the editor user interface is localized using the xref:ui-localization.adoc#language[language option]. Please prefer to xref:bundling-plugins.adoc#plugin-language-files[plugin-language-files] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
modules/ROOT/partials/module-loading/bundling-plugin-language-files.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
IMPORTANT: Replace `<plugin-name>` with the specific plugin name when adding the plugin language files to your config. | ||
|
||
[source, js] | ||
---- | ||
./plugins/<plugin-name>/langs/ar.js | ||
./plugins/<plugin-name>/langs/bg_BG.js | ||
./plugins/<plugin-name>/langs/ca.js | ||
./plugins/<plugin-name>/langs/cs.js | ||
./plugins/<plugin-name>/langs/da.js | ||
./plugins/<plugin-name>/langs/de.js | ||
./plugins/<plugin-name>/langs/el.js | ||
./plugins/<plugin-name>/langs/es.js | ||
./plugins/<plugin-name>/langs/eu.js | ||
./plugins/<plugin-name>/langs/fa.js | ||
./plugins/<plugin-name>/langs/fi.js | ||
./plugins/<plugin-name>/langs/fr_FR.js | ||
./plugins/<plugin-name>/langs/he_IL.js | ||
./plugins/<plugin-name>/langs/hi.js | ||
./plugins/<plugin-name>/langs/hr.js | ||
./plugins/<plugin-name>/langs/hu_HU.js | ||
./plugins/<plugin-name>/langs/id.js | ||
./plugins/<plugin-name>/langs/it.js | ||
./plugins/<plugin-name>/langs/ja.js | ||
./plugins/<plugin-name>/langs/kk.js | ||
./plugins/<plugin-name>/langs/ko_KR.js | ||
./plugins/<plugin-name>/langs/ms.js | ||
./plugins/<plugin-name>/langs/nb_NO.js | ||
./plugins/<plugin-name>/langs/nl.js | ||
./plugins/<plugin-name>/langs/pl.js | ||
./plugins/<plugin-name>/langs/pt_BR.js | ||
./plugins/<plugin-name>/langs/pt_PT.js | ||
./plugins/<plugin-name>/langs/ro.js | ||
./plugins/<plugin-name>/langs/ru.js | ||
./plugins/<plugin-name>/langs/sk.js | ||
./plugins/<plugin-name>/langs/sl_SI.js | ||
./plugins/<plugin-name>/langs/sv_SE.js | ||
./plugins/<plugin-name>/langs/th_TH.js | ||
./plugins/<plugin-name>/langs/tr.js | ||
./plugins/<plugin-name>/langs/uk.js | ||
./plugins/<plugin-name>/langs/vi.js | ||
./plugins/<plugin-name>/langs/zh_CN.js | ||
./plugins/<plugin-name>/langs/zh_TW.js | ||
---- |
2 changes: 1 addition & 1 deletion
2
modules/ROOT/partials/module-loading/bundling-plugins-that-cant-bundle.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 11 additions & 41 deletions
52
modules/ROOT/partials/plugin-files/plugin-file-list-a11ychecker.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,12 @@ | ||
.... | ||
./plugins/a11ychecker/css/annotations.css | ||
./plugins/a11ychecker/langs/ar.js | ||
./plugins/a11ychecker/langs/bg_BG.js | ||
./plugins/a11ychecker/langs/ca.js | ||
./plugins/a11ychecker/langs/cs.js | ||
./plugins/a11ychecker/langs/da.js | ||
./plugins/a11ychecker/langs/de.js | ||
./plugins/a11ychecker/langs/el.js | ||
./plugins/a11ychecker/langs/es.js | ||
./plugins/a11ychecker/langs/eu.js | ||
./plugins/a11ychecker/langs/fa.js | ||
./plugins/a11ychecker/langs/fi.js | ||
./plugins/a11ychecker/langs/fr_FR.js | ||
./plugins/a11ychecker/langs/he_IL.js | ||
./plugins/a11ychecker/langs/hi.js | ||
./plugins/a11ychecker/langs/hr.js | ||
./plugins/a11ychecker/langs/hu_HU.js | ||
./plugins/a11ychecker/langs/id.js | ||
./plugins/a11ychecker/langs/it.js | ||
./plugins/a11ychecker/langs/ja.js | ||
./plugins/a11ychecker/langs/kk.js | ||
./plugins/a11ychecker/langs/ko_KR.js | ||
./plugins/a11ychecker/langs/ms.js | ||
./plugins/a11ychecker/langs/nb_NO.js | ||
./plugins/a11ychecker/langs/nl.js | ||
./plugins/a11ychecker/langs/pl.js | ||
./plugins/a11ychecker/langs/pt_BR.js | ||
./plugins/a11ychecker/langs/pt_PT.js | ||
./plugins/a11ychecker/langs/ro.js | ||
./plugins/a11ychecker/langs/ru.js | ||
./plugins/a11ychecker/langs/sk.js | ||
./plugins/a11ychecker/langs/sl_SI.js | ||
./plugins/a11ychecker/langs/sv_SE.js | ||
./plugins/a11ychecker/langs/th_TH.js | ||
./plugins/a11ychecker/langs/tr.js | ||
./plugins/a11ychecker/langs/uk.js | ||
./plugins/a11ychecker/langs/vi.js | ||
./plugins/a11ychecker/langs/zh_CN.js | ||
./plugins/a11ychecker/langs/zh_TW.js | ||
.Base js file. | ||
[source, js] | ||
---- | ||
./plugins/a11ychecker/plugin.js | ||
.... | ||
---- | ||
|
||
.css or bundled css | ||
[source, js] | ||
---- | ||
./plugins/a11ychecker/css/annotations.css // or | ||
./plugins/a11ychecker/css/annotations.js // bundling requires v6.8.0 or later. | ||
---- |
21 changes: 17 additions & 4 deletions
21
modules/ROOT/partials/plugin-files/plugin-file-list-advcode.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
.... | ||
./plugins/advcode/codemirror.min.css | ||
.Base js file | ||
[source, js] | ||
---- | ||
./plugins/advcode/plugin.js | ||
---- | ||
|
||
.css or bundled css | ||
[source, js] | ||
---- | ||
./plugins/advcode/codemirror.min.css //or | ||
./plugins/advcode/codemirror_css.js // bundling requires v6.8.0 or later. | ||
---- | ||
|
||
.other js files | ||
[source, js] | ||
---- | ||
./plugins/advcode/codemirror.min.js | ||
./plugins/advcode/customeditor.js | ||
./plugins/advcode/plugin.js | ||
.... | ||
---- |
6 changes: 4 additions & 2 deletions
6
modules/ROOT/partials/plugin-files/plugin-file-list-advlist.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.... | ||
.Base js file | ||
[source, js] | ||
---- | ||
./plugins/advlist/plugin.js | ||
.... | ||
---- |
44 changes: 4 additions & 40 deletions
44
modules/ROOT/partials/plugin-files/plugin-file-list-advtable.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,5 @@ | ||
.... | ||
./plugins/advtable/langs/ar.js | ||
./plugins/advtable/langs/bg_BG.js | ||
./plugins/advtable/langs/ca.js | ||
./plugins/advtable/langs/cs.js | ||
./plugins/advtable/langs/da.js | ||
./plugins/advtable/langs/de.js | ||
./plugins/advtable/langs/el.js | ||
./plugins/advtable/langs/es.js | ||
./plugins/advtable/langs/eu.js | ||
./plugins/advtable/langs/fa.js | ||
./plugins/advtable/langs/fi.js | ||
./plugins/advtable/langs/fr_FR.js | ||
./plugins/advtable/langs/he_IL.js | ||
./plugins/advtable/langs/hi.js | ||
./plugins/advtable/langs/hr.js | ||
./plugins/advtable/langs/hu_HU.js | ||
./plugins/advtable/langs/id.js | ||
./plugins/advtable/langs/it.js | ||
./plugins/advtable/langs/ja.js | ||
./plugins/advtable/langs/kk.js | ||
./plugins/advtable/langs/ko_KR.js | ||
./plugins/advtable/langs/ms.js | ||
./plugins/advtable/langs/nb_NO.js | ||
./plugins/advtable/langs/nl.js | ||
./plugins/advtable/langs/pl.js | ||
./plugins/advtable/langs/pt_BR.js | ||
./plugins/advtable/langs/pt_PT.js | ||
./plugins/advtable/langs/ro.js | ||
./plugins/advtable/langs/ru.js | ||
./plugins/advtable/langs/sk.js | ||
./plugins/advtable/langs/sl_SI.js | ||
./plugins/advtable/langs/sv_SE.js | ||
./plugins/advtable/langs/th_TH.js | ||
./plugins/advtable/langs/tr.js | ||
./plugins/advtable/langs/uk.js | ||
./plugins/advtable/langs/vi.js | ||
./plugins/advtable/langs/zh_CN.js | ||
./plugins/advtable/langs/zh_TW.js | ||
.Base js file | ||
[source, js] | ||
---- | ||
./plugins/advtable/plugin.js | ||
.... | ||
---- |
6 changes: 4 additions & 2 deletions
6
modules/ROOT/partials/plugin-files/plugin-file-list-anchor.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.... | ||
.Base js file | ||
[source, js] | ||
---- | ||
./plugins/anchor/plugin.js | ||
.... | ||
---- |
44 changes: 4 additions & 40 deletions
44
modules/ROOT/partials/plugin-files/plugin-file-list-autocorrect.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,5 @@ | ||
.... | ||
./plugins/autocorrect/langs/ar.js | ||
./plugins/autocorrect/langs/bg_BG.js | ||
./plugins/autocorrect/langs/ca.js | ||
./plugins/autocorrect/langs/cs.js | ||
./plugins/autocorrect/langs/da.js | ||
./plugins/autocorrect/langs/de.js | ||
./plugins/autocorrect/langs/el.js | ||
./plugins/autocorrect/langs/es.js | ||
./plugins/autocorrect/langs/eu.js | ||
./plugins/autocorrect/langs/fa.js | ||
./plugins/autocorrect/langs/fi.js | ||
./plugins/autocorrect/langs/fr_FR.js | ||
./plugins/autocorrect/langs/he_IL.js | ||
./plugins/autocorrect/langs/hi.js | ||
./plugins/autocorrect/langs/hr.js | ||
./plugins/autocorrect/langs/hu_HU.js | ||
./plugins/autocorrect/langs/id.js | ||
./plugins/autocorrect/langs/it.js | ||
./plugins/autocorrect/langs/ja.js | ||
./plugins/autocorrect/langs/kk.js | ||
./plugins/autocorrect/langs/ko_KR.js | ||
./plugins/autocorrect/langs/ms.js | ||
./plugins/autocorrect/langs/nb_NO.js | ||
./plugins/autocorrect/langs/nl.js | ||
./plugins/autocorrect/langs/pl.js | ||
./plugins/autocorrect/langs/pt_BR.js | ||
./plugins/autocorrect/langs/pt_PT.js | ||
./plugins/autocorrect/langs/ro.js | ||
./plugins/autocorrect/langs/ru.js | ||
./plugins/autocorrect/langs/sk.js | ||
./plugins/autocorrect/langs/sl_SI.js | ||
./plugins/autocorrect/langs/sv_SE.js | ||
./plugins/autocorrect/langs/th_TH.js | ||
./plugins/autocorrect/langs/tr.js | ||
./plugins/autocorrect/langs/uk.js | ||
./plugins/autocorrect/langs/vi.js | ||
./plugins/autocorrect/langs/zh_CN.js | ||
./plugins/autocorrect/langs/zh_TW.js | ||
.Base js file | ||
[source, js] | ||
---- | ||
./plugins/autocorrect/plugin.js | ||
.... | ||
---- |
6 changes: 4 additions & 2 deletions
6
modules/ROOT/partials/plugin-files/plugin-file-list-autolink.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.... | ||
.Base js file | ||
[source, js] | ||
---- | ||
./plugins/autolink/plugin.js | ||
.... | ||
---- |
6 changes: 4 additions & 2 deletions
6
modules/ROOT/partials/plugin-files/plugin-file-list-autoresize.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.... | ||
.Base js file | ||
[source, js] | ||
---- | ||
./plugins/autoresize/plugin.js | ||
.... | ||
---- |
6 changes: 4 additions & 2 deletions
6
modules/ROOT/partials/plugin-files/plugin-file-list-autosave.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.... | ||
.Base js file | ||
[source, js] | ||
---- | ||
./plugins/autosave/plugin.js | ||
.... | ||
---- |
Oops, something went wrong.