Skip to content

Commit 40925dc

Browse files
committed
docs: update
1 parent d201414 commit 40925dc

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

docs/content/docs/1.getting-started/2.installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ export const collections = {
5555
This configuration creates a default `content` collection that processes all Markdown files located in the `content` folder of your project. You can customize the collection settings based on your needs.
5656

5757
::tip
58-
The `type: page` setting specifies that each file in the collection represents a [Markdown page](/docs/usage/markdown).
58+
The `type: page` means there is a 1-to-1 relationship between content files and pages on your site.
5959
::
6060

61-
::note{to="/getting-started/collections"}
61+
::note{to="/docs/usage/collections"}
6262
Learn more in our **Collections guide**.
6363
::
6464

docs/content/docs/2.usage/1.collections.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ title: Define Collections
33
description: 'Learn how to define and configure content collections in your Nuxt application.'
44
---
55

6-
The Nuxt Content module automatically parses any content files within the `content` directory located at the root of your Nuxt application. This setup allows you to freely structure the folder to suit your project's needs. For a better organization, consider using Content Collections, which let you categorize and manage content more effectively. These collections are defined in a `content.config.ts` file.
6+
The Nuxt Content module automatically parses any content files within the `content` directory located at the root of your Nuxt application. This setup allows you to freely structure the folder to suit your project's needs.
7+
8+
For a better organization, consider using Content Collections, which let you categorize and manage content more effectively. These collections are defined in a `content.config.ts` file.
79

810
::warning
911
If no `content.config.ts` file is present, all files within the content folder are parsed and imported by default. However, once a config file is added, only files matching the specified path patterns defined in collections will be imported.
@@ -42,7 +44,7 @@ export const collections = {
4244
```
4345

4446

45-
::note{to="/usage/types"}
47+
::note{to="/docs/usage/types"}
4648
Learn more about collection types.
4749
::
4850

docs/content/docs/2.usage/2.types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,5 @@ The data type is useful for content that doesn’t directly correspond to a webp
108108
With data collections, you have complete control over the schema, allowing you to define custom structures.
109109

110110
::note
111-
There’s no strict relationship between collection type and file extension. For instance, a **page** collection can use [Markdown](/usage/markdown) or [YAML](/usage/yaml) or JS[Markdown](/usage/json) files, and **data** collections can use any of these formats as well.
111+
There’s no strict relationship between collection type and file extension. For instance, a **page** collection can use [Markdown](/docs/usage/markdown) or [YAML](/docs/usage/yaml) or JS[Markdown](/docs/usage/json) files, and **data** collections can use any of these formats as well.
112112
::
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Collection sources
3+
description: Learn about the way to import tour files in your collection Nuxt Content.
4+
---
5+
6+
TODO
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ Create authors files in `content/authors/` directory.
4343
```
4444
::
4545

46-
::callout
47-
Note that each file in `data` collection should contain only one object, therefore having top level array in a JSON file will cause invalid result in query time.
46+
::warning
47+
Each file in `data` collection should contain only one object, therefore having top level array in a JSON file will cause invalid result in query time.
4848
::
4949

5050
## Query Data
@@ -61,4 +61,4 @@ const theAuthor = await queryCollection('authors')
6161
const authors = await queryCollection('authors')
6262
.order('name', 'DESC')
6363
.all()
64-
```
64+
```

0 commit comments

Comments
 (0)