You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-38Lines changed: 0 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,6 @@ Swagger UI as Rails Engine for grape-swagger gem.
18
18
-[Integration with DoorKeeper](#integration-with-doorkeeper)
19
19
-[Hiding the API or Authorization text boxes](#hiding-the-api-or-authorization-text-boxes)
20
20
-[Updating Swagger UI from Dist](#updating-swagger-ui-from-dist)
21
-
-[Enabling in a Rails-API Project](#enabling-in-a-rails-api-project)
22
-
-[Enabling in Rails 6 (Sprokets 5)](#enabling-in-rails-6-sprokets-5)
23
21
-[Contributors](#contributors)
24
22
-[Contributing](#contributing)
25
23
-[License](#license)
@@ -217,42 +215,6 @@ NOTE: This action should be run part of this gem (not your application). In case
217
215
make it up-to-date, clone the repo, run the rake task, examine the diff, fix any bugs, make sure
218
216
tests pass and then send PR here.
219
217
220
-
### Enabling in a Rails-API Project
221
-
222
-
The grape-swagger-rails gem uses the Rails asset pipeline for its Javascript and CSS. Enable the asset pipeline with [rails-api](https://github.com/rails-api/rails-api).
223
-
224
-
Add sprockets to `config/application.rb`.
225
-
226
-
```ruby
227
-
require'sprockets/railtie'
228
-
```
229
-
230
-
Include JavaScript in `app/assets/javascripts/application.js`.
231
-
232
-
```javascript
233
-
//
234
-
//= require_tree .
235
-
```
236
-
237
-
Include CSS stylesheets in `app/assets/stylesheets/application.css`.
238
-
239
-
```css
240
-
/*
241
-
*= require_tree .
242
-
*/
243
-
```
244
-
245
-
### Enabling in Rails 6 (Sprokets 5)
246
-
247
-
Rails 6 top-level targets are determined via `./app/assets/config/manifest.js`. Specify `grape-swagger-rails` asset files as follows.
248
-
249
-
```javascript
250
-
//= link grape_swagger_rails/application.css
251
-
//= link grape_swagger_rails/application.js
252
-
```
253
-
254
-
See [Upgrading Sprokets](https://github.com/rails/sprockets/blob/master/UPGRADING.md#manifestjs) for more information.
0 commit comments