Generate a PDF logbook from git commits

筅森魡賤 提交于 2019-12-04 03:33:18

Since the project is due quite soon i just wrote up a quick script myself to output a log the way i want to, it just scrapes the data from git-log and outputs it into a template (borrowed from github).

Example output

More info

I wrote one that generates a changelog from my tags. You can read more about it in my blog post, but the basic idea is that a well written tag should basically do it anyway and easily provide user-level docs.

If you are using Github anyway, I am wondering, why not save the html and the referred css files and run them through the html2pdf converter, say like Pisa converter.

With a little tweaking of the css I presume, you get high quality well formatted pdfs exactly like how you want them.

Alternatively, you can store the diffs in txt files and pass them through the libraries that include html to do syntax highlighting like Pygments and follow a similar process with Pisa, as above.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!