-
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
Docs: new section for contributing #11812
Conversation
Updated a bunch of paths of docs pages to their contributing counterparts, started adding new content.
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.
🎉 🎉 🎉 super exciting!
- Double check your grammar and capitalise correctly | ||
- Commit and push to your fork | ||
- Create a pull request from your branch | ||
- We recommend using a prefix of `docs`, e.g. `docs/your-change` or `docs-your-change` |
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.
Should we link to a canonical example PR, such as 9c21394#diff-bf544fce773d8a5381f64c37d48d9f12?
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.
Yes! Great idea.
title: Docs Contributions | ||
--- | ||
|
||
Gatsby, unsurprisingly, uses Gatsby for its documentation website. Thank you in advance and cheers for contributing to Gatsby documentation! It's people like you that make this community great! |
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.
It might be useful to highlight the number of people who have already done this, to reassure folks that this is a pretty common thing to do.
git log --pretty="format:%ae" docs/
yields 870 unique emails, so we could say, eg "As of February 2019, over 800 people have contributed to the Gatsby documentation" or whatever makes sense.
|
||
- [Gatsby Style Guide](/contributing/gatsby-style-guide/) | ||
- [Docs Templates](/contributing/docs-templates/) | ||
- [How to Write a Stub](/contributing/how-to-write-a-stub/) |
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.
Might be worth saying something along the lines of "after your first code contribution to the Gatsby repo (including documentation) you become eligible for a free shirt or pair of socks. See the swag page for more details!"
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 added a section for it above these links!
|
||
- **Trusted:** Leverage the power of the latest web technologies including React, Webpack, GraphQL, modern JavaScript, and more. Get the best of both worlds—all the power and conveniences from React and its ecosystem with a really slick and responsive user experience. | ||
|
||
- **Flexible with BYOC (Bring your own content):** Build websites quickly and deploy them safely, no matter where your content lives. Load data from your CMS, static files, a database, or from multiple places at once. Your marketing team is happy because they can use the content management tools they’re familiar with (WordPress, Drupal, Contentful, Shopify). |
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.
We've moved to "content mesh" rather than "BYOC" framing
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.
Good tip! I've updated it.
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.
Awesome stuff! Left some comments, but I'd be pretty happy to get this merged as-is.
CODEOWNERS
Outdated
@@ -1,5 +1,6 @@ | |||
# All docs must be reviewed by the docs team. | |||
/docs/ @gatsbyjs/docs | |||
/contributing/ @gatsbyjs/docs |
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.
These are actually still under docs/ right? e.g. docs/contributing is the path to the new/updated content?
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 yes! The nested docs
got me. Will revert!
|
||
## Making changes to the website | ||
|
||
If you want to make more changes to the website functionality or documentation, that is, change layout components or templates, add sections/pages, follow the steps for [setting up your local dev environment](/contributing/setting-up-your-local-dev-environment/). You can then spin up your own instance of the Gatsby website and make/preview your changes before raising |
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.
If you want to make more changes to the website functionality or documentation, that is, change layout components or templates, add sections/pages, follow the steps for [setting up your local dev environment](/contributing/setting-up-your-local-dev-environment/). You can then spin up your own instance of the Gatsby website and make/preview your changes before raising | |
If you want to make changes, improvements, or add new functionality to the website or documentation follow the steps for [setting up your local dev environment](/contributing/setting-up-your-local-dev-environment/). You can then spin up your own instance of the Gatsby website and make/preview your changes before raising |
To add a new blog post to the gatsbyjs.org blog: | ||
|
||
- Clone [the Gatsby repo](https://github.com/gatsbyjs/gatsby/) and navigate to `/www` | ||
- Run `yarn` to install all of the website's dependencies. |
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.
Not necessary, but maybe we link to a "Why Yarn?" section of the existing documentation here? It's a pretty common question as to why we require it.
- Add your avatar image to `/docs/blog/avatars` | ||
- Add your name to `/docs/blog/author.yaml` | ||
- Add a new folder following the pattern `/docs/blog/yyyy-mm-dd-title`. Within this newly created folder add an `index.md` file. | ||
- Add `title`, `date`, `author`, and `tags` ([view existing tags](https://www.gatsbyjs.org/blog/tags/) or add a new one) to the frontmatter of your `index.md`. If you are cross posting your post you can add `canonicalLink` for SEO benefits. You can check the other blog posts in `/docs/blog` for examples. |
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.
Would it be valuable to have an example here? I've heard that the general term "frontmatter" isn't always known to people:
```md
---
title: "Your Great Blog Post"
date: YYYY-MM-DD
author: John Doe
tags:
- awesome
- post
---
Your next great blog post awaits.
```
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.
Great idea. I seem to remember it only allows a singular author, is that still true? Are tags optional?
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 seem to remember it only allows a singular author, is that still true
Correct! But it would be fairly trivial to get multiple author support if we want that
Are tags optional
Yep! If a post doesn't have tags, we just render null
. It's probably a best practice to add at least one though.
use the file editor to edit and then preview your changes. | ||
2. Before committing the change and raising a PR in the UI, you need to make sure the PR meets the docs contribution criteria: | ||
- Follow the standards outlined in the [Gatsby Style Guide](https://www.gatsbyjs.org/contributing/gatsby-style-guide/). | ||
- If your PR did not come from an issue written by the core team, please add a comment to your PR that explains why it should be included in the docs, according to the [Docs Decision Tree](https://www.gatsbyjs.org/blog/2018-10-12-uptick-docs-contributions-hacktoberfest/#docs-decision-tree-and-examples). |
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.
- If your PR did not come from an issue written by the core team, please add a comment to your PR that explains why it should be included in the docs, according to the [Docs Decision Tree](https://www.gatsbyjs.org/blog/2018-10-12-uptick-docs-contributions-hacktoberfest/#docs-decision-tree-and-examples). | |
- If your PR did not come from an issue written by the core team, please add a comment to your PR that explains why it should be included in the docs, according to the [Docs Decision Tree](/blog/2018-10-12-uptick-docs-contributions-hacktoberfest/#docs-decision-tree-and-examples). |
[docs folder](https://github.com/gatsbyjs/gatsby/tree/master/docs) or [contributing folder](https://github.com/gatsbyjs/gatsby/tree/master/contributing) on GitHub and | ||
use the file editor to edit and then preview your changes. | ||
2. Before committing the change and raising a PR in the UI, you need to make sure the PR meets the docs contribution criteria: | ||
- Follow the standards outlined in the [Gatsby Style Guide](https://www.gatsbyjs.org/contributing/gatsby-style-guide/). |
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.
- Follow the standards outlined in the [Gatsby Style Guide](https://www.gatsbyjs.org/contributing/gatsby-style-guide/). | |
- Follow the standards outlined in the [Gatsby Style Guide](/contributing/gatsby-style-guide/). |
|
||
### Not sure how to start contributing? | ||
|
||
If you are worried or don't know where to start, be sure to check out our [where to participate](/contributing/where-to-participate/) page. You can also reach out to [Marcy Sutton (@marcysutton) on Twitter](https://twitter.com/marcysutton) or submit an issue and a maintainer can help give you guidance! |
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.
Might be worth mentioning pair programming sessions, or otherwise including the core team somehow more obviously in this offer? Or @jlengstorf?
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.
Pair programming would be great to call out. I think it's helpful to give a direct point of contact, but I can see that becoming unsustainable. Probably not worth blocking over; we can adjust this later as we learn more about how this section is used.
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.
That's an easy addition. I've included it on other pages, it makes sense to include it here too!
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.
Updated!
Co-Authored-By: marcysutton <[email protected]>
@@ -0,0 +1,56 @@ | |||
--- | |||
title: Code Contributions |
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.
This document covers contributing content so I find the title misleading, but I don't really have better alternative
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 can see that. The experience is pretty intertwined, I didn't see a clear way to separate them without repeating stuff....but happy to take suggestions
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.
Ah here's why it's confusing: blog content and the website are all grouped into "code contributions". I will make a separate page for "blog and website contributions".
Edited to add my plans for making new pages!
|
||
## Making changes to the website | ||
|
||
If you want to make more changes to the website functionality or documentation, that is, change layout components or templates, add sections/pages, follow the steps for [setting up your local dev environment](/contributing/setting-up-your-local-dev-environment/). You can then spin up your own instance of the Gatsby website and make/preview your changes before raising |
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.
You don't need to make same setup (including gatsby-dev-cli
, etc) to contribute to the website code. I know this was moved from current contributing section, but might be good opportunity to fix our mistake?
First 3 steps from below (contributing to the blog) is enough to get going:
- Clone the Gatsby repo and navigate to
/www
- Run
yarn
to install all of the website's dependencies.- Run
npm run develop
to preview the blog athttp://localhost:8000/blog
.
And people can start hacking on website code.
This is looking great! On your unresolved questions:
I think we've tried to do this in the past, but had difficulty making enough space for an extra icon at smaller browser widths. @fk might have more background on this. Another spot that runs out of space is the homepage - it's tricky to prevent the diagonal stripes from overlapping the main nav items at all browser widths. I like * I included a link to (Once a .org redesign is underway, the contributing section could be reinstated as a top level nav item for all pages and browser sizes. ) |
This change adds a new page for blog and website contributions
Thanks for all the feedback! I've incorporated your updates, including adding a page for "blog and website contributions". Hopefully it's good to go! |
@@ -2,6 +2,12 @@ | |||
title: Blog and Website Contributions | |||
--- | |||
|
|||
We wholeheartedly welcome contributions to the Gatsby blog and website! Instructions this page: |
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.
Instructions on these pages:
maybe?
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 yes! thanks 😅
All the feedback has been incorporated, can we merge this and the RFC? |
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.
Let's do it. Thanks @marcysutton!
## Description As per [rfc/29](gatsbyjs/rfcs#29), this PR introduces a major change to the Gatsby docs: a new `/contributing` section. I did a big find and replace to update all links, and there are also redirects for pages that moved. This is a pretty large PR, and I welcome any and all feedback on the new structure and content. My only request is that we try to resolve any feedback quickly so that community PRs aren't working on outdated stuff. Here's a screenshot of the new Contributing landing page:  ## Related Issues Fixes gatsbyjs#11803, Fixes gatsbyjs#8847 ## Outstanding questions - Do we need to make any additional changes to CODEOWNERS? - I included a link to `/contributing` in the docs sidebar to ease the transition. Should the link use some kind of icon to distinguish that it takes the user away from the docs? - Should we add a new icon to the mobile nav (I didn't make any mobile changes in this PR)? - Any changes to the sidebar, specifically around accordions? ## Subsequent related issues/stubs - Gatsby Governance Model: gatsbyjs#11805 - Triaging GitHub Issues: gatsbyjs#11810
Description
As per rfc/29, this PR introduces a major change to the Gatsby docs: a new
/contributing
section. I did a big find and replace to update all links, and there are also redirects for pages that moved.This is a pretty large PR, and I welcome any and all feedback on the new structure and content. My only request is that we try to resolve any feedback quickly so that community PRs aren't working on outdated stuff.
Here's a screenshot of the new Contributing landing page:
Related Issues
Fixes #11803, Fixes #8847
Outstanding questions
/contributing
in the docs sidebar to ease the transition. Should the link use some kind of icon to distinguish that it takes the user away from the docs?Subsequent related issues/stubs