worldbank / dime-data-handbook

Development Research in Practice: The DIME Analytics Data Handbook. By Kristoffer Bjärkefur, Luíza Cardoso de Andrade, Benjamin Daniels, and Maria Jones
https://worldbank.github.io/dime-data-handbook/
Other
63 stars 26 forks source link

Link to head commit at the time of compiling pdf #426

Closed kbjarkefur closed 4 years ago

kbjarkefur commented 4 years ago

I have added code that create a link to the commit on GitHub that was the most recent commit on the branch checked out at the time of compiling the book. It is fully automatic (and clickable in the pdf).

It looks like this now:

image

The problem is if you compile with un-committed edits. There is obviously no way to deal with that. If you have committed edits but not yet pushed it it is stilled included. It gets the info from your clone. Not from GitHub.com. So what you have committed to the clone is what matters.

kbjarkefur commented 4 years ago

@bbdaniels , I think we all agree on this. But I meant for you to merge this if you are happy with how this sits in the copyright page that you sat up.

mireille-raad commented 4 years ago

This is neat! @kbjarkefur, github thinks this pull request is on fire and featured it in my feed ;p 👀 I need to follow more people ;p

kbjarkefur commented 4 years ago

haha, or do you only need to follow me @mireille-raad to get what's the most important PR on GitHub? :)

kbjarkefur commented 4 years ago

pedagogic (at least that was the ambition) gist for how to do this here : https://gist.github.com/kbjarkefur/88820e5a5365b3f707b6b20aee57cf8a