From 16dc7af3c3b0d1999baa23a58b6815b344354a35 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Mon, 22 Jan 2018 17:07:01 -0800 Subject: [PATCH 1/2] Remove note about their being more parts to the tutorial We'll ship more stuff when we do. No reason to make it sound less than useful as it is. --- www/src/pages/tutorial.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/src/pages/tutorial.js b/www/src/pages/tutorial.js index a21e0a987c097..8a00d16bc692f 100644 --- a/www/src/pages/tutorial.js +++ b/www/src/pages/tutorial.js @@ -11,8 +11,8 @@ export default () => (

Gatsby.js Tutorial

- Hi! We’re so happy you decided to try using Gatsby. This tutorial has (or - rather will have once all parts are written) five parts that'll walk you + Hi! We’re so happy you decided to try using Gatsby. This tutorial has five + parts that'll walk you from getting started developing and building Gatsby sites to deploying a finished and polished high performance static PWA.

From d83f966d74d25390be136e69a582e523266b2f2f Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Mon, 22 Jan 2018 17:08:07 -0800 Subject: [PATCH 2/2] format --- www/src/components/search-form.js | 12 +++++++----- www/src/pages/tutorial.js | 5 ++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/www/src/components/search-form.js b/www/src/components/search-form.js index 277a9ec83b327..bb38b8d4a78a4 100644 --- a/www/src/components/search-form.js +++ b/www/src/components/search-form.js @@ -248,10 +248,10 @@ class SearchForm extends Component { } focusSearchInput(e) { - if (e.key !== `s`) return - if (document.activeElement === this.searchInput) return // eslint-disable-line no-undef - e.preventDefault() - this.searchInput.focus() + if (e.key !== `s`) return + if (document.activeElement === this.searchInput) return // eslint-disable-line no-undef + e.preventDefault() + this.searchInput.focus() } componentDidMount() { @@ -339,7 +339,9 @@ class SearchForm extends Component { placeholder="Search docs" aria-label="Search docs" title="Hit 's' to search docs" - ref={(input) => { this.searchInput = input }} + ref={input => { + this.searchInput = input + }} /> ) : null diff --git a/www/src/pages/tutorial.js b/www/src/pages/tutorial.js index 8a00d16bc692f..84f5575fbf5d1 100644 --- a/www/src/pages/tutorial.js +++ b/www/src/pages/tutorial.js @@ -12,9 +12,8 @@ export default () => (

Gatsby.js Tutorial

Hi! We’re so happy you decided to try using Gatsby. This tutorial has five - parts that'll walk you - from getting started developing and building Gatsby sites to deploying a - finished and polished high performance static PWA. + parts that'll walk you from getting started developing and building Gatsby + sites to deploying a finished and polished high performance static PWA.

This tutorial is for everyone! You do not need to be a programmer