Kiwix is great - I have a collection of various things from their library https://library.kiwix.org/?lang=eng downloaded for when I'm on a plane or the internet is otherwise unavailable.
That and the TeXlive PDF manuals can get me through anything.
That and the TeXlive PDF manuals can get me through anything.
In those cases having local access to Wikipedia (and not necessarily just en; Kiwix has archives for all the languages) can be a great learning resource and reference.
I've downloaded the entirety of wikivoyage for example.
https://wiki.openzim.org/wiki/ZIM_file_format
This all lets you squeeze English Wikipedia into 90 Gb. But it also makes it much more difficult to edit in-place, and, of course, no MediaWiki means that it cannot possibly work like git pull requests.