-
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
Quick fix to recipes discoverability #23767
Conversation
`gatsby recipes https://example.com/recipe-url.mdx` | ||
``` | ||
|
||
Note: GitHub doesn't yet support viewing MDX files. In order to view a recipe in the GitHub UI you'll want to click into the recipe file and click on the "Raw" button. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: GitHub doesn't yet support viewing MDX files. In order to view a recipe in the GitHub UI you'll want to click into the recipe file and click on the "Raw" button. | |
Note: GitHub doesn't yet support viewing MDX files. In order to view a recipe in the GitHub UI you'll want to click into the recipe file and click on the "Raw" button. | |
This is failing lint on a missing newline at the end of the file!
docs/docs/recipes.md
Outdated
@@ -29,6 +29,12 @@ A live example may not be possible depending on the nature of the recipe, in whi | |||
See [docs templates](/docs/docs-templates/) in the contributing docs for more help. | |||
--> | |||
|
|||
## New automated recipes available! | |||
|
|||
Some recipes are now available in a more automated form - you can run some steps of the recipes through the CLI! [See a list of these automated recipes here](/docs/automated-recipes.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking something like this? Probably needs some wordsmithing, but since we don't have full coverage on the recipes listed here I'm not sure we're ready to conflate the two.
You may have found this page when searching for the new automated Gatsby recipes! Note that these are still experimental and thus can be found in the Gatsby GitHub repo recipes package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh nice I like that!
The recipes list makes a lot of sense but it starts pulling in a lot of docs review/repo awareness perhaps prematurely. Alternatively, the list could live in markdown at the root of the recipes package directory? |
thanks @laurieontech and @ascorbic!
@laurieontech I think that could be an effective alternative! The deciding factors imo are:
Afaik, wouldn't the maintenance for a doc vs a markdown file in the recipes repo be similar? Correct me if I'm wrong! Finally, if this does go in docs, I need a reminder of where the docs sidebar file is. I remember it being |
The overhead is roughly the same but the review cycle for something that lives in docs vs the recipes package is different. If we do end up adding the listing to the docs we should think on the sidebar discoverability. With the duplicate recipes name I think we’re better off with a direct link rather than a new section. Especk ally because ideally they’re the same section of the docs in the long term. |
technical idea for generating the list: gatsby official and community recipies should have an npm package tag like |
100% agree with Laurie's assessment. For right now, while automated recipes are still an experiment, I think we should keep this information in the |
ok @laurieontech and @AishaBlake I think this will be the simplest quick fix to solve SEO issue
Thanks to @shrthnd for an idea that inspired the last commit, too! #23320 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this is a good place to start! Thanks, @shannonbux!
Thanks for fixing the blog link @AishaBlake! |
Problem
@laurieontech pointed out (and I can provide evidence from watching people's screen recordings of using recipes!) that it is difficult to find the list of recipes or instructions on how to use them.
Solution
The top google hits for "gatsby recipes" are now #1 the blogpost (which works well for helping people discover the right information) and #2 www.gatsbyjs.org/docs/recipes/ which does not work well for helping people discover the new form of recipes.
This PR is a quick fix and maybe could use some improvements: