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
Copy file name to clipboardExpand all lines: docs/docs/adding-markdown-pages.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -71,9 +71,9 @@ plugins: [
71
71
Create a folder in the `/src` directory of your Gatsby application called `markdown-pages`.
72
72
Now create a Markdown file inside it with the name `post-1.md`.
73
73
74
-
#### Including frontmatter
74
+
#### Frontmatter for metadata in markdown files
75
75
76
-
When you create a Markdown file, at the top of the file, add the frontmatter (metadata) block below. You can have different key value pairs that are relevant to your website. This block will be parsed by `gatsby-transformer-remark` as `frontmatter`. The GraphQL API will provide this data in your React components.
76
+
When you create a Markdown file, you can include a set of key value pairs that can be used to provide additional data relevant to specific pages in the GraphQL data layer. This data is called frontmatter and is denoted by the triple dashes at the start and end of the block. This block will be parsed by `gatsby-transformer-remark` as `frontmatter`. The GraphQL API will provide the key value pairs as data in our React components.
Copy file name to clipboardExpand all lines: docs/tutorial/writing-documentation-with-docz.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ module.exports = {
44
44
45
45
Docz searches your directories for `mdx` files and renders them. Create a `docs` folder at the root of your project. Place an `index.mdx` file inside this directory with the following content:
46
46
47
-
```md:title=docs/index.mdx
47
+
```mdx:title=docs/index.mdx
48
48
---
49
49
name: Getting Started
50
50
route: /
@@ -102,7 +102,7 @@ The button will display its text by default with a `font-size` of `18px` however
102
102
103
103
Create a new file in the `docs` directory to document your newly created button component. Call the file `button.mdx`:
104
104
105
-
```md:title=docs/button.mdx
105
+
```mdx:title=docs/button.mdx
106
106
---
107
107
name: Button
108
108
menu: Components
@@ -115,7 +115,7 @@ Buttons make common actions more obvious and help users more easily perform them
115
115
116
116
Docz offers some internal components you can use to display the component and its properties. Import both these and your component itself into the document and use them:
0 commit comments