Skip to content

Commit 94a277a

Browse files
authored
Merge pull request #523 from datamweb/doc-fix-for-website
docs: add code block language for fix website
2 parents 84a4f31 + fd0d446 commit 94a277a

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ Usage of Shield requires the following:
5454
### Installation
5555

5656
Installation is done through Composer.
57-
58-
> composer require codeigniter4/shield
57+
```console
58+
composer require codeigniter4/shield
59+
```
5960

6061
See the [docs](docs/index.md) for more specific instructions on installation and usage recommendations.
6162

docs/install.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ These instructions assume that you have already [installed the CodeIgniter 4 app
2525
Installation is done through [Composer](https://getcomposer.org). The example assumes you have it installed globally.
2626
If you have it installed as a phar, or otherwise you will need to adjust the way you call composer itself.
2727

28-
```
29-
> composer require codeigniter4/shield
28+
```console
29+
composer require codeigniter4/shield
3030
```
3131

3232
### Troubleshooting
@@ -35,29 +35,29 @@ If you have it installed as a phar, or otherwise you will need to adjust the way
3535

3636
If you get the following error:
3737

38-
```
39-
Could not find a version of package codeigniter4/shield matching your minimum-stability (stable).
40-
Require it with an explicit version constraint allowing its desired stability.
38+
```console
39+
Could not find a version of package codeigniter4/shield matching your minimum-stability (stable).
40+
Require it with an explicit version constraint allowing its desired stability.
4141
```
4242

4343
1. Add the following to change your [minimum-stability](https://getcomposer.org/doc/articles/versions.md#minimum-stability) in your project `composer.json`:
4444

4545
```json
46-
"minimum-stability": "dev",
47-
"prefer-stable": true,
46+
"minimum-stability": "dev",
47+
"prefer-stable": true,
4848
```
4949

5050
2. Or specify an explicit version:
5151

5252
```console
53-
> composer require codeigniter4/shield:dev-develop
53+
composer require codeigniter4/shield:dev-develop
5454
```
5555

5656
The above specifies `develop` branch.
5757
See https://getcomposer.org/doc/articles/versions.md#branches
5858

5959
```console
60-
> composer require codeigniter4/shield:^1.0.0-beta
60+
composer require codeigniter4/shield:^1.0.0-beta
6161
```
6262

6363
The above specifies `v1.0.0-beta` or later and before `v2.0.0`.
@@ -70,7 +70,7 @@ If you get the following error:
7070
1. Run the following command. This command handles steps 1-5 of *Manual Setup* and runs the migrations.
7171

7272
```console
73-
> php spark shield:setup
73+
php spark shield:setup
7474
```
7575

7676
### Manual Setup
@@ -120,7 +120,7 @@ your project.
120120
5. **Migration** Run the migrations.
121121

122122
```console
123-
> php spark migrate --all
123+
php spark migrate --all
124124
```
125125

126126
#### Note: migration error

0 commit comments

Comments
 (0)