Skip to content

Commit c2238fa

Browse files
committed
feat: add documentation to website footer
1 parent 85d2442 commit c2238fa

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

build/doctum/doctum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
'build_dir' => __DIR__.'/build/%version%',
2525
'cache_dir' => __DIR__.'/cache/%version%',
2626
'default_opened_level' => 2,
27-
'remote_repository' => new GitHubRemoteRepository('filament/filament', dirname($dir)),
27+
'remote_repository' => new GitHubRemoteRepository('filamentphp/filament', dirname($dir)),
2828
'base_url' => 'https://filamentphp.com/api/%version%/',
2929
]);

resources/views/components/footer.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ class="p-2 transition duration-300 will-change-transform hover:translate-x-1 hov
106106
>
107107
Documentation
108108
</a>
109+
<a
110+
href="{{ route('api-docs') }}"
111+
class="p-2 transition duration-300 will-change-transform hover:translate-x-1 hover:text-black motion-reduce:transition-none motion-reduce:hover:transform-none"
112+
>
113+
PHP API Documentation
114+
</a>
109115
<a
110116
href="{{ route('plugins') }}"
111117
class="p-2 transition duration-300 will-change-transform hover:translate-x-1 hover:text-black motion-reduce:transition-none motion-reduce:hover:transform-none"

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
Route::get('/api/{version?}', function (string $version = '3.x'): RedirectResponse {
5858
return redirect('/api/' . $version . '/index.html');
59-
})->where('version', '/[1-3]+\.x/')->name('api-docs');
59+
})->where('version', '[1-3]+\.x')->name('api-docs');
6060

6161
Route::prefix('/docs')->group(function () {
6262
Route::redirect('/getting-started', '/docs/panels/getting-started');

0 commit comments

Comments
 (0)