Autogenerate toc tree and api docs