Fix ToC generator to work with base
Merge pull request #221 from nauzilus/toc-fix

Fix ToC generator to work with base