Skip to content

Commit

Permalink
Redirect mlp docs
Browse files Browse the repository at this point in the history
  • Loading branch information
timvandijck committed Jul 22, 2024
1 parent 239dc69 commit 8fb9b2f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
28 changes: 15 additions & 13 deletions resources/views/front/pages/docs/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,21 @@
<div class="mb-10">
{{ $alias->slogan }}
</div>
<div>
<h3 class="font-bold mb-5">Useful links</h3>
<ul class="text-base">
<li class="flex items-center gap-x-2">
<svg class="w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"><path fill="#172A3D" d="m12.686 9-.53.53-4.5 4.5-.532.532L6.063 13.5l.53-.53L10.562 9 6.595 5.03l-.532-.53 1.061-1.062.53.53 4.5 4.5.532.532Z"/></svg>
<a class="underline" href="https://github.com/spatie/{{ $repository->slug }}">Repository</a>
</li>
<li class="flex items-center gap-x-2">
<svg class="w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"><path fill="#172A3D" d="m12.686 9-.53.53-4.5 4.5-.532.532L6.063 13.5l.53-.53L10.562 9 6.595 5.03l-.532-.53 1.061-1.062.53.53 4.5 4.5.532.532Z"/></svg>
<a class="underline" href="https://github.com/spatie/{{ $repository->slug }}/discussions">Discussions</a>
</li>
</ul>
</div>
@if($repository->slug !== 'laravel-medialibrary-pro')
<div>
<h3 class="font-bold mb-5">Useful links</h3>
<ul class="text-base">
<li class="flex items-center gap-x-2">
<svg class="w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"><path fill="#172A3D" d="m12.686 9-.53.53-4.5 4.5-.532.532L6.063 13.5l.53-.53L10.562 9 6.595 5.03l-.532-.53 1.061-1.062.53.53 4.5 4.5.532.532Z"/></svg>
<a class="underline" href="https://github.com/spatie/{{ $repository->slug }}">Repository</a>
</li>
<li class="flex items-center gap-x-2">
<svg class="w-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"><path fill="#172A3D" d="m12.686 9-.53.53-4.5 4.5-.532.532L6.063 13.5l.53-.53L10.562 9 6.595 5.03l-.532-.53 1.061-1.062.53.53 4.5 4.5.532.532Z"/></svg>
<a class="underline" href="https://github.com/spatie/{{ $repository->slug }}/discussions">Discussions</a>
</li>
</ul>
</div>
@endif
</div>

<h2 class="text-[36px] font-bold mb-5">{{ $page->title }}</h2>
Expand Down
1 change: 1 addition & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

Route::permanentRedirect('docs/ray', 'https://myray.app/docs/');
Route::permanentRedirect('docs/ray/{any}', 'https://myray.app/docs/')->where('any', '.*');
Route::permanentRedirect('docs/laravel-medialibrary/v11/handling-uploads-with-media-library-pro{any}', 'https://spatie.be/docs/laravel-medialibrary-pro/v6/introduction')->where('any', '.*');

Route::redirect('/mailcoach/{any}', 'https://spatie.mailcoach.app/{any}')->where('any', '.*');

Expand Down

0 comments on commit 8fb9b2f

Please sign in to comment.