Ask HN: How do you maintain personal annotations for code you don't control? 2 years ago
This is my approach as well. I write a doc to myself with commit+line links for code, relevant snippets from documentation linked to the source, and annotated screenshots where that makes more sense, also linked if the source is web based.