This is a bit simplistic. There are builders like SphinxHTMLDir that this will break for.