You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: src/docs/documentation/references/gatsby-theme.mdx
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,18 +9,17 @@ parent: Documetation
9
9
10
10
> ⚠️ This is experimental and subject to breaking changes.
11
11
12
-
Gatsby themes is one of the coolest features of all times in Gatsby, with the introduction of theming in Gatsby,
13
-
it's easier than ever to get started building a Gatsby site. Shared functionality, data sourcing, and design can all be prepackaged
14
-
as a Gatsby Theme that's an NPM install away.
12
+
Gatsby themes is one of the coolest features of all time in Gatsby. With the introduction of theming in Gatsby,
13
+
it's easier than ever to get started building a Gatsby site. Shared functionality, data sourcing, and design can all be prepackaged as a Gatsby Theme that's an NPM install away.
15
14
16
15
The enjoy Gatsby theme features, use it as an environment for your documentation and give you more power yet, now we have
17
16
a `gatsby-theme-docz` that you can just use Docz as you use in the basic way, but enjoy all features of the Gatsby environment.
18
17
19
-
If you liked it, but you don't know what is a Gatsby theme, please read [the official docs](https://www.gatsbyjs.org/docs/themes/introduction/)
18
+
If you like it, but you don't know what is a Gatsby theme, please read [the official docs](https://www.gatsbyjs.org/docs/themes/introduction/)
20
19
21
20
## How to use
22
21
23
-
To use our gatsby theme it's so simple. First of all, just install some packages:
22
+
It's so simple to use our Gatsby theme. First of all, just install some packages:
> We highly indicate that you set your configuration using `doczrc.js` because of live reload that will change in real time your project settings, if you set your configs using the theme defition you will need to reset your dev server in order to see your changes.
77
+
> We highly recommend that you set your configuration using `doczrc.js` because of live reload that will change in real time your project settings, if you set your configs using the theme definition you will need to reset your dev server in order to see your changes.
79
78
80
79
## Getting data
81
80
82
81
Using our Gatsby Theme you can enjoy all our hooks to get data for your pages and also get data from Gatsby.
83
82
So, you can create isolated pages on Gatsby using gatsby pages and get data from Docz or maybe pass data
84
83
for your Docz documents using source from gatsby.
85
84
86
-
Imagine, that you have your home page insides`/pages` and you want to show all documents parsed from Docz. You can easy get this by doing:
85
+
Imagine, that you have your home page inside`/pages` and you want to show all documents parsed from Docz. You can easy get this by doing:
87
86
88
87
```js
89
88
importReactfrom'react'
@@ -99,7 +98,7 @@ const Home = () => {
99
98
exportdefaultHome
100
99
```
101
100
102
-
Or you can have a mdx document inside Docz that have data from Gatsby too:
101
+
Or you can have a mdx document inside Docz that has data from Gatsby too:
0 commit comments