The Diátaxis framework [1] provides a nice suggestion of different types of documentation, and when to use them. None of these types
is "best", each serves a different purpose.
replies(3):
Examples are crucial to documentation, but they aren't — at least in this view — a kind of documentation, so much as a technique for documenting.