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

[1.0] Add part 1 of the Gatsby v1 tutorial #1107

Merged
merged 19 commits into from Jun 5, 2017
Merged

Conversation

KyleAMathews
Copy link
Contributor

No description provided.

@KyleAMathews
Copy link
Contributor Author

This adds an MVP for part 1 of the Gatsby tutorial.

In writing it, I made a number of small code tweaks as well:

  • Make gatsby-config.js really and truly not required (there were a few places that expected it still)
  • Tweak the development 404 page copy.
  • Change gatsby serve-build to just gatsby serve
  • Added a default html.js component. The more I think about it, the vast majority of sites won't need to customize their html.js file directly. They'll just add plugins which add head/body components e.g. gatsby-plugin-react-helmet. Manage html meta info with components.

@KyleAMathews
Copy link
Contributor Author

What's cool is that now to build Gatsby you literally only need one react.js component at src/pages/index.js + the gatsby package. The tutorial is a "from scratch" style tutorial so starts you from a blank directory and builds up from there.

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jun 5, 2017

Deploy preview ready!

Built with commit 0994473

https://deploy-preview-1107--using-drupal.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jun 5, 2017

Deploy preview ready!

Built with commit 0994473

https://deploy-preview-1107--gatsbyjs.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jun 5, 2017

Deploy preview ready!

Built with commit 0994473

https://deploy-preview-1107--gatsbygram.netlify.com

@KyleAMathews
Copy link
Contributor Author

Link to the tutorial https://deploy-preview-1107--gatsbyjs.netlify.com/tutorial/part-one/

Headed out for a little while then will merge and start working on the next parts. Lemme know if anyone has any comments on the tutorial and code changes.

@KyleAMathews
Copy link
Contributor Author

Oh and line number highlighting in code blocks. If someone could fix the CSS so the highlight goes all the way across the block I'd really appreciate that. I spent far too long fighting that. CSS...

screen shot 2017-06-05 at 1 57 11 pm

@KyleAMathews KyleAMathews merged commit dcf7650 into 1.0 Jun 5, 2017
@KyleAMathews KyleAMathews deleted the tutorial-part-1 branch June 5, 2017 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants