ac-lucusta-singula
Is it possible to download Elixir & Phoenix docs as PDF or .mobi?
Is there any possibility to download the Elixir and Phoenix documentation as PDF (or maybe MOBI?)
I am traveling a lot by train and I do not always have connection to the internet, so It would be nice to have the docs always with me.
Marked As Solved
michalmuskala
You can download any docs from hex using the mix hex.docs fetch PACKAGE VERSION command and later open with the accompanying mix hex.docs open PACKAGE VERSION.
To enhance on @benwilson512’s remark - ExDoc can also generate .epub documents with mix docs --format epub.
Also Liked
tyro
venkatd
By the way they are hosted online. If you scroll down to the docs for Elixir you will see a .epub version you can download.
For example:
https://hexdocs.pm/elixir/1.17.3/Elixir.epub
If you want a PDF there are some command line tools that you can use for this. I’ve got a Remarkable e-reader tablet that I load docs on and it works great.
kokolegorille
Hello and welcome,
It has been 4 years and since, the procedure has changed.
You might try…
$ git clone https://github.com/elixir-lang/elixir-lang.github.com.git
$ cd elixir-lang.github.com/_epub
$ mix deps.get
$ mix epub
Generated elixir_lang_guide app
Generated guide at "./elixir-getting-started-guide.epub"
Generated guide at "./meta-programming-in-elixir.epub"
Generated guide at "./mix-and-otp.epub"
benwilson512
Also note that if you download the source code for any of those projects and run mix docs you’ll have a local copy of the docs.
kokolegorille
Sorry to mention, but after trying to generate an epub…
And as seen on this link https://github.com/elixir-lang/ex_doc
The option should be formatter, like this
$ mix docs --formatter epub
Docs successfully generated.
View them at "doc/Phoenix-v1.3.0-rc.1.epub".









