I'm increasingly persuaded that a page-per-function organisation of docs is the best.
For example, this command in Redis has its own page: https://redis.io/commands/acl-cat/
Using a whole page enables you to have several examples without overwhelming the reader.
Choosing the right amount of content to put on each docs page is surprisingly hard.
I've seen info/man pages as a single large HTML page and it eventually slows down the browser. A short page with a short scrollbar is less intimidating and you're more likely to read to the end.