Hi there, I think I've spotted a small error on:
https://docs.moodle.org/dev/Output_API
the tool_demo renderer.php file is actually stored here along with the index_page: admin/tool/demo/classes/output/
but the documentation swaps the admin and tool folders around: tool/admin/demo/classes/output/
for correctness' sake!