Skip to content

Commit f0137ec

Browse files
committed
Introduce |cakeversion| substitution
1 parent 8ad713d commit f0137ec

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ end_of_line = crlf
1616
[*.yml]
1717
indent_size = 2
1818

19+
[*.js]
20+
indent_size = 2
21+
1922
[Makefile]
2023
indent_style = tab
2124

config.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export default {
2727
hostname: "https://book.cakephp.org/5.x/",
2828
},
2929
themeConfig: {
30+
vars: {
31+
phpversion: '8.5',
32+
minphpversion: '8.2'
33+
},
3034
socialLinks: [
3135
{ icon: "github", link: "https://github.com/cakephp/cakephp" },
3236
],
@@ -42,9 +46,10 @@ export default {
4246
{ ...versions },
4347
],
4448
},
45-
phpVersions: {
46-
phpversion: '8.5',
47-
minphpversion: '8.2'
49+
substitutions: {
50+
'|phpversion|': { value: '8.5', format: 'bold' },
51+
'|minphpversion|': { value: '8.2', format: 'italic' },
52+
'|cakeversion|': '5.3.0',
4853
},
4954
locales: {
5055
root: {

docs/en/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ Modern web server with automatic HTTPS. FrankenPHP extends Caddy with a built-in
368368

369369
::: code-group
370370

371-
```caddyfile [Caddy + PHP-FPM]
371+
```text [Caddy + PHP-FPM]
372372
myapp.local {
373373
root * /var/www/myapp/webroot
374374
php_fastcgi unix//var/run/php/php8.2-fpm.sock
@@ -406,7 +406,7 @@ chmod +x frankenphp
406406
./frankenphp php-server --root /var/www/myapp/webroot
407407
```
408408

409-
```caddyfile [FrankenPHP Caddyfile]
409+
```text [FrankenPHP Caddyfile]
410410
# Caddyfile in your project root
411411
{
412412
frankenphp

0 commit comments

Comments
 (0)