improve toctree for the documentation generation