harvard-lil / h2o

H2O is a web app for creating and reading open educational resources, primarily in the legal field
https://opencasebook.org
GNU Affero General Public License v3.0
37 stars 30 forks source link

Remove no longer used or referenced assets #1893

Closed lizadaly closed 1 year ago

lizadaly commented 1 year ago

I was originally intending to just remove the "fancy export" assets, which are no longer referenced, but for completeness' sake I went through all the images in static and checked if they were referenced in the code.

I can't positively guarantee that I didn't make a mistake but the vast majority of them did not match the current site style, so I think they were leftovers from the Rails migration. A few others are PNGs where we use an SVG equivalent.

I rebuilt the asset pipeline as a check that it still compiles, so at least no deleted assets were referenced in SCSS. Assets might have been referenced in plain CSS or inline HTML—I should have caught those with ack—or even externally, in which case I wouldn't have caught them.