openzim / zimit

Make a ZIM file from any Web site and surf offline!
GNU General Public License v3.0
359 stars 25 forks source link

Removing search bar from harmony project zim file #259

Closed RavanJAltaie closed 11 months ago

RavanJAltaie commented 11 months ago

The harmony project file in library has a search bar, please help in what should I change in recipe to remove it from the resulted file? the recipe is here.

benoit74 commented 11 months ago

I'm waiting for ZIM to be correct first.

RavanJAltaie commented 11 months ago

So as per the update here, we should wait for zim update then we will look to fixing the search bar?

benoit74 commented 11 months ago

Yes, no need to do this if we finally never achieve to have a working ZIM (even if I have good hopes), plus the site might change in between and break the customization to remove the search bar, so it is way better to wait.

Jaifroid commented 11 months ago

ZIM isn't broken. As mentioned in #258, there is an issue with screen resolution in this ZIM. Images (at least), and possibly also CSS, have been scraped only at the resolution of the scraper, whatever that is. It has defaulted to mobile, as can clearly be seen, e.g. in Kiwix JS Browser extension, if you change the screen size to mobile and go to the home page -- many more images show than in desktop resolution, where the big-format ones are pretty much all missing. Conversely, the small thumbnails for the sheet music are missing in mobile format and showing in desktop.

benoit74 commented 11 months ago

Custom CSS is here: https://drive.farm.openzim.org/harmony-project.org/harmony-project.org.css

It removes the search bar and I assumed it would help to also remove the navigation menu (since all pages lead to a location which has not been crawled). Let me know if I'm mistaken.