Skip to content

Commit ba1b5c5

Browse files
author
Farzad Hayatbakhsh
committed
DOC2598: Clean up document converters and fix broken links
1 parent ee66416 commit ba1b5c5

20 files changed

+92
-86
lines changed

modules/ROOT/nav.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,20 +314,20 @@
314314
*** xref:exportpdf.adoc[Export to PDF]
315315
**** xref:html-to-pdf-converter-api.adoc[HTML to PDF Converter API]
316316
**** JWT Authentication
317-
***** xref:export-to-pdf-with-jwt-authentication-nodejs.adoc[NodeJS]
318-
***** xref:export-to-pdf-with-jwt-authentication-with-php.adoc[PHP]
317+
***** xref:export-to-pdf-with-jwt-authentication-nodejs.adoc[Node.js]
318+
***** xref:export-to-pdf-with-jwt-authentication-php.adoc[PHP]
319319
*** xref:exportword.adoc[Export to Word]
320320
**** xref:html-to-docx-converter-api.adoc[HTML to DOCX Converter API]
321321
**** JWT Authentication
322-
***** xref:export-to-word-with-jwt-authentication-nodejs.adoc[NodeJS]
323-
***** xref:export-to-word-with-jwt-authentication-with-php.adoc[PHP]
322+
***** xref:export-to-word-with-jwt-authentication-nodejs.adoc[Node.js]
323+
***** xref:export-to-word-with-jwt-authentication-php.adoc[PHP]
324324
*** xref:footnotes.adoc[Footnotes]
325325
*** xref:formatpainter.adoc[Format Painter]
326326
*** xref:importword.adoc[Import from Word]
327327
**** xref:docx-to-html-converter-api.adoc[DOCX to HTML Converter API]
328328
**** JWT Authentication
329-
***** xref:importword-with-jwt-authentication-nodejs.adoc[NodeJS]
330-
***** xref:import-word-with-jwt-authentication-with-php.adoc[PHP]
329+
***** xref:import-from-word-with-jwt-authentication-nodejs.adoc[Node.js]
330+
***** xref:import-from-word-with-jwt-authentication-php.adoc[PHP]
331331
*** xref:editimage.adoc[Image Editing]
332332
*** xref:uploadcare.adoc[Image Optimizer Powered by Uploadcare]
333333
*** xref:inline-css.adoc[Inline CSS]

modules/ROOT/pages/export-to-pdf-with-jwt-authentication-nodejs.adoc

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
= {pluginname} with JWT authentication (Node.js) Guide
2-
:navtitle: JWT Authentication setup for Export to PDF
3-
:description: Guide on how to setup JWT Authentication for exporting pdf files with Export to PDF
4-
:keywords: jwt, authentication, exportpdf, pdf, node.js
5-
:pluginname: Export to PDF
62
:plugincode: exportpdf
3+
:pluginname: Export to PDF
4+
:navtitle: JWT Authentication setup for {pluginname}
5+
:description: Guide on how to setup JWT Authentication for exporting pdf files with {pluginname}
6+
:keywords: jwt, authentication, exportpdf, pdf, node.js
77

88

9-
include::partial$auth/document-converters/intro-and-prerequisites.adoc[]
9+
include::partial$auth/document-converters/nodejs/intro-and-prerequisites.adoc[]
1010

11-
include::partial$auth/document-converters/initial-project-setup.adoc[]
11+
include::partial$auth/document-converters/nodejs/initial-project-setup.adoc[]
1212

1313
== Setup
1414

15-
include::partial$auth/document-converters/jwt-setup-document-converters.adoc[leveloffset=+1]
15+
=== Generate a Public/Private Key Pair
1616

17-
. In the root directory, copy and paste the server setup code into the `jwt.js` file (refer to the *Configuring the Node.js Server for JWT Token Generation* section).
17+
include::partial$auth/document-converters/jwt-setup-document-converters.adoc[leveloffset=+2]
1818

