Skip to content

Commit 9833d08

Browse files
committed
Changed highlight
1 parent ed08ccc commit 9833d08

16 files changed

+16714
-2215
lines changed

app/Docs.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace App;
44

55
use Illuminate\Support\Facades\Storage;
6-
use Illuminate\Support\Facades\URL;
76
use Illuminate\Support\Str;
7+
use Laravelsu\Highlight\CommonMark\HighlightExtension;
88
use Symfony\Component\Yaml\Yaml;
99

1010
class Docs
@@ -37,7 +37,9 @@ public function view(string $view)
3737
$variables = Yaml::parse($variables);
3838

3939
$all = collect()->merge($variables)->merge([
40-
'content' => Str::of($page)->after('---')->after('---')->markdown(),
40+
'content' => Str::of($page)->after('---')->after('---')->markdown(
41+
extensions: [new HighlightExtension()]
42+
),
4143
'edit' => $this->editLinkGitHub(),
4244
]);
4345

app/Models/User.php

-44
This file was deleted.

composer.json

+5-10
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,20 @@
55
"keywords": ["framework", "laravel"],
66
"license": "MIT",
77
"require": {
8-
"php": "^8.1",
8+
"php": "^8.3",
99
"cagilo/cagilo": "^3.1",
1010
"jolicode/jolitypo": "^1.4",
11-
"laravel/framework": "^10.8",
12-
"laravel/sanctum": "^3.2",
11+
"laravel/framework": "^11.0",
1312
"laravel/tinker": "^2.8",
1413
"symfony/dom-crawler": "^6.2",
1514
"symfony/yaml": "^6.2",
1615
"watson/active": "^7.0",
17-
"spatie/laravel-export": "^0.3.11"
16+
"spatie/laravel-export": "*",
17+
"laravelsu/highlight": "dev-main"
1818
},
1919
"require-dev": {
20-
"fakerphp/faker": "^1.9.1",
2120
"laravel/pint": "^1.0",
22-
"laravel/sail": "^1.18",
23-
"mockery/mockery": "^1.4.4",
24-
"nunomaduro/collision": "^7.0",
25-
"phpunit/phpunit": "^10.1",
26-
"spatie/laravel-ignition": "^2.0"
21+
"phpunit/phpunit": "^10.1"
2722
},
2823
"autoload": {
2924
"psr-4": {

0 commit comments

Comments
 (0)