Add toc plugin and modify build process