Open Jaifroid opened 1 month ago
Please note that the format changes quite a lot with the new API
can you tell me more. I need to catch up with what is planned.
can you tell me more. I need to catch up with what is planned.
Not really "planned"! What happened is the new Wikipedia/Wikimedia API returns subtly (and not so subtly) different page formatting and, especially, CSS. There is no change in the ZIM format, this is only about presentation and style of the content. The Kiwix override styles are not in their final form, from what I can tell. The new format broke a number of Wikipedia-specific features in the app, and I had to work around these on a temporary basis in the reader until we have a settled final format. One such feature was switching between mobile and desktop style. Other issues involved strange positioning or styling of elements. This should now be fixed reader-side, at least with Wikivoyage, but I assume there are the same issues with Wikipedia-based ZIMs. I won't know for sure till I get one to test. But I'm presuming that if you provide your own ZIMs now for mdwiki and mdwiki-app, these will be based on the old API for now?
I'm not sure what 'new' and 'old' api mean, but I am working towards invoking the REST API rather than the api.php api.
Yup, I'm hazy on the details, as I don't work on the scraper, but "REST API" or "mobile-html" endpoint is what it's often referred to as. The previous one was called the "mobile-sections" endpoint, and it's deprecated: https://github.com/openzim/mwoffliner/issues/1664 .
@tim-moody Any update on progress? Don't mean to hassle, it would just be useful to know how things are going!
@Jaifroid I think I now have a way forward, but I'm still working on the code. It will depend on the answers to https://github.com/openzim/mwoffliner/issues/2100
@tim-moody: Since https://github.com/openzim/zim-requests/issues/1117 has been closed, I suggest we move discussion of this here, even though it would affect the Android packaged app too.
It seems we have three choices for releasing an updated MDwiki app:
We're currently on number 3 above. Please note that the format changes quite a lot with the new API, but I've got code in my app that deals with the differences and allows nearly all functionality to work as before. (I've been through this already with the Wikivoyage packaged app.)
Let me know if you think we should change strategy.