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
Schemas enforce data consistency within a collection and serve as the source of truth for TypeScript types.
52
52
53
-
On top of the [built-in fields](#built-in-fields), you can define a schema by adding the `schema` property to your collection by using a [`zod`](https://zod.dev) schema:
53
+
On top of the built-in fields, you can define a schema by adding the `schema` property to your collection by using a [`zod`](https://zod.dev) schema:
54
54
55
55
```ts [content.config.ts]
56
56
import { defineCollection, defineContentConfig, z } from'@nuxt/content'
You can bind data within your Markdown document using the `{{ $doc.variable || 'defaultValue' }}` syntax. These values can be defined in the YAML front matter at the top of the document, within each MDC component, or injected using the `data` prop of the `<ContentRenderer>` component.
Copy file name to clipboardExpand all lines: docs/content/docs/7.studio/1.setup.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,7 @@ The `__studio.json` file is generated but you encounter a `Forbidden error: inva
80
80
This information should be populated automatically in most cases. We support most popular providers (Vercel, Netlify, etc.), but if you're using a non supported provider or a custom one, it may not be fetched correctly.
81
81
::
82
82
83
+
<!-- markdownlint-disable-next-line -->
83
84
2. You can manually override this data by setting those configs in your `nuxt.config.ts`:
3. By ensuring these fields are correctly set, you can resolve the `Forbidden error` and successfully enable your site preview on Nuxt Studio. If not, please contact us on the [Discord server](https://discord.gg/sBXDm6e8SP).
Copy file name to clipboardExpand all lines: docs/content/docs/7.studio/3.content.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ seo:
12
12
13
13
Nuxt Studio offers a versatile workspace for both developers and content writers, giving them the freedom to choose between our differents editors:
14
14
15
-
-[Notion-like editor](#markdown-editor-markdown-files) for `Markdown` files
15
+
-[Notion-like editor](#notion-like-editor-markdown-files) for `Markdown` files
16
16
-[Form editor](#form-editor-yaml-and-json-files) for `YAML` and `JSON` files
17
17
-[Code editor](#code-editor) for any kind of files (for technical users only)
18
18
@@ -55,6 +55,7 @@ One of this editor standout features is its ability to integrate and customize a
55
55
In other terms, a developer can create any kind of visually complex components and editors will be able to use them and focus on the content. An editor can also tweak the component properties, styles, and behavior to fit its specific requirements as long as the developer made it customizable.
56
56
57
57
::steps{level="4"}
58
+
58
59
#### Create your component
59
60
60
61
You can create Vue components and integrate them into Markdown. They just need to be located in the `/components/content` folder to be available.
0 commit comments