|
24 | 24 | | affect the paths of its internal API that aren't exposed to users.
|
25 | 25 | |
|
26 | 26 | */
|
27 |
| - 'path' => '/reference', |
| 27 | + 'path' => '/scalar', |
28 | 28 |
|
29 | 29 | /*
|
30 | 30 | |--------------------------------------------------------------------------
|
|
87 | 87 | // 'saturn',
|
88 | 88 | // 'solarized',
|
89 | 89 | // 'none',
|
| 90 | + |
90 | 91 | /** The layout to use for the references */
|
91 | 92 | 'layout' => 'modern',
|
| 93 | + |
92 | 94 | /** URL to a request proxy for the API client */
|
93 |
| - 'proxy' => 'https://proxy.scalar.com', |
| 95 | + 'proxyUrl' => 'https://proxy.scalar.com', |
| 96 | + |
94 | 97 | /** Whether to show the sidebar */
|
95 | 98 | 'showSidebar' => true,
|
| 99 | + |
96 | 100 | /**
|
97 | 101 | * Whether to show models in the sidebar, search, and content.
|
98 | 102 | */
|
99 | 103 | 'hideModels' => false,
|
| 104 | + |
100 | 105 | /**
|
101 | 106 | * Whether to show the “Download OpenAPI Document” button
|
102 | 107 | */
|
103 | 108 | 'hideDownloadButton' => false,
|
| 109 | + |
104 | 110 | /**
|
105 | 111 | * Whether to show the “Test Request” button
|
106 | 112 | */
|
107 | 113 | 'hideTestRequestButton' => false,
|
| 114 | + |
108 | 115 | /**
|
109 | 116 | * Whether to show the sidebar search bar
|
110 | 117 | */
|
111 | 118 | 'hideSearch' => false,
|
| 119 | + |
112 | 120 | /** Whether dark mode is on or off initially (light mode) */
|
113 | 121 | 'darkMode' => false,
|
| 122 | + |
114 | 123 | /** forceDarkModeState makes it always this state no matter what*/
|
115 | 124 | 'forceDarkModeState' => 'dark',
|
| 125 | + |
116 | 126 | /** Whether to show the dark mode toggle */
|
117 | 127 | 'hideDarkModeToggle' => false,
|
| 128 | + |
118 | 129 | /** Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k) */
|
119 | 130 | 'searchHotKey' => 'k',
|
| 131 | + |
120 | 132 | /**
|
121 | 133 | * If used, passed data will be added to the HTML header
|
122 | 134 | *
|
|
125 | 137 | 'metaData' => [
|
126 | 138 | 'title' => config('app.name').' API Reference',
|
127 | 139 | ],
|
| 140 | + |
128 | 141 | /**
|
129 | 142 | * Path to a favicon image
|
130 | 143 | *
|
131 | 144 | * @example '/favicon.svg'
|
132 | 145 | */
|
133 | 146 | 'favicon' => '',
|
| 147 | + |
134 | 148 | /**
|
135 | 149 | * List of httpsnippet clients to hide from the clients menu
|
136 | 150 | * By default hides Unirest, pass `[]` to show all clients
|
137 | 151 | */
|
138 | 152 | 'hiddenClients' => [
|
139 | 153 |
|
140 | 154 | ],
|
| 155 | + |
141 | 156 | /** Determine the HTTP client that’s selected by default */
|
142 | 157 | 'defaultHttpClient' => [
|
143 | 158 | 'targetId' => 'shell',
|
144 | 159 | 'clientKey' => 'curl',
|
145 | 160 | ],
|
| 161 | + |
146 | 162 | /** Custom CSS to be added to the page */
|
147 |
| - 'customCss' => '', |
| 163 | + // 'customCss' => '', |
| 164 | + |
148 | 165 | /** Prefill authentication */
|
149 |
| - 'authentication' => [ |
150 |
| - // TODO |
151 |
| - ], |
| 166 | + // 'authentication' => [ |
| 167 | + // // TODO |
| 168 | + // ], |
| 169 | + |
152 | 170 | /**
|
153 | 171 | * The baseServerURL is used when the spec servers are relative paths and we are using SSR.
|
154 | 172 | * On the client we can grab the window.location.origin but on the server we need
|
155 | 173 | * to use this prop.
|
156 | 174 | */
|
157 |
| - 'baseServerURL' => '', |
| 175 | + // 'baseServerURL' => '', |
| 176 | + |
158 | 177 | /**
|
159 | 178 | * List of servers to override the openapi spec servers
|
160 | 179 | */
|
161 |
| - 'servers' => null, |
162 | 180 | // 'servers' => [
|
163 | 181 | // [
|
164 | 182 | // 'url' => 'https://api.scalar.com',
|
165 | 183 | // 'description' => 'Production server',
|
166 | 184 | // ],
|
167 | 185 | // ],
|
| 186 | + |
168 | 187 | /**
|
169 | 188 | * We’re using Inter and JetBrains Mono as the default fonts. If you want to use your own fonts, set this to false.
|
170 | 189 | */
|
171 | 190 | 'withDefaultFonts' => true,
|
| 191 | + |
172 | 192 | /**
|
173 | 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 :)
|
174 | 194 | */
|
|
0 commit comments