build: fixing table and toctree generator