Replace manual links with toctree