Files
Archivox/docs/content/03-customization/plugins.md
2025-07-10 16:00:03 -04:00

394 B

Writing Plugins

Place JavaScript files in the plugins/ directory. Export hook functions such as onParseMarkdown or onPageRendered to modify the build process. Hooks receive data objects that you can transform before Archivox writes the final files.

Example:

module.exports = {
  onPageRendered: async ({ html }) => {
    return { html: html + '\n<!-- custom -->' };
  }
};