Skip to content

Commit 2b941db

Browse files
authored
Merge pull request #1234 from hydephp/code-review-polishes
Final code polishing
2 parents 243d266 + 034b804 commit 2b941db

File tree

11 files changed

+30
-26
lines changed

11 files changed

+30
-26
lines changed

_pages/404.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ class="absolute pin bg-cover bg-no-repeat md:bg-left lg:bg-center">
4848
</div>
4949
</div>
5050
</body>
51-
</html>
51+
</html>

_pages/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ class="relative mt-2 text-transparent bg-clip-text bg-gradient-to-br logo-gradie
8383
</div>
8484
</main>
8585
</body>
86-
</html>
86+
</html>

app/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
);
5353

5454
$app->singleton(
55-
\Hyde\Foundation\HydeKernel::class, function () {
55+
\Hyde\Foundation\HydeKernel::class, function (): \Hyde\Foundation\HydeKernel {
5656
return \Hyde\Foundation\HydeKernel::getInstance();
5757
}
5858
);

packages/framework/config/torchlight.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
// and if so, what (Markdown) text should be used?
2121
'attribution' => [
2222
'enabled' => true,
23-
'markdown' => '
24-
<p>
25-
<i>
26-
Syntax highlighting by <a href="https://torchlight.dev/" rel="noopener nofollow">Torchlight.dev</a>
27-
</i>
28-
</p>',
23+
'markdown' => <<<'MARKDOWN'
24+
<p>
25+
<i>
26+
Syntax highlighting by <a href="https://torchlight.dev/" rel="noopener nofollow">Torchlight.dev</a>
27+
</i>
28+
</p>
29+
MARKDOWN
2930
],
3031

3132
// The Torchlight client caches highlighted code blocks. Here

packages/framework/resources/views/components/article-excerpt.blade.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
@php
2-
/** @var \Hyde\Pages\MarkdownPost $post */
3-
@endphp
4-
1+
@php /** @var \Hyde\Pages\MarkdownPost $post */ @endphp
52
<article class="mt-4 mb-8" itemscope itemtype="https://schema.org/Article">
63
<meta itemprop="identifier" content="{{ $post->identifier }}">
74
@if(Hyde::hasSiteUrl())

packages/framework/resources/views/components/docs/documentation-article.blade.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
@props([
2-
/** @var \Hyde\Framework\Features\Documentation\SemanticDocumentationArticle $document */
3-
'document',
4-
])
1+
@php
2+
$document = \Hyde\Framework\Features\Documentation\SemanticDocumentationArticle::make($page);
3+
@endphp
54

65
<article id="document" itemscope itemtype="https://schema.org/Article" @class([
76
'mx-auto lg:ml-8 prose dark:prose-invert max-w-3xl p-12 md:px-16 max-w-[1000px] min-h-[calc(100vh_-_4rem)]',

packages/framework/resources/views/homepages/welcome.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ class="relative mt-2 text-transparent bg-clip-text bg-gradient-to-br logo-gradie
8383
</div>
8484
</main>
8585
</body>
86-
</html>
86+
</html>

packages/framework/resources/views/layouts/docs.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@include('hyde::components.docs.sidebar')
1212

1313
<main id="content" class="dark:bg-gray-900 min-h-screen bg-gray-50 md:bg-white absolute top-16 md:top-0 w-screen md:left-64 md:w-[calc(100vw_-_16rem)]">
14-
<x-hyde::docs.documentation-article :document="\Hyde\Framework\Features\Documentation\SemanticDocumentationArticle::make($page)"/>
14+
@include('hyde::components.docs.documentation-article')
1515
</main>
1616

1717
<div id="support">
@@ -25,4 +25,4 @@
2525

2626
@include('hyde::layouts.scripts')
2727
</body>
28-
</html>
28+
</html>

packages/framework/resources/views/pages/404.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ class="absolute pin bg-cover bg-no-repeat md:bg-left lg:bg-center">
4848
</div>
4949
</div>
5050
</body>
51-
</html>
51+
</html>

packages/framework/src/Console/Commands/PublishHomepageCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
namespace Hyde\Console\Commands;
66

7-
use Hyde\Console\Concerns\AsksToRebuildSite;
7+
use Hyde\Pages\BladePage;
88
use Hyde\Console\Concerns\Command;
9+
use Hyde\Console\Concerns\AsksToRebuildSite;
910
use Hyde\Framework\Services\ViewDiffService;
10-
use Hyde\Pages\BladePage;
11-
use Illuminate\Support\Collection;
1211
use Illuminate\Support\Facades\Artisan;
12+
use Illuminate\Support\Collection;
13+
use function Hyde\unixsum_file;
1314
use function array_key_exists;
1415
use function file_exists;
15-
use function Hyde\unixsum_file;
1616
use function str_replace;
1717
use function strstr;
1818

0 commit comments

Comments
 (0)