From db2b997ed8f6c5ee2828e4b840f46a572ea7cf52 Mon Sep 17 00:00:00 2001 From: "Victor Ariama (ovac4u) www.ovac4u.com" Date: Tue, 30 Apr 2019 17:01:07 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20Update=20comments=20to=20reflect?= =?UTF-8?q?=20clarity=20in=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/idoc.php | 12 +++++++----- resources/views/documentation.blade.php | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/config/idoc.php b/config/idoc.php index d2a6aa2..aa5c02e 100644 --- a/config/idoc.php +++ b/config/idoc.php @@ -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, /* |-------------------------------------------------------------------------- diff --git a/resources/views/documentation.blade.php b/resources/views/documentation.blade.php index 89dda07..7522337 100644 --- a/resources/views/documentation.blade.php +++ b/resources/views/documentation.blade.php @@ -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") );