I started to write some documentation for a project of mine and I wanted to embed a change log on certain elements in the documentation.
Since my documentation format is mkDocs, all documents are written in markdown.
So here is what I came up with:
So the script queries the github api for the commit log of a certain resource. With that response, the script build a HTML table with all the relevant content.
In real life this snippet evaluated looks like this: