build: adding infrastructure for building and managing ref-toc content generation
minor: fixes for new ref-toc generation