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/content/docs/1.getting-started/3.configuration.md
-1
Original file line number
Diff line number
Diff line change
@@ -242,7 +242,6 @@ Content module uses files path to generate the slug, default title and content o
242
242
243
243
If set to `true`, the path will be prefixed with a leading slash. Default value is `true`.
244
244
245
-
246
245
### `pathMeta.slugifyOptions`
247
246
248
247
Content module uses [slugify](https://github.com/simov/slugify) to generate the slug, you can customize the behavior of slugify with this option.
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-1
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-1
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.
To create a customized editing experience for your `app.config.ts` in Studio, you need to create a `nuxt.schema.ts` file in your project. This schema serves as a representation of your `app.config.ts`.
27
27
28
-
####Helpers
28
+
### Helpers
29
29
30
30
- The `group` method allows you to customize parent objects.
31
31
- The `field` method allows you to customize inputs (aka leaf).
0 commit comments