Skip to content

[Idea] plugin documentation #2

@jonnydgreen

Description

@jonnydgreen

I had an idea regarding the next iteration of the documentation (after the initial release) and curious to hear your thoughts!

Idea

It essentially revolves around this: are we able to make the distributed Mercurius plugin documentation directly available in the central mercurius docs portal rather than linking out? Is this something that is even wanted at this time?

Possible solution

My thought was the following:

  • Register a plugin at dev time with the following:
    • URL to fetch from
    • Path to download to
    • Name
    • etc
  • At build time, the docs for this plugin are fetched and built
  • Docs deployed with all registered plugin documentation

Note, Docusaurus supports multi-repos (the same technique for versioning docs): https://docusaurus.io/docs/docs-multi-instance

Things to consider

  • What if a plugins docs breaks the docusaurus build? How should this be handled? E.g. should we lock plugin docs to a commit for example?
  • It's unlikely this would be done for every plugin, so is a mixed approach desirable?

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