webdoc-labs / webdoc

Documentation generator for the web
https://www.webdoclabs.com
Other
79 stars 9 forks source link

Make @webdoc/default-template customizable #125

Closed ShukantPal closed 3 years ago

ShukantPal commented 3 years ago
Feature Description
Variants You can set template.variant in the configuration so template will render a different version of the site. For @webdoc/default-template, the "plain" variant will not include any buit-in stylesheets or scripts. You'll see I've added header.tmpl, footer.tmpl, and explorer.tmpl for this variant. They pre-render the HTML instead of using React.
Aliases TemplateRenderer now lets you alias template names. The template.alias configuration can be used to override specific template files. @webdoc/default-template exposes these aliases - "header", "footer", "explorer", "bottom-banner". The first 3 only work in the "plain" variant.