Skip to content

Commit 0623f5d

Browse files
authored
Merge pull request #3036 from tinymce/staging/docs-6
DOC-2233: Merge `staging/docs-6` into `release/docs-6` for latest build site.
2 parents 5b9086f + 0e7e969 commit 0623f5d

File tree

10 files changed

+45
-14
lines changed

10 files changed

+45
-14
lines changed

-scripts/generate-site.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
PLAYBOOK="$1"
4+
5+
6+
BUILD_DIR="build"
7+
SITE_DIR="$BUILD_DIR/site/tinymce"
8+
9+
SOURCE_VERSION="latest"
10+
SOURCE_DIR="$SITE_DIR/$SOURCE_VERSION/"
11+
DEST_VERSION=6
12+
DEST_DIR="$SITE_DIR/$DEST_VERSION/"
13+
14+
echo -e "\nRemoving existing $SITE_DIR directory."
15+
rm -rf "$BUILD_DIR"
16+
17+
echo -e "\nGenerating antora documentation."
18+
antora "$PLAYBOOK"
19+
20+
echo -e "\nCopying all $SOURCE_VERSION content to $DEST_VERSION directory."
21+
mkdir "$DEST_DIR"
22+
23+
cp -a "$SOURCE_DIR." "$DEST_DIR"
24+
25+
echo "$DEST_VERSION site now in sync with $SOURCE_VERSION."

.github/workflows/feature_6_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: yarn build
3535

3636
- name: (Feature - Docs 6) Build Website
37-
run: yarn antora ./antora-playbook-dev.yml
37+
run: yarn generate-site ./antora-playbook-dev.yml
3838

3939
- name: (deploy) Prepare for branch deployments
4040
shell: bash

.github/workflows/release_6_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: yarn build
3434

3535
- name: (Release - Docs 6) Build Website
36-
run: yarn antora ./antora-playbook-prod.yml
36+
run: yarn generate-site ./antora-playbook-prod.yml
3737

3838
- name: (Release - Docs 6) Rename sitemap.xml (Temporary solution - Amit)
3939
shell: bash

.github/workflows/staging_6_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: yarn build
3434

3535
- name: (Staging - Docs 6) Build Website
36-
run: yarn antora ./antora-playbook-staging.yml
36+
run: yarn generate-site ./antora-playbook-staging.yml
3737

3838
- name: (Staging - Docs 6) Rename sitemap.xml (Temporary solution - Amit)
3939
shell: bash

antora.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: tinymce
22
title: TinyMCE Documentation
3-
version: '6'
3+
version: 'latest'
4+
display_version: '6'
45
asciidoc:
56
attributes:
67
# anchor configuration (the @ allows it to be overridden if required)
@@ -18,7 +19,7 @@ asciidoc:
1819
# product variables
1920
productname: TinyMCE
2021
productmajorversion: 6
21-
productminorversion: '6.6'
22+
productminorversion: '6.8'
2223
##### product name in codeblock
2324
prodnamecode: tinymce
2425
#### more names

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/
66

77
### Unreleased
88

9+
### 2023-12-19
10+
11+
- DOC-2220: add generation of `latest` and `6` documentation in parallel.
12+
913
### 2023-12-13
1014

1115
- DOC-2225: added `6.8.2-release-notes.adoc` to project; updated `changelog.adoc`, `nav.adoc` and `release-notes.adoc` for the TinyMCE 6.8.2 release.

modules/ROOT/pages/6.4.1-release-notes.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ As a result the when the instance occurs where **no <string> match** is triggere
598598
=== Color picker on toolbar would not update when changing forecolor or backcolor from menu
599599
//#TINY-9439
600600

601-
In {productname} 6.3, when the https://www.tiny.cloud/docs/tinymce/6/6.3-release-notes/#new-color_map_foreground-and-color_map_background-options-store-custom-colors-selected-using-the-text-color-and-background-color-menus[new color map] was introduced, a regression was found that affected the UI for *Color Swatch*.
601+
In {productname} 6.3, when the xref:6.3-release-notes.adoc#new-color_map_foreground-and-color_map_background-options-store-custom-colors-selected-using-the-text-color-and-background-color-menus[new color map] was introduced, a regression was found that affected the UI for *Color Swatch*.
602602

603603
The issue occurred when a user would select a `forecolor` or `backcolor` via the `*Formats*` drop down menu, the color displayed on the color swatch toolbar buttons would not reflect the selected `forecolor` or `backcolor` respectively.
604604

@@ -623,7 +623,7 @@ In {productname} 6.4.1, changes were made to prevent descendants of an element w
623623
=== Checkmark did not show in menu color swatches
624624
//#TINY-9395
625625

