Yikes, needed this today:
$ git clone https://github.com/git/git
Fortunately git source is pretty readable and I found what I needed pretty quickly (difftastic can offer colour when GIT_PAGER_IN_USE is set).
I feel like in-code docs are an underexplored design space.
Do you use comments or string literals? Before the function (e.g. JSDoc) or inside it (e.g. Python)?
Which is best? Which is the easiest to write, has the easiest tooling, or the most readable (code/HTML) artifacts?