Skip to content
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

[Idea] plugin documentation #2

Open
jonnydgreen opened this issue Oct 14, 2024 · 2 comments
Open

[Idea] plugin documentation #2

jonnydgreen opened this issue Oct 14, 2024 · 2 comments

Comments

@jonnydgreen
Copy link

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?
@simoneb
Copy link

simoneb commented Oct 15, 2024

If done properly, it may work, but ultimately I think that decentralization works better here. I do agree though that a more consistent way to document plugins (and this is true also and especially for the broader fastify ecosystem) would be valuable, because there are large inconsistencies across plugins which give a feeling of fragmentation.

So, rather than centralizing the documentation, I would like to find ways to make the documentation more consistent.

@jonnydgreen
Copy link
Author

Thanks for your input! I'll update the idea include some stuff on how to make the documentation more consistent across the board as well and include the decentralised approach so we have everything on the table - stay tuned! :)

In a decentralised model, I guess my only concern would be discoverability of plugins. Do you have anything in mind regarding this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants