Skip to content

Commit 469cf4d

Browse files
committed
DOC-2394: Publish antora 3 docs
1 parent 03eaf65 commit 469cf4d

File tree

54 files changed

+3386
-1033
lines changed

Some content is hidden

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

54 files changed

+3386
-1033
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// *New configuration options in the TinyMCE core*
2+
//
3+
// Configuration options are generally added to the documentation as
4+
// part of documenting a new plugin.
5+
//
6+
// Occasionally, however, a new configuration option is added to the
7+
// TinyMCE core.
8+
//
9+
// In such a case, a new partial file
10+
//
11+
// <configuration_option>.adoc
12+
//
13+
// (containing the configuration option documentation) is added to
14+
//
15+
// /modules/ROOT/partials/configuration/
16+
//
17+
//
18+
//
19+
//
20+
//
21+
// *Where the option appears in the docs*
22+
//
23+
// The include statement that places the partial file into the docs
24+
// proper is added to one of four extant files:
25+
//
26+
// 1. /modules/ROOT/pages/content-appearance.adoc
27+
// 2. /modules/ROOT/pages/content-behavior-options.adoc
28+
// 3. /modules/ROOT/pages/content-filtering.adoc
29+
// 4. /modules/ROOT/pages/content-formatting.adoc
30+
//
31+
// Which of these four depends on the configuration option’s properties.
32+
//
33+
// This is an editorial/engineering decision.
34+
//
35+
// With the decision made
36+
//
37+
// 1. Replace <configuration_option> with the option’s name in the
38+
// include:: statement, below
39+
// 2. Copy the edited include:: statement.
40+
// 3. Paste the statement into the chosen file in alphabetical order
41+
// by <configuration_option>.
42+
43+
include::partial$configuration/<configuration_option>.adoc[]
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
[[<configuration_option>]]
2+
== `<configuration_option>`
3+
4+
// Replace all instances of <configuration_option> with the
5+
// configuration option name then remove this comment.
6+
7+
// Add explanatory material as per the comment block below then remove
8+
// the block and this comment.
9+
10+
////
11+
What does the option do?
12+
Why use it?
13+
When use it?
14+
What values can it use?
15+
What do these values do?
16+
Are there risks?
17+
- Explain without using ‘risk’ or similar words.
18+
- Use NOTE or IMPORTANT admonitions if helpful.
19+
- For longer or more complicated scenarios, use the limitations section below.
20+
////
21+
22+
*Type:* `+String+`, `+Boolean+`, `+Number+`, `+Function+`, `+Object+`, `+Array+`, or `+Regexp+`
23+
24+
// Remove the *Possible values* line if there is no discrete set of possible values.
25+
*Possible values:* `'string1'`, `'string2'`, `false`
26+
27+
*Default value:* `false`, `1`, `'string1'`
28+
29+
=== Example: using `<configuration_option>`
30+
31+
// Add a working and tested configuration.
32+
[source,js]
33+
----
34+
tinymce.init({
35+
selector: 'textarea', // change this value according to your html
36+
<configuration_option>: '<value>'
37+
});
38+
----
39+
40+
// Add a working and tested configuration (edit as required)
41+
// or remove if not applicable.
42+
=== Example: disabling the <feature>
43+
44+
To disable <feature>, set `<configuration_option>` to `false`.
45+
46+
[source,js]
47+
----
48+
tinymce.init({
49+
selector: 'textarea', // change this value according to your HTML
50+
<configuration_option>: 'false'
51+
});
52+
----
53+
54+
// Remove if not applicable.
55+
// Edit the sub-head to singular or plural as required.
56+
=== Limitation(s) of the `<configuration_option>` option
57+
58+
The `<configuration_option>` option has the following limitations.
59+
60+
// Add explanatory material as per the comment block below then remove
61+
// the block and this comment.
62+
63+
////
64+
Known limitations.
65+
Complicated scenarios.
66+
Anything that warrants a CAUTION or WARNING admonition.
67+
///
68+
69+
// Remove all comment lines and comment blocks before publishing.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<textarea id="<hyphen-delimited-descriptor>">
2+
{{logofordemoshtml}}
3+
4+
<!-- example html here -->
5+
6+
<h2>Found a bug?</h2>
7+
8+
<p>If you believe you have found a bug please create an issue on the <a href="https://github.com/tinymce/tinymce/issues">GitHub repo</a> to report it to the developers.</p>
9+
10+
<h2>Finally…</h2>
11+
12+
<p>Don’t forget to check out <a href="http://www.plupload.com" target="_blank">Plupload</a>, the upload solution featuring HTML5 upload support.</p>
13+
<p>Thanks for supporting TinyMCE. We hope it helps you and your users create great content.</p>
14+
<p>All the best from the TinyMCE team.</p>
15+
</textarea>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const content_style= `
2+
3+
// In a more typical environment this constant would be a file, style.css,
4+
// referenced in the tinymce.init configuration with the content_css option.
5+
6+
<css for the demo goes here>
7+
8+
`;
9+
10+
tinymce.init({
11+
selector: 'textarea#<hyphen-delimited-descriptor>',
12+
// below is a basic 6.x working configuration.
13+
// Do not assume it is suitable for demonstrating the plugin to be documented.
14+
height: 600,
15+
plugins: [
16+
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview',
17+
'anchor', 'searchreplace', 'visualblocks', 'code', 'fullscreen',
18+
'insertdatetime', 'media', 'table', 'help', 'wordcount'
19+
],
20+
toolbar: 'undo redo | blocks | ' +
21+
'bold italic backcolor | alignleft aligncenter ' +
22+
'alignright alignjustify | bullist numlist outdent indent | ' +
23+
'removeformat | help',
24+
content_style, // must be here if you have <css for the demo> above.
25+
newdocument_content // required — with actual material here — if your demo involves creating new documents.
26+
});
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// The location of a given `index.html` file relative to this file’s
2+
// parent directory is not pertinent to the `<img>` tags’ `src`
3+
// attribute.
4+
//
5+
// When a file, `image.png`, is placed in the `images` folder, the
6+
// `<img>` tag in a demo’s `index.html` file has the following structure:
7+
//
8+
// <img src="{{imagesdir}}/ie-<hyphen-delimited-descriptor>/image.png" alt="<alt text>">
9+
//
10+
// This file is instructional and is never included in the published
11+
// name-space.
12+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* xref:examples.adoc[Examples]
2+
** xref:examples.adoc#integration-examples[Integration examples]
3+
// Replace the boilerplate below with the file-name of the new IE example.
4+
// Also, place this new IE example into alphabetical place within the Use case examples sub-section.
5+
*** xref:uce-<hyphen-delimited-descriptor>.adoc
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
= Interactive integration example
2+
:navtitle: <descriptor>
3+
:description_short: <description-short>
4+
:description: <description>
5+
:keywords: example, demo, custom, <keyword1>, <keyword2>, <keywordn>
6+
7+
{logofordemoshtml}
8+
9+
== <descriptor>
10+
11+
This interactive example demonstrates a basic working example of {productname} being used as a <descriptor>.
12+
13+
It includes numerous plugins and configuration settings but highlights the following {productname} plugins and configuration options in particular:
14+
15+
[cols="1,1"]
16+
|===
17+
18+
a|
19+
[.lead]
20+
xref:<plugincode>.adoc[<Plugin name>]
21+
22+
<plugin descriptor pulled from <plugincode>.adoc>
23+
24+
a|
25+
[.lead]
26+
xref:<plugincode2>.adoc[<Plugin name 2>]
27+
28+
<plugin descriptor pulled from <plugincode2>.adoc>
29+
30+
a|
31+
[.lead]
32+
xref:content-behavior-options.adoc#<configuration_option>[`<configuration_option`]
33+
34+
<configuration descriptor pulled from content-behavior-options.adoc#<configuration_option>.
35+
36+
a|
37+
[.lead]
38+
xref:content-behavior-options.adoc#<configuration_option2>[`configuration_option2`]
39+
40+
<configuration descriptor pulled from content-behavior-options.adoc#<configuration_option2>.
41+
42+
a|
43+
[.lead]
44+
xref:content-behavior-options.adoc#<configuration_option3>[`configuration_option3`]
45+
46+
<configuration descriptor pulled from content-behavior-options.adoc#<configuration_option3>.
47+
48+
// Dummy table cell.
49+
// 1. Remove the inline comment markup pre-pending this
50+
// element when the number of cells in the table is
51+
// odd.
52+
// 2. Prepend the inline comment markup to this element
53+
// when the number of cells in the table is even.
54+
//a|
55+
56+
|===
57+
58+
liveDemo::<ie-hyphen-delimited-descriptor>[]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Table row for an integration example.
2+
// Place this row into the extant table in `partials/index-pages/integration-examples.adoc` in alphabetical order.
3+
4+
a|
5+
[.lead]
6+
ie-<hyphen-delimited-descriptor>.adoc[<descriptor>]
7+
8+
<One sentence integration example description.>
9+
10+
// This file is instructional and is never included in the published name-space.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
3+
This file is not normally required.
4+
5+
Sometimes, however, a plugin, or a particular feature of a plugin,
6+
requires a back-end service.
7+
8+
In these cases, creating a working demo requires setting up an
9+
emulated version of this service.
10+
11+
And `example.js` is part of this emulation.
12+
13+
`index.js` still runs the live demo.
14+
15+
But `example.js` is what is displayed in the *js* tab of the
16+
live-demo interface on the built docs site.
17+
18+
So `example.js` has to be a working equivalent to `index.js` *if*
19+
`index.js` was wired up in a standard way, to its required back-end
20+
service.
21+
22+
NB: there is one UX consequence of setting up demos to work in
23+
these cases. The *Edit on CodePen* tab does not — and cannot —
24+
present in the documentation.
25+
26+
The initial setup of these ‘inclues-an-emulated-back-end’ examples
27+
will almost certainly include significant initial input from the
28+
plugin’s developer.
29+
30+
*/
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<textarea id="<plugincode>">
2+
{{logofordemoshtml}}
3+
4+
<!-- example html here -->
5+
6+
<h2>Found a bug?</h2>
7+
8+
<p>If you believe you have found a bug please create an issue on the <a href="https://github.com/tinymce/tinymce/issues">GitHub repo</a> to report it to the developers.</p>
9+
10+
<h2>Finally…</h2>
11+
12+
<p>Don’t forget to check out <a href="http://www.plupload.com" target="_blank">Plupload</a>, the upload solution featuring HTML5 upload support.</p>
13+
<p>Thanks for supporting TinyMCE. We hope it helps you and your users create great content.</p>
14+
<p>All the best from the TinyMCE team.</p>
15+
</textarea>

0 commit comments

Comments
 (0)