jejacks0n / apitome

Apitome: /iˈpitəmē/ An API documentation presentation layer for RSpec API Documentation output.
250 stars 126 forks source link

Does it work with Sprockets 4? #113

Open sergey-koba-mobidev opened 4 years ago

sergey-koba-mobidev commented 4 years ago

After migrating to Rails 6 the engine stopped working with the next error

ActionView::Template::Error: The asset "apitome/highlight_themes/default.css" is not present in the asset pipeline.

It might me needed to create assets/config/manifest.js for engine

bf4 commented 4 years ago

fwiw

I've now removed from my config/initializers/assets.rb

Rails.application.config.assets.precompile += %w( apitome/*.css apitome/*.js )

and added to my app/assets/config/manifest.js

//= link apitome/application.css
//= link apitome/application.js
//= link apitome/highlight_themes/solarized-light.css

based on following the errors, and it doesn't raise anymore

probably could be tested by ensuring ActionDispatch::Integration::Session.new(Rails.application).get('/docs') returns a 200. I ended up writing an rspec request spec