mirror of
https://github.com/PR0M3TH3AN/Archivox.git
synced 2025-09-08 06:58:43 +00:00
14 lines
394 B
Markdown
14 lines
394 B
Markdown
# 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:
|
|
|
|
```js
|
|
module.exports = {
|
|
onPageRendered: async ({ html }) => {
|
|
return { html: html + '\n<!-- custom -->' };
|
|
}
|
|
};
|
|
```
|