blinkk / amagaki

A high-performance TypeScript static website generator for building highly-interactive websites. Localization inbuilt. Flexible URLs. Content managed and templates separated.
https://amagaki.dev
MIT License
36 stars 2 forks source link

feat: plugin for generating a partial library when building a pod #201

Open Zoramite opened 2 years ago

Zoramite commented 2 years ago

Adds a hook for amagaki that triggers before the manifest is built (allowing the plugin to generate more content outside of normal routes and after all routes have been processed). This extra trigger allows for plugins that want to do analysis of normal builds to hook into the process and generate reports or files before deploying.

The partial library plugin is made to be used with a custom view in the project (allows the project to control how the partials are displayed and gives access to the information from the library). This allows the project to be able to include normal styling or framing around how the library information is displayed and supports the normal template engines based on the view provided.

Zoramite commented 2 years ago

Updated the logic of the plugin to no longer require a new hook. It uses the custom route provider and scans the doc routes to look for docs.