Try Documentalist,
my app that offers fast, offline access to 190+ programmer API docs.
Links:
- https://github.com/ctnorth/ctnorth/blob/master/code/premake5.lua
- https://github.com/bkaradzic/GENie : active fork of premake 4.4 beta5