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

Stub Articles and new names #7200

Merged
merged 3 commits into from
Aug 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added docs/docs/custom-components.md
Empty file.
19 changes: 19 additions & 0 deletions docs/docs/sourcing-content-and-data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Sourcing Content and Data
---

This is a stub. Help our community expand it.

Please use the [Gatsby Style Guide](/docs/gatsby-style-guide/) to ensure your
pull request gets accepted.

### Notes on this document:

Tl;dr: This doc is part of creating an onboarding experience more similar to express/flask/create-react-app/react-static). It will be like a `create-gatsby-app` experience. This will include making it clearer that you can start building with Gatsby without GraphQL (through adding unstructured data, for example) and make it clear that GraphQL is a more "advanced" requirement for ambitious use cases. It will also involve building different CLI's for different types of sites.

### Why make these big changes?

- GraphQL learning curve is one of the top 3 pain points of Gatsby users
- GraphQL learning curve drives many people away from Gatsby
- Many people think GraphQL is a requirement for using Gatsby, which isn't true
- Probably 5% need GraphQL but we're making 100% of them go through GraphQL.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

who is "we" here? sentence structure

8 changes: 8 additions & 0 deletions docs/docs/sourcing-from-contentful.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Sourcing from Contentful
---

This is a stub. Help our community expand it.

Please use the [Gatsby Style Guide](/docs/gatsby-style-guide/) to ensure your
pull request gets accepted.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Prose
title: Sourcing from Databases
---

This is a stub. Help our community expand it.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: WordPress
title: Sourcing from Drupal
---

This is a stub. Help our community expand it.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Netlify CMS
title: Sourcing from Netlify CMS
---

In this guide, we'll walk through setting up a site with content management using [Netlify
Expand Down
8 changes: 8 additions & 0 deletions docs/docs/sourcing-from-private-apis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Sourcing from Private APIs
---

This is a stub. Help our community expand it.

Please use the [Gatsby Style Guide](/docs/gatsby-style-guide/) to ensure your
pull request gets accepted.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Contentful
title: Sourcing from Prose
---

This is a stub. Help our community expand it.
Expand Down
8 changes: 8 additions & 0 deletions docs/docs/sourcing-from-saas-services.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Sourcing from SaaS Services
---

This is a stub. Help our community expand it.

Please use the [Gatsby Style Guide](/docs/gatsby-style-guide/) to ensure your
pull request gets accepted.
8 changes: 8 additions & 0 deletions docs/docs/sourcing-from-the-filesystem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Sourcing from the Filesystem
---

This is a stub. Help our community expand it.

Please use the [Gatsby Style Guide](/docs/gatsby-style-guide/) to ensure your
pull request gets accepted.
8 changes: 8 additions & 0 deletions docs/docs/sourcing-from-wordpress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Sourcing from WordPress
---

This is a stub. Help our community expand it.

Please use the [Gatsby Style Guide](/docs/gatsby-style-guide/) to ensure your
pull request gets accepted.
2 changes: 1 addition & 1 deletion docs/docs/drupal.md → docs/docs/testing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Drupal
title: Testing
---

This is a stub. Help our community expand it.
Expand Down
7 changes: 7 additions & 0 deletions www/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ exports.createPages = ({ graphql, actions }) => {
isPermanent: true,
})

createRedirect({
fromPath: `/docs/netlify-cms`,
isPermanent: true,
redirectInBrowser: true,
toPath: `/docs/sourcing-from-netlify-cms`,
})

return new Promise((resolve, reject) => {
const docsTemplate = path.resolve(`src/templates/template-docs-markdown.js`)
const blogPostTemplate = path.resolve(`src/templates/template-blog-post.js`)
Expand Down