Skip to content

Commit

Permalink
📚 Update comments to reflect clarity in config
Browse files Browse the repository at this point in the history
  • Loading branch information
ovac committed Apr 30, 2019
1 parent a7338ff commit db2b997
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions config/idoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,18 @@
| iDoc collection/output path
|--------------------------------------------------------------------------
|
| The output path for the generated API collection file. This path is
| relative to the public path. TO disable the the open-api-3
| download button on the documentation, the collectons
| option should be set to false.
| The output path for the generated Open API 3.0 collection file.
| This path is relative to the public path.
|
| In order To disable the the open-api-3 download button
| on the documentation, the `hide_download_button`
| option should be set to true.
|
*/

'output' => '',

'collections' => true,
'hide_download_button' => false,

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion resources/views/documentation.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"redocExport": "RedocPro",
"layout": { "scope": "section" },
"unstable_externalDescription": '{{route('idoc.info')}}',
"hideDownloadButton" : {{(bool) config('idoc.collections')}}
"hideDownloadButton" : {{config('idoc.hide_download_button') ?: 0}}
},
document.getElementById("redoc_container")
);
Expand Down

0 comments on commit db2b997

Please sign in to comment.