diff --git a/config/scribe.php b/config/scribe.php index 2daf50e5..17e6d70a 100644 --- a/config/scribe.php +++ b/config/scribe.php @@ -73,6 +73,10 @@ 'middleware' => [], ], + 'external' => [ + 'html_attributes' => [] + ], + 'try_it_out' => [ // Add a Try It Out button to your endpoints so consumers can test endpoints right from their browser. // Don't forget to enable CORS headers for your endpoints. diff --git a/resources/views/external/elements.blade.php b/resources/views/external/elements.blade.php new file mode 100644 index 00000000..db48c4ff --- /dev/null +++ b/resources/views/external/elements.blade.php @@ -0,0 +1,27 @@ + + + + + + + Elements in HTML + + + + + + + $value) + {{-- Attributes specified first override later ones --}} + {!! $attribute !!}="{!! $value !!}" +@endforeach + apiDescriptionUrl="{!! $metadata['openapi_spec_url'] !!}" + router="hash" + layout="sidebar" + hideTryIt="{!! ($tryItOut['enabled'] ?? true) ? '' : 'true'!!}" + logo="{!! $metadata['logo'] !!}" +/> + + + diff --git a/resources/views/external/rapidoc.blade.php b/resources/views/external/rapidoc.blade.php index 3ee2c6a9..c4729fad 100644 --- a/resources/views/external/rapidoc.blade.php +++ b/resources/views/external/rapidoc.blade.php @@ -1,4 +1,4 @@ - + @@ -6,8 +6,18 @@ - + $value) + {{-- Attributes specified first override later ones --}} + {!! $attribute !!}="{!! $value !!}" +@endforeach + spec-url="{!! $metadata['openapi_spec_url'] !!}" + render-style="read" + allow-try="{!! ($tryItOut['enabled'] ?? true) ? 'true' : 'false'!!}" +> + @if($metadata['logo']) + + @endif + diff --git a/resources/views/external/scalar.blade.php b/resources/views/external/scalar.blade.php index 0e3366b1..062d3cfd 100644 --- a/resources/views/external/scalar.blade.php +++ b/resources/views/external/scalar.blade.php @@ -2,10 +2,10 @@ {!! $metadata['title'] !!} - + + name="viewport" + content="width=device-width, initial-scale=1"/>