On this page

The legacy-html generator creates legacy HTML documentation pages for Node.js API documentation with included assets and styles for retro-compatibility.

The legacy-html generator accepts the following configuration options:

NameTypeDefaultDescription
outputstring-The directory where HTML files and assets will be written
templatePathstring'template.html'Path to the HTML template file
additionalPathsToCopystring[]['assets']Array of paths to copy to the output directory
refstring'main'Git reference/branch for linking to source files
pageURLstring'{baseURL}/latest-{version}/api{path}.html'URL template for documentation page links
editURLstring'${GITHUB_EDIT_URL}/doc/api{path}.md'URL template for "edit this page" links
indexarray-Array of { api, section } objects defining the documentation structure
minifybooleanInherited from globalWhether to minify the output HTML