`mix hex.docs offline` 的输出结果为 EPUB 而不是 HTML

Output results of `mix hex.docs offline` as EPUB instead of HTML

我通过 mix hex.docs offline PACKAGE_NAME 保留了 Hex 包文档的离线副本。这会在 ~/.hex/docs/hexpm/PACKAGE_NAME/.

中创建一个 HTML 目录

我想做同样的事情,但输出为 EPUB 而不是 HTML,理想情况下,一步完成

如何下载离线 EPUB 以获取 Hex.pm 上托管的包的文档?

截至 2019 年 12 月,是 currently not possible to do this in one step without using ex_doc directly, but it appears that there are plans to support EPUB generation by default in a future release