Set the offline directory

Now I work on Linux. When I run mix offline pkg-name the docs have download to ~/.hex/docs/
But browser can not the read the file in a hide directory. So, my question is **can I set the download directory?

I found the following article: Use locally - DEV Community

I am not sure if that will solve your problem, hopefully yes.

Have a good one over there.


You can set the HEX_HOME environment variable to control where the docs are downloaded to:

$ HEX_HOME=/tmp mix offline scenic
Docs fetched: /tmp/docs/hexpm/scenic/0.11.1


Although I’m surprised your browser isn’t able to read ~/.hex, maybe it’s some sort of security rule.