Skip to content

Commit

Permalink
Merge pull request #9 from ddouble-d/feat/add-title-config
Browse files Browse the repository at this point in the history
feat(config): add config for dynamic html title
  • Loading branch information
JustSteveKing authored Dec 18, 2023
2 parents 9032ade + b466c3b commit 4f8c0d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions config/redoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@
],

'config' => [
/*
|--------------------------------------------------------------------------
| Title
|--------------------------------------------------------------------------
|
| Customize the html title of your API documentation
|
*/
'title' => env('REDOC_TITLE', 'ReDoc'),

/*
|--------------------------------------------------------------------------
| Disable Search
Expand Down
2 changes: 1 addition & 1 deletion resources/views/docs.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>ReDoc</title>
<title>{{ config('redoc.config.title') }}</title>
<!-- needed for adaptive design -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down

0 comments on commit 4f8c0d0

Please sign in to comment.