19-
include::partial$auth/document-converters/server-setup-jwt.adoc[]
19+
include::partial$auth/document-converters/nodejs/server-setup-jwt.adoc[]
2020

2121
=== Web Page (public/index.html)
2222

23+
Inside the `public` folder where you created the `index.html` file add the HTML setup code.
24+
2325
[source,html]
2426
----
2527
<!DOCTYPE html>
2628
<html>
2729
<head>
28-
<title>TinyMCE with PDF Export</title>
30+
<title>TinyMCE with Export to PDF</title>
2931
<script
3032
src="https://cdn.tiny.cloud/1/YOUR-API-KEY/tinymce/7/tinymce.min.js"
3133
referrerpolicy="origin">
@@ -62,4 +64,4 @@ include::partial$auth/document-converters/server-setup-jwt.adoc[]
6264
</html>
6365
----
6466

65-
include::partial$auth/document-converters/configuration-steps.adoc[]
67+
include::partial$auth/document-converters/nodejs/configuration-steps.adoc[]

modules/ROOT/pages/export-to-pdf-with-jwt-authentication-with-php.adoc renamed to modules/ROOT/pages/export-to-pdf-with-jwt-authentication-php.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include::partial$auth/document-converters/php/server-setup-php.adoc[]
1919

2020
=== Web Page Setup (index.html)
2121

22-
Inside the `public` folder where you created the `index.html` file add the HTML setup code:
22+
Inside the `public` folder where you created the `index.html` file add the HTML setup code.
2323

2424
[source,html]
2525
----

modules/ROOT/pages/export-to-word-with-jwt-authentication-nodejs.adoc

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
= {pluginname} with JWT authentication (Node.js) Guide
2-
:navtitle: JWT Authentication setup for Export to Word
3-
:description: Guide on how to setup JWT Authentication for exporting docx files with Export to Word
4-
:keywords: jwt, authentication, exportword, node.js
5-
:pluginname: Export to Word
62
:plugincode: exportword
3+
:pluginname: Export to Word
4+
:navtitle: JWT Authentication setup for {pluginname}
5+
:description: Guide on how to setup JWT Authentication for exporting docx (Microsoft Word) files with {pluginname}
6+
:keywords: jwt, authentication, exportword, node.js
77

88

9-
include::partial$auth/document-converters/intro-and-prerequisites.adoc[]
9+
include::partial$auth/document-converters/nodejs/intro-and-prerequisites.adoc[]
1010

11-
include::partial$auth/document-converters/initial-project-setup.adoc[]
11+
include::partial$auth/document-converters/nodejs/initial-project-setup.adoc[]
1212

1313
== Setup
1414

15-
include::partial$auth/document-converters/jwt-setup-document-converters.adoc[leveloffset=+1]
15+
=== Generate a Public/Private Key Pair
1616

17-
. In the root directory, copy and paste the server setup code into the `jwt.js` file (refer to the *Configuring the Node.js Server for JWT Token Generation* section).
17+
include::partial$auth/document-converters/jwt-setup-document-converters.adoc[leveloffset=+2]
1818

19-
include::partial$auth/document-converters/server-setup-jwt.adoc[]
19+
include::partial$auth/document-converters/nodejs/server-setup-jwt.adoc[]
2020

2121
=== Web Page (public/index.html)
2222

23+
Inside the `public` folder where you created the `index.html` file add the HTML setup code.
24+
2325
[source,html]
2426
----
2527
<!DOCTYPE html>
@@ -60,4 +62,4 @@ include::partial$auth/document-converters/server-setup-jwt.adoc[]
6062
</html>
6163
----
6264

63-
include::partial$auth/document-converters/configuration-steps.adoc[]
65+
include::partial$auth/document-converters/nodejs/configuration-steps.adoc[]

