Generate docs navigation from JS