Maintaining directory structure in generated docs