Generates an index menu from local anchors