Skip to content

Commit 9364d5f

Browse files
committed
Tweak the documentation for better github rendering
1 parent a10a7cb commit 9364d5f

File tree

5 files changed

+23
-14
lines changed

5 files changed

+23
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ It works on Linux, Windows or MacOS.
1616
Requires PHP >= 7.4 (support for PHP 5 was available in version 1.x, for PHP 7.0
1717
and 7.1 in version < 2.1.0, for PHP 7.2 and 7.3 in version < 2.4.0).
1818

19-
>**Note**: This library can not be used in a web context (FPM or equivalent).
20-
Use it in your CLI scripts or in a [CRON](doc/04-cron-usage.md)
19+
> **Note**
20+
> This library can not be used in a web context (FPM or equivalent). Use it in your CLI scripts or in a [CRON](doc/04-cron-usage.md)
2121
2222
## Installation
2323

doc/01-basic-usage.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ The factory use the notifier's priority to determine the best notifier to use.
1616
For example some notifier has a low priority because they don't support some
1717
notification options. The best notifier will then be returned.
1818

19-
> **Note**: The factory now returns a NullNotifier instead of null when no
20-
> notifier is available. You then no longer have to check for null value.
19+
> **Note**
20+
> The factory now returns a NullNotifier instead of null when no notifier is
21+
> available. You then no longer have to check for null value.
2122
2223
If you really need to ensure a Notifier is available, you can use the
2324
`createOrThrowException` method. It will return the best notifier available or

doc/02-notification.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
`Notification` is the main model of JoliNotif. It contains all the options
44
that should be applied - if possible - by the notifier.
55

6-
> **Note**: Notifiers are designed to handle the options they support and
7-
> discard not supported ones gracefully without throwing any exception.
6+
> **Note**
7+
> Notifiers are designed to handle the options they support and discard not
8+
> supported ones gracefully without throwing any exception.
89
910
Currently, only three options are supported but new ones could be added later.
1011
Each option can be set via a setter on the `Notification` class.
@@ -13,8 +14,9 @@ Each option can be set via a setter on the `Notification` class.
1314

1415
The body is the main message of the notification that you want to display.
1516

16-
> **Important**: This is the only required option. Notifiers will throw an
17-
> `InvalidNotificationException` if the body is empty or null.
17+
> **Note**
18+
> This is the only required option. Notifiers will throw an`InvalidNotificationException`
19+
> if the body is empty or null.
1820
1921
## Title
2022

@@ -30,9 +32,10 @@ An icon can also be displayed inside the notification. You will need to set an
3032
$notification->setIcon(__DIR__.'/Resources/icons/success.png');
3133
```
3234

33-
> **Note**: If you use JoliNotif from a phar and add a notification icon, we
34-
> will take care to extract this icon in your system temp directory to make it
35-
> accessible from command line executable.
35+
> **Note**
36+
> If you use JoliNotif from a phar and add a notification icon, we will take
37+
> care to extract this icon in your system temp directory to make it accessible
38+
> from command line executable.
3639
3740
Not all notifiers support icon but again, you can safely add an icon to your
3841
notification since the notifier will discard it if not supported.

doc/04-cron-usage.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ cronjob:
1313
* * * * * XDG_RUNTIME_DIR=/run/user/$(id -u) php /path/to/your/script
1414
```
1515

16-
> **Note**: On some system, you may also/instead need to set DISPLAY env var
17-
> and/or to run `xhost +local:`. For more information, please have a look at
16+
> **Note**
17+
> On some system, you may also/instead need to set DISPLAY env var and/or to
18+
> run `xhost +local:`. For more information, please have a look at
1819
> [https://help.ubuntu.com/community/CronHowto#GUI_Applications](https://help.ubuntu.com/community/CronHowto#GUI_Applications)
1920
2021
## Next readings

doc/05-cli-usage.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ Install package globally:
88
$ composer global require jolicode/jolinotif
99
```
1010

11-
**Note!** Make sure to place the `~/.composer/vendor/bin` directory (or the equivalent directory for your OS) in your PATH so the transfer executable can be located by your system. Simply add this directory to your PATH in your `~/.bashrc` (or `~/.bash_profile`) like this:
11+
> **Note**
12+
> Make sure to place the `~/.composer/vendor/bin` directory (or the equivalent
13+
> directory for your OS) in your PATH so the transfer executable can be located
14+
> by your system. Simply add this directory to your PATH in your `~/.bashrc`
15+
> (or `~/.bash_profile`) like this:
1216
1317
```
1418
$ echo "export PATH=~/.composer/vendor/bin:$PATH" >> ~/.bashrc

0 commit comments

Comments
 (0)