openzim / devdocs

devdocs.io to ZIM scraper
GNU General Public License v3.0
2 stars 0 forks source link

Support per-document thumbnail images #8

Closed josephlewis42 closed 1 month ago

josephlewis42 commented 3 months ago

Devdocs is able to show a documentation set's icon because it compiles them all into a sprite sheet that's referenced by CSS.

All the icons exist in their GitHub repository, but aren't available in the published artifacts.

fcc2zim has functionality today that can fetch a git repo which we could consider repurposing to grab thumbnail icons for the produced ZIM: https://github.com/openzim/freecodecamp/blob/a1221073049895609d7712a8834474311535f0c1/scraper/src/fcc2zim/fetch.py#L12

josephlewis42 commented 1 month ago

Duplicate of #29

benoit74 commented 1 month ago

Oups, sorry for having missed this issue when creating the other one ^^