626-
Previous versions of {productname} the known issue, (_https://www.tiny.cloud/docs/tinymce/6/6.3-release-notes/#checkmark-over-the-current-background-color-is-not-displayed-when-inline-formatting-is-applied-in-a-certain-order[checkmark-over-the-current-background-color-is-not-displayed-when-inline-formatting-is-applied-in-a-certain-order]_) was identified. As a consequence, when text was formatted in the following order, the *checkmark* over the currently active background color would not display in the Background color swatch menu:
626+
Previous versions of {productname} the known issue, xref:6.3-release-notes.adoc#checkmark-over-the-current-background-color-is-not-displayed-when-inline-formatting-is-applied-in-a-certain-order[_checkmark over the current background color is not displayed when inline formatting is applied in a certain order_] was identified. As a consequence, when text was formatted in the following order, the *checkmark* over the currently active background color would not display in the Background color swatch menu:
627627

628628
. When the user applied inline formatting, such as *bold* or _Italic_.
629629
. After applying a foreground(text) color.

modules/ROOT/pages/6.7.3-release-notes.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ include::partial$misc/admon-releasenotes-for-stable.adoc[]
2323

2424
A https://researchgate.net/publication/266654651_mXSS_attacks_Attacking_well-secured_web-applications_by_using_innerHTML_mutations[mutation cross-site scripting] (mXSS) vulnerability was discovered in {productname}’s core undo/redo functionality and other APIs and plugins. Text nodes within specific parents are not escaped upon serialization according to the https://html.spec.whatwg.org/multipage/parsing.html#serialising-html-fragments[HTML standard]. If such text nodes contain a special character reserved as an internal marker, they can be combined with other HTML patterns to form malicious snippets. These snippets pass the initial sanitization layer when the content is parsed into the editor body, but can trigger XSS when the special internal marker is removed from the content and re-parsed. Such mutations occur when serialized HTML content is processed before being stored in the undo stack, or when the following APIs and plugins are used:
2525

26-
* https://tiny.cloud/docs/tinymce/6/apis/tinymce.editor/#getContent[tinymce.Editor.getContent({ format: 'raw' })]
27-
* https://tiny.cloud/docs/tinymce/6/apis/tinymce.editor/#resetContent[tinymce.Editor.resetContent()]
28-
* https://tiny.cloud/docs/tinymce/6/autosave/[Autosave Plugin]
26+
* xref:apis/tinymce.editor.adoc#getContent[tinymce.Editor.getContent({ format: 'raw' })]
27+
* xref:apis/tinymce.editor.adoc#resetContent[tinymce.Editor.resetContent()]
28+
* xref:autosave.adoc[Autosave Plugin]
2929

3030
This vulnerability has been patched in {productname} 6.7.3 by:
3131

modules/ROOT/pages/6.8.1-release-notes.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The {productname} 6.8.1 release includes an accompanying release of the **Advanc
2929

3030
**Advanced Templates** 1.4.0 includes the following improvement and fix.
3131

32-
==== New `{{mce-clipboard}}` marker as a placeholder within template content, indicating the location where clipboard content will be inserted
32+
==== New `{\{mce-clipboard\}}` marker as a placeholder within template content, indicating the location where clipboard content will be inserted
3333
// #TINY-9974
3434
**Advanced Template** 1.4.0 introduces a new feature that allows templates to now include special markers, denoted as `+{{mce-clipboard}}+`. These markers serve as placeholders that indicate where clipboard content should be inserted once the template is added to the editor's content.
3535

@@ -61,7 +61,7 @@ As a result, when a user inserts a template containing the `+{{mce-clipboard}}+`
6161

6262
NOTE: when the host browser is **FireFox**, the user will be prompted with a notification error, as it currently does not support clipboard reading.
6363

64-
==== The functionality of the `{{mce-cursor}}` marker feature was broken after the upgrade to {productname} 6.7.3
64+
==== The functionality of the `{\{mce-cursor\}}` marker feature was broken after the upgrade to {productname} 6.7.3
6565
// #TINY-10367
6666
Security patch for {productname} 6.7.3, made changes to **ZWNBSP** characters so they are now removed from any content passed via the `insertContent` API. **ZWNBSP** characters were used to add padding to the marker to avoid it cleaning out the empty content.
6767

@@ -540,7 +540,7 @@ As a result, the `width` of the buttons now display correctly.
540540
// #TINY-10174
541541
In earlier versions of {productname}, collection items set in a xref:dialog-components.adoc#collection[collection dialog component] would not display any icon as set in the `+icon+` property, instead only displaying the `+string+` itself.
542542

543-
In {productname} 6.8.1, dialog collection items will now use any specified `+icon+` from the xref:icons.adoc#icons[icon pack], with the `+string+` itself used in the case where no such icon exists. This is the current behaviour, as in most uses of dialog collections in {productname}, the `+icon+` property is set as an individual character, such as in the xref:emoticons.adoc[Emoticons] and xref:charmap.adoc[Charmap] plugins.
543+
In {productname} 6.8.1, dialog collection items will now use any specified `+icon+` from the xref:editor-icons.adoc#icons[icon pack], with the `+string+` itself used in the case where no such icon exists. This is the current behaviour, as in most uses of dialog collections in {productname}, the `+icon+` property is set as an individual character, such as in the xref:emoticons.adoc[Emoticons] and xref:charmap.adoc[Charmap] plugins.
544544

545545
For information on the **Dialog layout components for collections** plugin see xref:dialog-components.adoc#collection[dialog components].
546546

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
},
99
"homepage": "https://www.tiny.cloud/docs/",
1010
"scripts": {
11-
"nodemon-dev": "nodemon --exec antora ./antora-playbook-dev.yml",
1211
"build": "./-scripts/api-reference.sh",
1312
"build-local-ref": "./-scripts/api-reference-local.sh",
13+
"generate-site": "./-scripts/generate-site.sh",
14+
"nodemon-dev": "nodemon --exec yarn generate-site ./antora-playbook-dev.yml",
1415
"server": "http-server build/site/ --port 4000",
1516
"serve": "npm-run-all -p nodemon-dev server"
1617
},

0 commit comments

Comments
 (0)