Now I work on Linux. When I run mix hex.docs 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 hex.docs locally - DEV Community
I am not sure if that will solve your problem, hopefully yes.
Have a good one over there.
–
Caleb
You can set the HEX_HOME
environment variable to control where the docs are downloaded to:
$ HEX_HOME=/tmp mix hex.docs offline scenic
Docs fetched: /tmp/docs/hexpm/scenic/0.11.1
Docs: https://hexdocs.pm/hex/Mix.Tasks.Hex.Config.htmlw
Although I’m surprised your browser isn’t able to read ~/.hex
, maybe it’s some sort of security rule.
2 Likes