Skip to content

Commit c449ddb

Browse files
author
Farzad Hayatbakhsh
committed
DOC-2583: Farzad/Lewis structural improvements
1 parent 8c9daab commit c449ddb

File tree

6 files changed

+29
-29
lines changed

6 files changed

+29
-29
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ include::partial$auth/document-converters/php/intro-and-prerequisites.adoc[]
99

1010
include::partial$auth/document-converters/php/initial-project-setup.adoc[]
1111

12-
. Inside the `public` folder where you created the `index.html` file add the HTML setup code (refer to the *Setting up {productname} HTML* section).
13-
1412
== Setup
1513

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

18-
. In the root directory, copy and paste the server setup code into the `jwt.php` file.
16+
include::partial$auth/document-converters/jwt-setup-document-converters.adoc[leveloffset=+2]
1917

2018
include::partial$auth/document-converters/php/server-setup-php.adoc[]
2119

22-
==== Web Page Setup (index.html)
20+
=== Web Page Setup (index.html)
21+
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-with-php.adoc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,16 @@ include::partial$auth/document-converters/php/intro-and-prerequisites.adoc[]
99

1010
include::partial$auth/document-converters/php/initial-project-setup.adoc[]
1111

12-
13-
. Inside the `public` folder where you created the `index.html` file add the HTML setup code (refer to the *Setting up {productname} HTML* section).
14-
1512
== Setup
1613

17-
include::partial$auth/document-converters/jwt-setup-document-converters.adoc[leveloffset=+1]
18-
19-
. In the root directory, copy and paste the server setup code into the `jwt.php` file.
14+
include::partial$auth/document-converters/jwt-setup-document-converters.adoc[leveloffset=+2]
2015

2116
include::partial$auth/document-converters/php/server-setup-php.adoc[]
2217

2318
==== Web Page Setup (index.html)
2419

20+
Inside the `public` folder where you created the `index.html` file add the HTML setup code:
21+
2522
[source,html]
2623
----
2724
<!DOCTYPE html>

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,16 @@ include::partial$auth/document-converters/php/intro-and-prerequisites.adoc[]
99

1010
include::partial$auth/document-converters/php/initial-project-setup.adoc[]
1111

12-
. Inside the `public` folder where you created the `index.html` file add the HTML setup code (refer to the *Setting up {productname} HTML* section).
13-
1412
== Setup
1513

16-
include::partial$auth/document-converters/jwt-setup-document-converters.adoc[leveloffset=+1]
17-
18-
. In the root directory, copy and paste the server setup code into the `jwt.php` file.
14+
include::partial$auth/document-converters/jwt-setup-document-converters.adoc[leveloffset=+2]
1915

2016
include::partial$auth/document-converters/php/server-setup-php.adoc[]
2117

2218
==== Web Page Setup (index.html)
2319

20+
Inside the `public` folder where you created the `index.html` file add the HTML setup code:
21+
2422
[source,html]
2523
----
2624
<!DOCTYPE html>

modules/ROOT/partials/auth/document-converters/php/initial-project-setup.adoc

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
== Update PHP php.ini Files
1+
== Update PHP Configuration File
22

3-
Update files inside the downloaded php package:
3+
Use the following command to locate the PHP configuration file:
44

5-
* php.ini
6-
* php.ini-development
7-
* php.ini-production
5+
[source,bash]
6+
----
7+
php --ini
8+
----
89

9-
Ensure the following lines are uncommented:
10+
Open the configuration file in a text editor and ensure the following settings are enabled:
1011

11-
[source, bash]
12+
[source,ini]
1213
----
1314
extension=openssl
14-
extension_dir={Depends on your development environment}
15+
extension_dir='ext'
1516
----
1617

18+
The path to the extension directory may vary depending on your system.
19+
1720
== Quick Start Guide
1821

1922
=== Project Setup
@@ -42,7 +45,7 @@ Your project should look like this:
4245
----
4346
/tinymce-app
4447
index.html (TinyMCE webpage)
45-
jwt.php (Server code)
48+
jwt.php (Server code)
4649
composer.json
4750
composer.lock
4851
vendor

modules/ROOT/partials/auth/document-converters/php/intro-and-prerequisites.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ This guide is designed for developers new to JWT authentication and {productname
2121

2222
Before starting, ensure you have:
2323

24-
* PHP installed on your computer
25-
* OpenSSL installed on your computer
26-
* Composer installed on your computer
24+
* PHP installed on your computer (to check, run `php -v` in your terminal)
25+
* OpenSSL installed on your computer (to check, run `openssl version` in your terminal)
26+
* Composer installed on your computer (to check, run `composer -v` in your terminal)
2727
* A {productname} API key (get one from link:https://www.tiny.cloud/signup[TinyMCE's website])
2828
* Basic familiarity with the command line
2929

modules/ROOT/partials/auth/document-converters/php/server-setup-php.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
==== Server Setup (jwt.php)
1+
=== Server Setup (jwt.php)
2+
3+
In the root directory, copy and paste the server setup code into the `jwt.php` file:
24

35
[source,php]
46
----

0 commit comments

Comments
 (0)