Skip to content

Commit b7f20e8

Browse files
authored
docs(studio): integrate props components edition
1 parent c18e094 commit b7f20e8

File tree

3 files changed

+43
-40
lines changed

3 files changed

+43
-40
lines changed

docs/content/docs/8.studio/3.content.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ defineProps({
114114

115115
The visual editor simplifies the component edition, allowing you to integrate and edit them directly in the visual editor. Non technical users can play with **slots** and **props** without any technical knowledge.
116116

117-
![vue component edition on Studio](/docs/studio/home-content-studio-dark.webp)
117+
:video{autoplay controls loop src="https://res.cloudinary.com/nuxt/video/upload/v1744126742/studio/finalpropscomps_usfabp.mp4"}
118+
119+
118120

119121
All components in the `/components/content` folder are available in the editor. Studio users can type `/` anywhere while editing to access the list of available components.
120122

121-
:::tip{to="/docs/studio/debug"}
122-
Take a look at this section to validate your `Vue` component integration in the editor in local development.
123-
:::
123+
:tip[Take a look at this section to validate your `Vue` component integration in the editor in local development.]{to="/docs/studio/debug"}
124124
::
125125

126126
#### Integrate built-in components from external libraries

docs/content/index.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ seo:
88
---
99

1010
::u-page-hero
11-
:::div{class="hidden sm:block"}
11+
:::div{.hidden.sm:block}
1212
::::u-color-mode-image
1313
---
1414
class: size-full absolute bottom-0 inset-0 z-[-1]
@@ -54,7 +54,7 @@ Nuxt Content is a module for Nuxt that provides a simple way to manage content f
5454
---
5555
#title{unwrap="p"}
5656
File-based CMS
57-
57+
5858
#description{unwrap="p"}
5959
Write your content in Markdown, YAML, CSV or JSON and query it in your components.
6060
:::
@@ -65,7 +65,7 @@ Nuxt Content is a module for Nuxt that provides a simple way to manage content f
6565
---
6666
#title{unwrap="p"}
6767
Query Builder
68-
68+
6969
#description{unwrap="p"}
7070
Query your content with a MongoDB-like API to fetch the right data at the right time.
7171
:::
@@ -76,7 +76,7 @@ Nuxt Content is a module for Nuxt that provides a simple way to manage content f
7676
---
7777
#title{unwrap="p"}
7878
SQLite powered
79-
79+
8080
#description{unwrap="p"}
8181
Add custom fields to your content, making it suitable for various types of projects.
8282
:::
@@ -87,7 +87,7 @@ Nuxt Content is a module for Nuxt that provides a simple way to manage content f
8787
---
8888
#title{unwrap="p"}
8989
Markdown with Vue
90-
90+
9191
#description{unwrap="p"}
9292
Use Vue components in Markdown files, with props, slots and nested components.
9393
:::
@@ -98,7 +98,7 @@ Nuxt Content is a module for Nuxt that provides a simple way to manage content f
9898
---
9999
#title{unwrap="p"}
100100
Code highlighting
101-
101+
102102
#description{unwrap="p"}
103103
Display beautiful code blocks on your website with the Shiki integration supporting VS Code themes.
104104
:::
@@ -109,7 +109,7 @@ Nuxt Content is a module for Nuxt that provides a simple way to manage content f
109109
---
110110
#title{unwrap="p"}
111111
Visual Editor
112-
112+
113113
#description{unwrap="p"}
114114
Let your team edit your Nuxt Content project with Nuxt Studio, our visual editor.
115115
:::
@@ -120,7 +120,7 @@ Nuxt Content is a module for Nuxt that provides a simple way to manage content f
120120
---
121121
#title{unwrap="p"}
122122
Navigation Generation
123-
123+
124124
#description{unwrap="p"}
125125
Generate a structured object from your content files and display a navigation menu in minutes.
126126
:::
@@ -131,7 +131,7 @@ Nuxt Content is a module for Nuxt that provides a simple way to manage content f
131131
---
132132
#title{unwrap="p"}
133133
Prose Components
134-
134+
135135
#description{unwrap="p"}
136136
Customize HTML typography tags with Vue components to give your content a consistent style.
137137
:::
@@ -142,7 +142,7 @@ Nuxt Content is a module for Nuxt that provides a simple way to manage content f
142142
---
143143
#title{unwrap="p"}
144144
Deploy everywhere
145-
145+
146146
#description{unwrap="p"}
147147
Nuxt Content works on all hosting providers, static, server, serverless & edge.
148148
:::
@@ -155,7 +155,7 @@ Everything you need for content management
155155
#description
156156
Combine file-based simplicity with Vue component power. Build content-rich websites, from documentation pages to complex applications.
157157

158-
:::div{class="hidden sm:block"}
158+
:::div{.hidden.sm:block}
159159
::::u-color-mode-image
160160
---
161161
class: size-full absolute top-0 inset-0
@@ -180,35 +180,35 @@ orientation: horizontal
180180
---
181181
#title
182182
The Everest.
183-
183+
184184
#description
185185
The Everest is the highest mountain in the world, standing at 8,848 meters above sea level.
186186
:::::
187187
::::
188-
188+
189189
```mdc [content/index.md]
190190
---
191191
title: The Mountains Website
192192
description: A website about the most iconic mountains in the world.
193193
---
194-
194+
195195
::landing-hero
196196
---
197197
image: /mountains/everest.png
198198
---
199199
#title
200200
The Everest.
201-
201+
202202
#description
203203
The Everest is the highest mountain in the world, standing at 8,848 meters above sea level.
204204
::
205205
```
206-
206+
207207
```vue [components/LandingHero.vue]
208208
<script setup lang="ts">
209209
defineProps<{ image: string }>()
210210
</script>
211-
211+
212212
<template>
213213
<section class="flex flex-col sm:flex-row sm:items-center flex-col-reverse gap-4 py-8 sm:gap-12 sm:py-12">
214214
<div>
@@ -279,7 +279,7 @@ orientation: horizontal
279279
return queryCollection('blog').all()
280280
})
281281
</script>
282-
282+
283283
<template>
284284
<div>
285285
<h1>Blog</h1>
@@ -291,10 +291,10 @@ orientation: horizontal
291291
</div>
292292
</template>
293293
```
294-
294+
295295
```ts [content.config.ts]
296296
import { defineContentConfig, defineCollection, z } from '@nuxt/content'
297-
297+
298298
export default defineContentConfig({
299299
collections: {
300300
blog: defineCollection({
@@ -362,6 +362,8 @@ orientation: horizontal
362362
---
363363
:video{autoplay controls loop src="https://res.cloudinary.com/nuxt/video/upload/v1733494722/contentv3final_rc8bvu.mp4"}
364364

365+
366+
365367
#title{unwrap="p"}
366368
Let [anyone edit]{.text-(--ui-primary)} your website
367369

@@ -405,7 +407,7 @@ Edit your Nuxt Content website with **Studio**, our CMS platform with Notion-lik
405407
::
406408

407409
::u-page-section
408-
:::div{class="hidden sm:block"}
410+
:::div{.hidden.sm:block}
409411
::::u-color-mode-image
410412
---
411413
class: size-full absolute bottom-0 inset-0 z-[-1]

docs/content/studio/index.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
22
seo:
33
title: Meet Studio, content edition for everyone.
4-
description: Nuxt Studio brings visual editing to your Nuxt Content projects. Anyone can contribute to the website thanks to our versatile editor that adapt to markdown, YAML, or JSON – no technical expertise needed. Built for developers, made for everyone.
4+
description: Nuxt Studio brings visual editing to your Nuxt Content projects.
5+
Anyone can contribute to the website thanks to our versatile editor that
6+
adapt to markdown, YAML, or JSON – no technical expertise needed. Built for
7+
developers, made for everyone.
58
---
69

710
::u-page-hero
8-
:::div{class="hidden sm:block"}
11+
:::div{.hidden.sm:block}
912
::::u-color-mode-image
1013
---
1114
class: size-full absolute bottom-0 inset-x-4 z-[-1]
@@ -51,7 +54,7 @@ Meet Studio, content edition :br for everyone.
5154
---
5255
#title{unwrap="p"}
5356
GitHub & Google Authentication
54-
57+
5558
#description{unwrap="p"}
5659
Personalized workspace for each role: developers, writers, and clients.
5760
:::
@@ -62,7 +65,7 @@ Meet Studio, content edition :br for everyone.
6265
---
6366
#title{unwrap="p"}
6467
Easy content updates
65-
68+
6669
#description{unwrap="p"}
6770
From Markdown to YAML edition, our visual editor is designed for non technical users.
6871
:::
@@ -73,7 +76,7 @@ Meet Studio, content edition :br for everyone.
7376
---
7477
#title{unwrap="p"}
7578
Real-time Collaboration
76-
79+
7780
#description{unwrap="p"}
7881
Write as a team in real-time with our collaboration features.
7982
:::
@@ -84,7 +87,7 @@ Meet Studio, content edition :br for everyone.
8487
---
8588
#title{unwrap="p"}
8689
From Code to Edition
87-
90+
8891
#description{unwrap="p"}
8992
Developers build the foundation while writers can safely edit the content.
9093
:::
@@ -95,7 +98,7 @@ Meet Studio, content edition :br for everyone.
9598
---
9699
#title{unwrap="p"}
97100
Review before publishing
98-
101+
99102
#description{unwrap="p"}
100103
Review your changes before making them live on your website.
101104
:::
@@ -106,7 +109,7 @@ Meet Studio, content edition :br for everyone.
106109
---
107110
#title{unwrap="p"}
108111
Ready-to-use Templates
109-
112+
110113
#description{unwrap="p"}
111114
Get started quickly with pre-built templates for Saas sites, blogs, docs and more.
112115
:::
@@ -126,7 +129,7 @@ orientation: horizontal
126129
},
127130
})
128131
</script>
129-
132+
130133
<template>
131134
<div class="flex items-start gap-3">
132135
<div class="flex items-center justify-center border rounded-lg p-1.5">
@@ -143,7 +146,7 @@ orientation: horizontal
143146
</div>
144147
</template>
145148
```
146-
149+
147150
```mdc [content/index.md]
148151
::home-feature
149152
---
@@ -155,7 +158,7 @@ orientation: horizontal
155158
Edit slots and props inside the Notion-like editor.
156159
::
157160
```
158-
161+
159162
::::preview-card{icon="i-lucide-eye" label="Editor"}
160163
![vue component edition on Studio](/docs/studio/home-content-studio-dark.webp)
161164
::::
@@ -209,9 +212,7 @@ Developers build the foundation their way: custom components, media library, and
209212
reverse: true
210213
orientation: horizontal
211214
---
212-
:video{autoplay controls loop poster="/assets/home/videos/HomeNotionLikePoster.webp" src="https://res.cloudinary.com/nuxt/video/upload/v1733494722/contentv3final_rc8bvu.mp4"}
213-
214-
215+
:video{autoplay controls loop src="https://res.cloudinary.com/nuxt/video/upload/v1744126742/studio/finalpropscomps_usfabp.mp4"}
215216

216217
#title{unwrap="p"}
217218
Let [anyone edit]{.text-(--ui-primary)} your Nuxt Content website
@@ -290,7 +291,7 @@ Edit content as a team and see your site come to life with live preview. From te
290291
::
291292

292293
::u-page-section
293-
:::div{class="hidden sm:block"}
294+
:::div{.hidden.sm:block}
294295
::::u-color-mode-image
295296
---
296297
class: size-full absolute bottom-0 inset-x-4 z-[-1]

0 commit comments

Comments
 (0)