modules/ROOT/pages/export-to-word-with-jwt-authentication-with-php.adoc renamed to modules/ROOT/pages/export-to-word-with-jwt-authentication-php.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include::partial$auth/document-converters/php/server-setup-php.adoc[]
1919

2020
=== Web Page Setup (index.html)
2121

22-
Inside the `public` folder where you created the `index.html` file add the HTML setup code:
22+
Inside the `public` folder where you created the `index.html` file add the HTML setup code.
2323

2424
[source,html]
2525
----

modules/ROOT/pages/exportpdf.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
= {pluginname} plugin
2-
:navtitle: Export to PDF
3-
:description: The Export to PDF feature provides the ability to generate a PDF file directly from the editor.
4-
:description_short: Generate a PDF file directly from the editor.
5-
:keywords: plugin, exportpdf, export to pdf
6-
:pluginname: Export to PDF
72
:plugincode: exportpdf
3+
:pluginname: Export to PDF
4+
:navtitle: {pluginname}
5+
:description: The {pluginname} feature provides the ability to generate a PDF file directly from the editor.
6+
:description_short: Generate a PDF file directly from the editor.
7+
:keywords: plugin, {plugincode}, {pluginname}
88
:plugincategory: premium
99

1010

1111
include::partial$misc/admon-export-pdf-paid-addon-pricing.adoc[]
1212

1313
include::partial$misc/admon-requires-7.0v.adoc[]
1414

15-
The {pluginname} feature collects the HTML generated with the `tinymce.editor.getContent()` method and combines it with the default editor content styles along with the styles provided in the plugin configuration. The combined content and styles are then processed by the included server-side converter service, which can be either self-hosted or cloud-based. Following this processing, a PDF file is generated, which is subsequently returned to the users browser, enabling them to save it onto their disk or drive.
15+
The {pluginname} feature collects the HTML generated with the `tinymce.editor.getContent()` method and combines it with the default editor content styles along with the styles provided in the plugin configuration. The combined content and styles are then processed by the included server-side converter service, which can be either self-hosted or cloud-based. Following this processing, a PDF file is generated, which is subsequently returned to the user's browser, enabling them to save it onto their disk or drive.
1616

1717
== Interactive example
1818

