On 11.10.21 10:07, Matthieu Gautier wrote:
Le 10/10/2021 à 21:38, Amirouche Boubekki a écrit :
That is great ! I did not look at linked page yet. What are hints ?
Hi,
"Hints" is a generic system to allow the scraper to pass ... hints to the creator when we create a zim file. Hints are information for the creator only. They may change the way the entries are stored but they are not stored in the zim file and readers cannot access them.
For now we support only two hints:
- COMPRESS : Force the creator to compress or not the content (if not
given, use default heuristics based on mimetype)
- FRONT_ARTICLE : Tell the item/redirection is a entry intended to be
displayed to the user as a article (to oppose to resources as image/css/js) Random articles or suggestion use front articles only (when possible).
COMPRESS is not really important but FRONT_ARTICLE is somehow mandatory as we have no other way to differentiate articles from resources (as we don't have namespace now)
Important other point: the documentation has been seriously improved. There is even a migration documentation. Look at https://libzim.readthedocs.io/