Skip to content

Commit 1369881

Browse files
ashiishmeLekoArts
andauthored
chore(docs): Remove outdated information from Theme Guide (#32849)
Co-authored-by: Lennart <[email protected]>
1 parent 30d7a04 commit 1369881

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

docs/tutorial/building-a-theme.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In this tutorial, you'll learn how to build a theme plugin for Gatsby. This tuto
88

99
In this section, you'll learn how to structure folders and configure yarn workspaces to develop Gatsby themes. You'll create two workspaces, `gatsby-theme-events` and `site`.
1010

11-
Each workspace can be run separately, as well as one depending on the other. In this example, `gatsby-theme-events` will be a dependency of `site`.
11+
In this example, `gatsby-theme-events` will be a dependency of `site` so you'll run `site` to see everything working.
1212

1313
### Create a new empty folder
1414

@@ -47,12 +47,7 @@ In the `package.json` file in `gatsby-theme-events`, add the following:
4747
"name": "gatsby-theme-events",
4848
"version": "1.0.0",
4949
"main": "index.js",
50-
"license": "MIT",
51-
"scripts": {
52-
"build": "gatsby build",
53-
"clean": "gatsby clean",
54-
"develop": "gatsby develop"
55-
}
50+
"license": "MIT"
5651
}
5752
```
5853

@@ -154,19 +149,15 @@ The `gatsby-theme-events/package.json` file should now include the following:
154149
}
155150
```
156151

157-
### Run `site` and `gatsby-theme-events`
152+
### Run `site`
158153

159-
Run both `site` and `gatsby-theme-events` to verify that they're working.
154+
Run `site` to verify that it's working.
160155

161156
```shell
162157
yarn workspace site develop
163158
```
164159

165-
```shell
166-
yarn workspace gatsby-theme-events develop
167-
```
168-
169-
In both cases, you should see a Gatsby site successfully running in development mode. Since there's no content, visiting the site should serve a default Gatsby 404 page.
160+
You should see a Gatsby site successfully running in development mode. Since there's no content, visiting the site should serve a default Gatsby 404 page.
170161

171162
## Add static data to a theme
172163

@@ -231,7 +222,7 @@ module.exports = {
231222
}
232223
```
233224

234-
With this saved, restart the dev server:
225+
With this saved, restart the development server:
235226

236227
```shell
237228
yarn workspace gatsby-theme-events develop

0 commit comments

Comments
 (0)