@@ -36,8 +36,8 @@ tinymce.init({
3636
[IMPORTANT]
3737
When using the {pluginname} plugin with the {companyname} Cloud service, JWT authentication is required to use the service. For more information on how to set up JWT authentication with {pluginname}, see examples:
3838

39-
* xref:export-to-pdf-with-jwt-authentication-nodejs.adoc[Export to PDF with JWT authentication (Nodejs)].
40-
* xref:export-to-pdf-with-jwt-authentication-php.adoc[Export to PDF with JWT authentication (PHP)].
39+
* xref:export-to-pdf-with-jwt-authentication-nodejs.adoc[{pluginname} with JWT authentication (Node.js)]
40+
* xref:export-to-pdf-with-jwt-authentication-php.adoc[{pluginname} with JWT authentication (PHP)]
4141

4242
== Basic setup using the self-hosted service
4343

@@ -84,4 +84,4 @@ include::partial$commands/{plugincode}-cmds.adoc[]
8484

8585
== API Reference
8686

87-
> Explore the comprehensive API documentation for the {pluginname} Premium plugin at https://exportpdf.converter.tiny.cloud/docs[Export to PDF.^]
87+
> Explore the comprehensive API documentation for the {pluginname} Premium plugin at https://exportpdf.converter.tiny.cloud/docs[{pluginname} API Documentation.^]

modules/ROOT/pages/exportword.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
= {pluginname} plugin
2-
:navtitle: exportword
3-
:description: The export to Word feature lets you generate a .docx file directly from the editor.
4-
:description_short: Generate a .docx file directly from the editor.
5-
:keywords: plugin, exportword.
6-
:pluginname: Export to Word
72
:plugincode: exportword
3+
:pluginname: Export to Word
4+
:navtitle: {pluginname}
5+
:description: The {pluginname} feature lets you generate a .docx (Microsoft Word document) file directly from the editor.
6+
:description_short: Generate a .docx file directly from the editor.
7+
:keywords: plugin, {plugincode}, {pluginname}
88
:plugincategory: premium
99

1010
include::partial$misc/admon-export-word-paid-addon-pricing.adoc[]
1111

1212
include::partial$misc/admon-requires-7.0v.adoc[]
1313

14-
The export to Microsoft Word feature collects the HTML generated with the `tinymce.editor.getContent()` method and combines it with the default editor content styles along with the styles provided in the plugin configuration. The combined content and styles are then processed by the included server-side converter service, which can be either self-hosted or cloud-based. Following this processing, a Word file is generated, which is subsequently returned to the users browser, enabling them to save it in the Word format onto their disk or drive.
14+
The export to Microsoft Word feature collects the HTML generated with the `tinymce.editor.getContent()` method and combines it with the default editor content styles along with the styles provided in the plugin configuration. The combined content and styles are then processed by the included server-side converter service, which can be either self-hosted or cloud-based. Following this processing, a Word file is generated, which is subsequently returned to the user's browser, enabling them to save it in the Word format onto their disk or drive.
1515

1616
== Interactive example
1717

@@ -42,8 +42,8 @@ tinymce.init({
4242
[IMPORTANT]
4343
When using the {pluginname} plugin with the {companyname} Cloud service, JWT authentication is required to use the service. For more information on how to set up JWT authentication with {pluginname}, see examples:
4444

45-
* xref:export-to-word-with-jwt-authentication-nodejs.adoc[Export to Word with JWT authentication].
46-
* xref:export-to-word-with-jwt-authentication-php.adoc[Export to Word with JWT authentication].
45+
* xref:export-to-word-with-jwt-authentication-nodejs.adoc[{pluginname} with JWT authentication (Node.js)]
46+
* xref:export-to-word-with-jwt-authentication-php.adoc[{pluginname} with JWT authentication (PHP)]
4747

4848
== Basic setup using the self-hosted service
4949

@@ -85,4 +85,4 @@ include::partial$commands/exportword-cmds.adoc[][leveloffset=+1]
8585

8686
== API Reference
8787

88-
> Explore the comprehensive API documentation for the {pluginname} Premium plugin at link:https://exportdocx.converter.tiny.cloud/v2/convert/docs#section/Export-to-Word[Export to Word.^]
88+
> Explore the comprehensive API documentation for the {pluginname} Premium plugin at link:https://exportdocx.converter.tiny.cloud/v2/convert/docs#section/Export-to-Word[{pluginname} API Documentation.^]

modules/ROOT/pages/importword-with-jwt-authentication-nodejs.adoc renamed to modules/ROOT/pages/import-from-word-with-jwt-authentication-nodejs.adoc

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
= {pluginname} with JWT authentication (Node.js) Guide
2-
:navtitle: JWT Authentication setup for Import from Word
3-
:description: Guide on how to setup JWT Authentication for importing docx (MS Word) files with Import from Word
4-
:keywords: jwt, authentication, importword, node.js
5-
:pluginname: Import from Word
62
:plugincode: importword
3+
:pluginname: Import from Word
4+
:navtitle: JWT Authentication setup for {pluginname}
5+
:description: Guide on how to setup JWT Authentication for importing docx (Microsoft Word) files with {pluginname}
6+
:keywords: jwt, authentication, importword, node.js
77

88

9-
include::partial$auth/document-converters/intro-and-prerequisites.adoc[]
9+
include::partial$auth/document-converters/nodejs/intro-and-prerequisites.adoc[]
1010

11-
include::partial$auth/document-converters/initial-project-setup.adoc[]
11+
include::partial$auth/document-converters/nodejs/initial-project-setup.adoc[]
1212

1313
== Setup
1414

15-
include::partial$auth/document-converters/jwt-setup-document-converters.adoc[leveloffset=+1]
15+
=== Generate a Public/Private Key Pair
1616

17-
. In the root directory, copy and paste the server setup code into the `jwt.js` file (refer to the *Server Setup (jwt.js)* section).
17+
include::partial$auth/document-converters/jwt-setup-document-converters.adoc[leveloffset=+2]
1818

19-
include::partial$auth/document-converters/server-setup-jwt.adoc[]
19+
include::partial$auth/document-converters/nodejs/server-setup-jwt.adoc[]
2020

2121
=== Web Page (public/index.html)
2222

23+
Inside the `public` folder where you created the `index.html` file add the HTML setup code.
24+
2325
[source,html]
2426
----
2527
<!DOCTYPE html>
@@ -62,4 +64,4 @@ include::partial$auth/document-converters/server-setup-jwt.adoc[]
6264
</html>
6365
----
6466

65-
include::partial$auth/document-converters/configuration-steps.adoc[]
67+
include::partial$auth/document-converters/nodejs/configuration-steps.adoc[]

modules/ROOT/pages/import-word-with-jwt-authentication-with-php.adoc renamed to modules/ROOT/pages/import-from-word-with-jwt-authentication-php.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include::partial$auth/document-converters/php/server-setup-php.adoc[]
1919

2020
=== Web Page Setup (index.html)
2121

22-
Inside the `public` folder where you created the `index.html` file add the HTML setup code:
22+
Inside the `public` folder where you created the `index.html` file add the HTML setup code.
2323

2424
[source,html]
2525
----

modules/ROOT/pages/importword.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
= {pluginname} plugin
3-
:navtitle: Import from Word
4-
:description: Provides a way to import .docx (Word documents) or .dotx (Word templates) files into the editor.
5-
:description_short: Import .docx or .dotx files into the editor.
6-
:keywords: plugin, importword, import from word
7-
:pluginname: Import from Word
83
:plugincode: importword
4+
:pluginname: Import from Word
5+
:navtitle: {pluginname}
6+
:description: Provides a way to import .docx (Microsoft Word documents) or .dotx (Microsoft Word templates) files into the editor.
7+
:description_short: Import .docx or .dotx files into the editor.
8+
:keywords: plugin, {plugincode}, {pluginname}
99
:plugincategory: premium
1010

1111
include::partial$misc/admon-import-word-paid-addon-pricing.adoc[]
@@ -37,8 +37,8 @@ tinymce.init({
3737
[IMPORTANT]
3838
When using the {pluginname} plugin with the {companyname} Cloud service, JWT authentication is required to use the service. For more information on how to set up JWT authentication with {pluginname}, see examples:
3939

40-
* xref:import-to-word-with-jwt-authentication-nodejs.adoc[Import to Word with JWT authentication].
41-
* xref:import-to-word-with-jwt-authentication-php.adoc[Import to Word with JWT authentication].
40+
* xref:import-from-word-with-jwt-authentication-nodejs.adoc[{pluginname} with JWT authentication (Node.js)]
41+
* xref:import-from-word-with-jwt-authentication-php.adoc[{pluginname} with JWT authentication (PHP)]
4242

4343
== Basic setup using the self-hosted service
4444

@@ -83,4 +83,4 @@ include::partial$commands/importword-cmds.adoc[]
8383

8484
== API Reference
8585

86-
> Explore the comprehensive API documentation for the {pluginname} Premium plugin at link:https://importdocx.converter.tiny.cloud/v2/convert/docs#section/Import-from-Word[Import from Word.^]
86+
> Explore the comprehensive API documentation for the {pluginname} Premium plugin at link:https://importdocx.converter.tiny.cloud/v2/convert/docs#section/Import-from-Word[{pluginname} API Documentation.^]

0 commit comments

Comments
 (0)