-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Add tutorial page for creating a generic plugin #20527
Comments
So do you need someone to create a simple plugin and document that process? |
This was in response to an internal discussion on how the tutorial page on our website currently has no tutorial for making a generic plugin. And once you're stuck on the tutorial tab it's rather difficult to find the page, if you assume I'm actually not sure what the best way is while preventing duplication. @laurieontech, thoughts on this? |
The idea is indeed to create a simple plugin and document the process! However, I think @Ekwuno has started on this? If you have Obinna, can you assign this to yourself? If not, let @srs231198 know so he can work on it :) |
Some things to add:
|
The main thing I tried to surface was discoverability. If you end up on the tutorial tab before the docs tab then you're not likely to find what you want if you're looking to create a plugin. A "source plugin" is terminology that may not mean anything to somebody. As for my case, I wasn't looking to create a plugin for sourcing (which I'd assume to have different API's, why else make the distinction at all) but for gathering stats by hooking into the build life cycle. Search for "create plugin" on the tutorial page and you'll not find the page that is present in the docs section. Would have helped me at the time if it somehow popped up. I'm not sure what needs to be done to make that happen, if nothing else. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
I'm so glad you surfaced this, @pvdz. I do think a new guide or tutorial on Creating a Generic Plugin would be useful, and your suggestion of hooking into lifecycle events seems like good material. But if you have other generic plugin ideas–especially super simple ones–let us know! @Ekwuno, let's discuss the format as either a guide or tutorial would work. |
@marcysutton I had a call with @Ekwuno about this last week. I have no strong preference about the followup. And between when I reported it and now, I think something has changed / improved that partially-if-not-completely resolves my initial issue. I trust he'll do what's best here and this issue can be closed after that as far as I'm concerned. |
Summary
I was starting myself to create a plugin and trying to find a tutorial on this and couldn't even find it on our own page. (Algolia search did not help).
We do have https://www.gatsbyjs.org/docs/creating-plugins/ which is very helpful and sufficient for me to get started. Yet it would be nice to have an actual tutorial on how to create a new Gatsby plugin.
Having a plugin tutorial in the actual tutorial tab also helps with discoverability of this topic.
Motivation
Improve discoverability of how to create a plugin
The text was updated successfully, but these errors were encountered: