You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[contributing] add notes about docs and PR expectations (gatsbyjs#21065)
* add notes about docs and PR expectations
* add a bit more detail about code demos
* be extra explicit about PR approval requirements
* Apply suggestions from code review
Co-Authored-By: Aisha Blake <[email protected]>
Copy file name to clipboardExpand all lines: docs/contributing/docs-templates.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ Here are some things to keep in mind when deciding where to contribute to Gatsby
12
12
-[Recipes](#recipes) add concise, discoverable, and easy-to-follow instructions for common Gatsby tasks. They are smaller units than tutorials.
13
13
-[Tutorials](#tutorials) should provide step-by-step guidance for Gatsby workflows, listing all pre-requisites and not assuming knowledge or skipping steps.
14
14
15
+
When writing (or reviewing) learning materials that show Gatsby users how to complete tasks, you are expected to **test out any code examples or steps to ensure they work**. This can also help with writing in your own words, rather than copying from other sources. If you have a demo project or code example that strengthens docs and you don't know where to put it, mention it to the Gatsby Learning team in a PR.
16
+
15
17
### Why use templates?
16
18
17
19
Here are templates (models) to follow when contributing to Gatsby docs to ensure that the docs accomplish their purpose. If you have a good reason to deviate from the following template structures, mention those reasons in the PR so others can give proper feedback.
@@ -198,6 +200,7 @@ A recipe should list requirements and include a few short instructions to comple
198
200
199
201
The components of a recipe are:
200
202
203
+
- Overview link on [`recipes.md`](https://github.com/gatsbyjs/gatsby/blob/master/docs/docs/recipes.md)
201
204
- The name of the recipe, which should describe a single task
202
205
- A 1-2 sentence description motivating what the recipe is for
203
206
- Prerequisites and requirements
@@ -209,8 +212,6 @@ Recipes should be short. This is accomplished by limiting steps to what is uniqu
209
212
210
213
If you're finding a recipe is becoming too long to fit on the Docs Recipes page due to including many prerequisites or steps, consider writing a tutorial instead.
211
214
212
-
> Note: If you add a new recipe to the existing sections, be sure to add it to the list on the [`recipes.md` landing page](https://github.com/gatsbyjs/gatsby/blob/master/docs/docs/recipes.md)!
213
-
214
215
### Recipe categories
215
216
216
217
Grouping recipes by topic will allow users to navigate and learn by subject matter. As recipes following the new format are introduced, you might find a section needs an h2 heading added for the group. The older-style recipes should be gradually replaced with actionable recipes following the template below.
@@ -235,6 +236,10 @@ Here's a template for a new recipe category:
235
236
236
237
### Recipe parts
237
238
239
+
#### Overview link
240
+
241
+
To make sure your recipe is linked from the overview page, you must add it to the appropriate category in [`recipes.md`](https://github.com/gatsbyjs/gatsby/blob/master/docs/docs/recipes.md). Otherwise, it will be difficult for Gatsby users to find it, which isn't good for anyone!
242
+
238
243
#### Title and description
239
244
240
245
To help motivate the purpose of a recipe, its title should clearly indicate the task being covered; not just the tool or API being used. E.g. "Using the StaticQuery Component" is more descriptive than "StaticQuery".
Copy file name to clipboardExpand all lines: docs/contributing/managing-pull-requests.md
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,8 @@ We typically look for the following in [PRs that add documentation](/contributin
41
41
- Headings – whether the heading levels in a doc start with h2 (`##` in Markdown) and grow in order, establishing an accessible content hierarchy
42
42
- Type & Format – whether docs and learning materials align with our recommendations and [docs templates](/contributing/docs-templates/)
43
43
44
+
If a PR includes code examples, tutorials, recipes, or actionable guides, the reviewer must test out the material to ensure accuracy. **No PRs should be approved or merged that haven't been vetted for errors or omissions.**
45
+
44
46
#### Code
45
47
46
48
For [PRs that add code](/contributing/code-contributions/) (whether a feature or fix), we look for the following:
@@ -63,10 +65,11 @@ For PRs that add a site or a starter to the showcase, we ought to check:
63
65
64
66
For PRs that add a blog post, we ought to check:
65
67
68
+
- Approval – has the [blog post been approved](/contributing/blog-and-website-contributions/) by marketing or another Gatsby internal team?
66
69
- Correctness — whether the added documentation is technically correct
67
70
- Style — whether the written language follows our [style guide](/contributing/gatsby-style-guide/)
68
71
- Subject matter — blog posts should not be purely promotional, spammy, or inappropriate. An author should check with a member of the Gatsby team that their post is appropriate for the blog before creating their PR.
69
-
- Time Sensitivity — blog posts are more time dependent than docs, especially since they get buried after more posts are published. If something is continually relevant and more of a general how-to, it should probably go in the [Reference Guides](/docs/guides/) section of the docs.
72
+
- Time Sensitivity — blog posts are more time dependent than docs, especially since they get buried after more posts are published. If something is continually relevant and more of a general how-to, it should go in the [Reference Guides](/docs/guides/) or [Tutorials](/tutorial/) section of the docs.
70
73
71
74
## Automated Checks
72
75
@@ -169,7 +172,7 @@ Every PR opened in the repository needs to be approved before it can be merged.
169
172
Typically this is:
170
173
171
174
-**gatsbyjs/core** for Code
172
-
-**gatsbyjs/docs** for Documentation
175
+
-**gatsbyjs/learning** for Documentation
173
176
174
177
We also have `CODEOWNERS` set on different parts of the repo and an approval by someone in the `CODEOWNERS` for the file(s) the PR is changing can also suffice.
0 commit comments