sphinx: make file generation cleanup