Skip to content

Regarding the non-conforming API: This is not a plugin? #4

Open
@leoj3n

Description

@leoj3n

This "plugin" registers itself as a "processor":

https://github.com/bit-docs/bit-docs-process-tags/blob/master/bit-docs.js#L7

However, it does not conform to the API provided by bit-docs/bit-docs:

https://github.com/bit-docs/bit-docs-process-tags/blob/master/process-tags.js#L31

Unlike bit-docs-process-mustache, which does, for example:

https://github.com/bit-docs/bit-docs-process-mustache/blob/master/process-mustache.js#L25

It would seem bit-docs is making special accommodations for the non-conforming API of this plugin:

https://github.com/bit-docs/bit-docs/blob/b50c98cb3bc479bf19381eb0f2bf58ac7d1d62bf/lib/process/file.js#L70-L77

Seeing as this "plugin" is hard-coded into bit-docs, it's not really a plugin then, right?

Is it meant to be a piece that can be swapped out? Should it be made able to do so?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions