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/1.index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,13 @@ Welcome to Nuxt Content v3, a major upgrade that brings enhanced performance and
12
12
13
13
Collections organize related items within your project, helping you manage large datasets more efficiently. Key benefits include:
14
14
15
-
-**Structured Data**: Configure database architecture and define collections in [`content.config.ts`](/getting-started/collections#defining-collections)
15
+
-**Structured Data**: Configure database architecture and define collections in [`content.config.ts`](/docs/getting-started/collections#defining-collections)
16
16
-**Type-safe Queries**: Direct TypeScript integration across all utilities
17
17
-**Automatic Validation**: Ensure data consistency across frontmatter fields and data files (json, yml...)
18
18
-**Advanced Query Builder**: Filter, sort, and paginate your collections with ease
19
19
-**Studio Integration**: Enhanced form generation and optimal editing experience through [Studio](https://nuxt.studio)
20
20
21
-
Learn more about [Content Collections](/getting-started/collections).
21
+
Learn more about [Content Collections](/docs/getting-started/collections).
22
22
23
23
### Improved Performance
24
24
@@ -29,7 +29,7 @@ V3 addresses this by transitioning to SQL-based storage in production. This swit
29
29
Benefits include:
30
30
31
31
-**Optimized Queries**: SQL storage enables ultra-fast data retrieval
32
-
-**Universal Compatibility**: Our adapter-based system integrates SQL databases across all deployment modes (static, server-side, SPA, edge) and platforms. See our [platform deployment options](/deploy/node) for details. We welcome community contributions for additional adapters.
32
+
-**Universal Compatibility**: Our adapter-based system integrates SQL databases across all deployment modes (static, server-side, SPA, edge) and platforms. See our [platform deployment options](/docs/deploy/node) for details. We welcome community contributions for additional adapters.
Copy file name to clipboardExpand all lines: docs/content/docs/1.getting-started/2.installation.md
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,11 +55,46 @@ export const collections = {
55
55
This configuration creates a default `content` collection that processes all Markdown files in your project. You can customize the collection settings based on your needs.
56
56
57
57
::tip
58
-
The `type: page` setting specifies that each file in the collection represents a [Markdown page](/usage/markdown).
58
+
The `type: page` setting specifies that each file in the collection represents a [Markdown page](/docs/usage/markdown).
59
59
::
60
60
61
61
::note{to="/getting-started/collections"}
62
62
Learn more in our **Collections guide**.
63
63
::
64
64
65
+
### Create your First Markdown Page
66
+
67
+
Create a `content/index.md` file in your project root directory:
68
+
69
+
```md [content/index.md]
70
+
# My First Page
71
+
72
+
Here is some content.
73
+
```
74
+
75
+
Read more about writing [Markdown pages](/docs/usage/markdown).
76
+
77
+
### Display your Page
78
+
79
+
Create a `pages/index.vue` file and display the page content:
80
+
81
+
```vue [pages/index.vue]
82
+
<script setup lang="ts">
83
+
const { data: home } = await useAsyncData(() => queryCollection('content').path('/').first())
84
+
85
+
useSeoMeta({
86
+
title: home.value?.title,
87
+
description: home.value?.description
88
+
})
89
+
</script>
90
+
91
+
<template>
92
+
<ContentRenderer v-if="home" :value="home" />
93
+
<div v-else>Home not found</div>
94
+
</template>
95
+
```
96
+
97
+
::tip{icon="i-lucide-rocket"}
98
+
That's it! You've now created your first Nuxt Content page.
Copy file name to clipboardExpand all lines: docs/content/docs/1.getting-started/5.configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -216,7 +216,7 @@ type Highlight = false | object
216
216
```
217
217
::
218
218
219
-
Nuxt Content uses [Shiki](https://github.com/shikijs/shiki) to provide syntax highlighting for [`ProsePre`](/components/prose#prosepre) and [`ProseCode`](/components/prose#prosecode).
219
+
Nuxt Content uses [Shiki](https://github.com/shikijs/shiki) to provide syntax highlighting for [`ProsePre`](/docs/components/prose#prosepre) and [`ProseCode`](/docs/components/prose#prosecode).
0 commit comments