Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

implement a plugin framework #1448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mmomtchev wants to merge 13 commits into documentationjs:master
base: master
Choose a base branch
Loading
from mmomtchev:plugin-framework

Conversation

Copy link
Contributor

@mmomtchev mmomtchev commented Nov 30, 2021

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

tomalec reacted with thumbs up emoji
Copy link
Contributor Author

Copy link
Contributor Author

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

Copy link
Contributor Author

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /