From b17c9ad0fdac4983166a01f1f90e5017b90fe06c Mon Sep 17 00:00:00 2001 From: Olivier Dolbeau Date: Fri, 10 Jan 2025 10:43:00 +0100 Subject: [PATCH] Update code blocks in README --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index f16f62b4e4..359458d5f5 100644 --- a/README.md +++ b/README.md @@ -39,22 +39,22 @@ You can download a **ready-built** package from the [Downloads page on https://g You can create a new project with the latest **stable** Grav release with the following command: -``` -$ composer create-project getgrav/grav ~/webroot/grav +```bash +composer create-project getgrav/grav ~/webroot/grav ``` ### From GitHub 1. Clone the Grav repository from [https://github.com/getgrav/grav]() to a folder in the webroot of your server, e.g. `~/webroot/grav`. Launch a **terminal** or **console** and navigate to the webroot folder: - ``` - $ cd ~/webroot - $ git clone https://github.com/getgrav/grav.git + ```bash + cd ~/webroot + git clone https://github.com/getgrav/grav.git ``` 2. Install the **plugin** and **theme dependencies** by using the [Grav CLI application](https://learn.getgrav.org/advanced/grav-cli) `bin/grav`: - ``` - $ cd ~/webroot/grav - $ bin/grav install + ```bash + cd ~/webroot/grav + bin/grav install ``` Check out the [install procedures](https://learn.getgrav.org/basics/installation) for more information. @@ -63,28 +63,28 @@ Check out the [install procedures](https://learn.getgrav.org/basics/installation You can download [plugins](https://getgrav.org/downloads/plugins) or [themes](https://getgrav.org/downloads/themes) manually from the appropriate tab on the [Downloads page on https://getgrav.org](https://getgrav.org/downloads), but the preferred solution is to use the [Grav Package Manager](https://learn.getgrav.org/advanced/grav-gpm) or `GPM`: -``` -$ bin/gpm index +```bash +bin/gpm index ``` This will display all the available plugins and then you can install one or more with: -``` -$ bin/gpm install +```bash +bin/gpm install ``` # Updating To update Grav you should use the [Grav Package Manager](https://learn.getgrav.org/advanced/grav-gpm) or `GPM`: -``` -$ bin/gpm selfupgrade +```bash +bin/gpm selfupgrade ``` To update plugins and themes: -``` -$ bin/gpm update +```bash +bin/gpm update ``` ## Upgrading from older version