I was interested in getting this going again. Every year I need an up-to-date copy of the offline documentation for use in the GDC TrainJam and end up recreating the wheel in the process!
Here’s what I found worked pretty well for httrack:
-
Have it download something like: https://docs.unrealengine.com:443/en-US/XXX/index.html where XXX is the part of the documentation you are interested in
-
For example, XXX = API will get the C++ API, and XXX = BlueprintAPI get’s Blueprint documentation
-
Make sure you ADD the following to the command line to get the important extras:
-
+docs.unrealengine.com:443/en-US/XXX/* (set XXX to the same as above)
-
Add -#L500000 or you will hit the max number of pages (especially for the C++ API)
-
There’s lots of other optimizing options but I won’t go into those here as they are purely optional (and wouldn’t be nice to Epic’s servers)
The real problem is that much of the web site will refuse to load and run if you just open the files directly in a browser (the classic can’t load file: from file: rejection that protects against virus-like activity). To get around this you MUST start a local server and serve the files. There is no good alternative any more with modern browsers made the way they are.
To this end, I have created a little project that automates all the scraping and will run the server. You can check it out here: GitHub - Olliebrown/UE4DocScraper: Tool for scraping the UE4 documentation for local/offline brows
It is WIP and your mileage may vary but just in the spirit of sharing!
Seth B.