Skip to content

Commit 4cc5543

Browse files
committed
Add Gatsby installation instructions
1 parent 07c9a30 commit 4cc5543

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

.docz/app/db.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,25 @@
6666
]
6767
}
6868
},
69+
{
70+
"key": "src/pages/installation/gatsby.mdx",
71+
"value": {
72+
"name": "Gatsby",
73+
"route": "/installation/gatsby",
74+
"menu": "Installation",
75+
"id": "564fc0dc9ce695d4d297e27fac07047b",
76+
"filepath": "src/pages/installation/gatsby.mdx",
77+
"link": "https://github.com/AryanJ-NYC/reactandtypescript.dev/edit/master/src/pages/installation/gatsby.mdx",
78+
"slug": "src-pages-installation-gatsby",
79+
"headings": [
80+
{
81+
"slug": "gatsby",
82+
"depth": 1,
83+
"value": "Gatsby"
84+
}
85+
]
86+
}
87+
},
6988
{
7089
"key": "src/pages/installation/create-react-app.mdx",
7190
"value": {

.docz/app/imports.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ export const imports = {
77
import(
88
/* webpackPrefetch: true, webpackChunkName: "src-pages-examples-functional-components" */ 'src/pages/examples/functional-components.mdx'
99
),
10+
'src/pages/installation/gatsby.mdx': () =>
11+
import(
12+
/* webpackPrefetch: true, webpackChunkName: "src-pages-installation-gatsby" */ 'src/pages/installation/gatsby.mdx'
13+
),
1014
'src/pages/installation/create-react-app.mdx': () =>
1115
import(
1216
/* webpackPrefetch: true, webpackChunkName: "src-pages-installation-create-react-app" */ 'src/pages/installation/create-react-app.mdx'

src/pages/installation/gatsby.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Gatsby
3+
route: /installation/gatsby
4+
menu: Installation
5+
---
6+
7+
# Gatsby
8+
9+
1\. Install [`gatsby-plugin-typescript`](https://www.gatsbyjs.org/packages/gatsby-plugin-typescript/).
10+
11+
```
12+
npm install gatsby-plugin-typescript
13+
```
14+
15+
or
16+
17+
```
18+
yarn add gatsby-plugin-typescript
19+
```
20+
21+
2\. Add to array of `plugins` in `gatsby-config.js`:
22+
23+
```js
24+
// gatsby-config.js
25+
module.exports = {
26+
// ...,
27+
plugins: [...`gatsby-plugin-typescript`],
28+
};
29+
```

0 commit comments

Comments
 (0)