-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1506 from hydephp/improve-semantic-documentation-…
…article-view Improve the semantic documentation article Blade view
- Loading branch information
Showing
3 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
packages/framework/resources/views/components/docs/documentation-article.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
@php | ||
$document = \Hyde\Framework\Features\Documentation\SemanticDocumentationArticle::make($page); | ||
$article ??= \Hyde\Framework\Features\Documentation\SemanticDocumentationArticle::make($page); | ||
@endphp | ||
|
||
<article id="document" itemscope itemtype="https://schema.org/Article" @class([ | ||
'mx-auto lg:ml-8 max-w-3xl p-12 md:px-16 max-w-[1000px] min-h-[calc(100vh_-_4rem)]', | ||
config('markdown.prose_classes', 'prose dark:prose-invert'), | ||
'torchlight-enabled' => $document->hasTorchlight()])> | ||
'torchlight-enabled' => $article->hasTorchlight()])> | ||
@yield('content') | ||
|
||
<header id="document-header" class="flex items-center flex-wrap justify-between prose-h1:mb-3"> | ||
{{ $document->renderHeader() }} | ||
{{ $article->renderHeader() }} | ||
</header> | ||
<section id="document-main-content" itemprop="articleBody"> | ||
{{ $document->renderBody() }} | ||
{{ $article->renderBody() }} | ||
</section> | ||
<footer id="document-footer" class="flex items-center flex-wrap mt-8 prose-p:my-3 justify-between text-[90%]"> | ||
{{ $document->renderFooter() }} | ||
{{ $article->renderFooter() }} | ||
</footer> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters