pub fn codegen(filename: &Path, output: &Path) -> Result<CodegenOutput>
Generate code for one document.