Add permalinks to headings in apiref page.