documentation icon indicating copy to clipboard operation
documentation copied to clipboard

implement a plugin framework

Open mmomtchev opened this issue 4 years ago • 3 comments

here is my first draft

A plugin has to export:

export async function init();
export function parse(file, config, api);
export function shallow(file);

I have included a small mock_plugin.js for unit testing

mmomtchev avatar Nov 30 '21 18:11 mmomtchev

#1441

mmomtchev avatar Nov 30 '21 18:11 mmomtchev

You can also take a look at a working plugin: https://github.com/mmomtchev/documentation-polyglot

mmomtchev avatar Dec 01 '21 13:12 mmomtchev

@anthony-redFox w8, I just found a major problem - expandInputs happens before globbing so there is no way to have some files use shallow dependencies and others - full tracking Unless you have an idea?

mmomtchev avatar Dec 02 '21 18:12 mmomtchev