You asked for it, I needed it as well, so here it is. Nav.js now supports multiple documents as well as the classic single-document use case.

A few things have changed. Firstly, there’s now just a single nav element containing h3 elements as categories, and h4 elements as documents. By default, Nav.js will add the document overview immediately after the first nav h4.current. Secondly, initialisation is cleaner. Nav.init is called with a callback function. The callback function receives the generated document overview as an argument. You put it where you like.

