|
| 1 | +<?php |
| 2 | + |
| 3 | +return [ |
| 4 | + |
| 5 | + /* |
| 6 | + |-------------------------------------------------------------------------- |
| 7 | + | Scalar Domain |
| 8 | + |-------------------------------------------------------------------------- |
| 9 | + | |
| 10 | + | This is the subdomain where Scalar will be accessible from. If this |
| 11 | + | setting is null, Scalar will reside under the same domain as the |
| 12 | + | application. Otherwise, this value will serve as the subdomain. |
| 13 | + | |
| 14 | + */ |
| 15 | + 'domain' => null, |
| 16 | + |
| 17 | + /* |
| 18 | + |-------------------------------------------------------------------------- |
| 19 | + | Scalar Path |
| 20 | + |-------------------------------------------------------------------------- |
| 21 | + | |
| 22 | + | This is the URI path where Scalar will be accessible from. Feel free |
| 23 | + | to change this path to anything you like. Note that the URI will not |
| 24 | + | affect the paths of its internal API that aren't exposed to users. |
| 25 | + | |
| 26 | + */ |
| 27 | + 'path' => '/docs', |
| 28 | + |
| 29 | + /* |
| 30 | + |-------------------------------------------------------------------------- |
| 31 | + | Scalar Route Middleware |
| 32 | + |-------------------------------------------------------------------------- |
| 33 | + | |
| 34 | + | These middleware will get attached onto each Scalar route, giving you |
| 35 | + | the chance to add your own middleware to this list or change any of |
| 36 | + | the existing middleware. Or, you can simply stick with this list. |
| 37 | + | |
| 38 | + */ |
| 39 | + 'middleware' => ['web'], |
| 40 | + |
| 41 | + /* |
| 42 | + |-------------------------------------------------------------------------- |
| 43 | + | Scalar OpenAPI Document URL |
| 44 | + |-------------------------------------------------------------------------- |
| 45 | + | |
| 46 | + | This is the URL to the OpenAPI document that Scalar will use to generate |
| 47 | + | the API reference. By default, it points to the latest version of the |
| 48 | + | Scalar Galaxy package. You can change this to use a custom OpenAPI file. |
| 49 | + | |
| 50 | + */ |
| 51 | + 'url' => '/scribe-source.openapi', |
| 52 | + |
| 53 | + /* |
| 54 | + |-------------------------------------------------------------------------- |
| 55 | + | Scalar CDN URL |
| 56 | + |-------------------------------------------------------------------------- |
| 57 | + | |
| 58 | + | This is the URL to the CDN where Scalar's API reference assets are hosted. |
| 59 | + | By default, it points to the jsDelivr CDN for the @scalar/api-reference |
| 60 | + | package. You can change this if you want to use a different CDN. |
| 61 | + | |
| 62 | + */ |
| 63 | + 'cdn' => 'https://cdn.jsdelivr.net/npm/@scalar/api-reference', |
| 64 | + |
| 65 | + /* |
| 66 | + |-------------------------------------------------------------------------- |
| 67 | + | Scalar Configuration |
| 68 | + |-------------------------------------------------------------------------- |
| 69 | + | |
| 70 | + | The configuration options for the Scalar API reference. This array |
| 71 | + | contains all the settings that control the behavior and appearance |
| 72 | + | of the API documentation. |
| 73 | + | |
| 74 | + */ |
| 75 | + 'configuration' => [ |
| 76 | + /** A string to use one of the color presets */ |
| 77 | + 'theme' => |
| 78 | + // 'alternate', |
| 79 | + // 'bluePlanet', |
| 80 | + // 'deepSpace', |
| 81 | + // 'default', |
| 82 | + // 'kepler', |
| 83 | + 'laravel', |
| 84 | + // 'mars', |
| 85 | + // 'moon', |
| 86 | + // 'purple', |
| 87 | + // 'saturn', |
| 88 | + // 'solarized', |
| 89 | + // 'none', |
| 90 | + |
| 91 | + /** The layout to use for the references */ |
| 92 | + 'layout' => 'modern', |
| 93 | + |
| 94 | + /** URL to a request proxy for the API client */ |
| 95 | + 'proxyUrl' => 'https://proxy.scalar.com', |
| 96 | + |
| 97 | + /** Whether to show the sidebar */ |
| 98 | + 'showSidebar' => true, |
| 99 | + |
| 100 | + /** |
| 101 | + * Whether to show models in the sidebar, search, and content. |
| 102 | + */ |
| 103 | + 'hideModels' => false, |
| 104 | + |
| 105 | + /** |
| 106 | + * Whether to show the “Download OpenAPI Document” button |
| 107 | + */ |
| 108 | + 'hideDownloadButton' => false, |
| 109 | + |
| 110 | + /** |
| 111 | + * Whether to show the “Test Request” button |
| 112 | + */ |
| 113 | + 'hideTestRequestButton' => false, |
| 114 | + |
| 115 | + /** |
| 116 | + * Whether to show the sidebar search bar |
| 117 | + */ |
| 118 | + 'hideSearch' => false, |
| 119 | + |
| 120 | + /** Whether dark mode is on or off initially (light mode) */ |
| 121 | + 'darkMode' => false, |
| 122 | + |
| 123 | + /** forceDarkModeState makes it always this state no matter what*/ |
| 124 | + 'forceDarkModeState' => 'dark', |
| 125 | + |
| 126 | + /** Whether to show the dark mode toggle */ |
| 127 | + 'hideDarkModeToggle' => false, |
| 128 | + |
| 129 | + /** Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k) */ |
| 130 | + 'searchHotKey' => 'k', |
| 131 | + |
| 132 | + /** |
| 133 | + * If used, passed data will be added to the HTML header |
| 134 | + * |
| 135 | + * @see https://unhead.unjs.io/usage/composables/use-seo-meta |
| 136 | + */ |
| 137 | + 'metaData' => [ |
| 138 | + 'title' => config('app.name').' API Reference', |
| 139 | + ], |
| 140 | + |
| 141 | + /** |
| 142 | + * Path to a favicon image |
| 143 | + * |
| 144 | + * @example '/favicon.svg' |
| 145 | + */ |
| 146 | + 'favicon' => '', |
| 147 | + |
| 148 | + /** |
| 149 | + * List of httpsnippet clients to hide from the clients menu |
| 150 | + * By default hides Unirest, pass `[]` to show all clients |
| 151 | + */ |
| 152 | + 'hiddenClients' => [ |
| 153 | + |
| 154 | + ], |
| 155 | + |
| 156 | + /** Determine the HTTP client that’s selected by default */ |
| 157 | + 'defaultHttpClient' => [ |
| 158 | + 'targetId' => 'shell', |
| 159 | + 'clientKey' => 'curl', |
| 160 | + ], |
| 161 | + |
| 162 | + /** Custom CSS to be added to the page */ |
| 163 | + // 'customCss' => '', |
| 164 | + |
| 165 | + /** Prefill authentication */ |
| 166 | + // 'authentication' => [ |
| 167 | + // // TODO |
| 168 | + // ], |
| 169 | + |
| 170 | + /** |
| 171 | + * The baseServerURL is used when the spec servers are relative paths and we are using SSR. |
| 172 | + * On the client we can grab the window.location.origin but on the server we need |
| 173 | + * to use this prop. |
| 174 | + */ |
| 175 | + // 'baseServerURL' => '', |
| 176 | + |
| 177 | + /** |
| 178 | + * List of servers to override the openapi spec servers |
| 179 | + */ |
| 180 | + // 'servers' => [ |
| 181 | + // [ |
| 182 | + // 'url' => 'https://api.scalar.com', |
| 183 | + // 'description' => 'Production server', |
| 184 | + // ], |
| 185 | + // ], |
| 186 | + |
| 187 | + /** |
| 188 | + * We’re using Inter and JetBrains Mono as the default fonts. If you want to use your own fonts, set this to false. |
| 189 | + */ |
| 190 | + 'withDefaultFonts' => true, |
| 191 | + |
| 192 | + /** |
| 193 | + * By default we only open the relevant tag based on the url, however if you want all the tags open by default then set this configuration option :) |
| 194 | + */ |
| 195 | + 'defaultOpenAllTags' => false, |
| 196 | + ], |
| 197 | + |
| 198 | +]; |
0 commit comments