作为一个kindle的超级深度用户,在看到github上的这个项目时非常开心。
项目链接:https://github.com/agentzh/code2ebook#prerequisites
只需要提前安装了perl、cablir、ctags、vim即可,
将project项目放到文件夹下,运行下面两行代码即可完成mobi书的制作。
当然,实际上KIndle支持比较好的格式依然是azw3。
./src2html.pl --tab-width 4 myproject book-title
ebook-convert html_out/myproject/index.html my-project.azw3 --output-profile kindle_pw