Skip to content

Commit 1bcd77b

Browse files
committed
docs: update
1 parent 606d5ca commit 1bcd77b

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ title: Define
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.
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.
77

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.
8+
For 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.
99

1010
::warning
1111
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.
@@ -53,8 +53,8 @@ On top of the [built-in fields](#built-in-fields), you can define a schema by ad
5353
import { defineCollection, z } from '@nuxt/content'
5454

5555
export const collections = {
56-
docs: defineCollection({
57-
source: '**.md',
56+
blog: defineCollection({
57+
source: 'blog/**.md',
5858
type: 'page',
5959
// Define custom schema for docs collection
6060
schema: z.object({

docs/content/index.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
hero:
22
title: The git-based CMS for<br> Nuxt projects.
3-
description: Nuxt Content is a module for Nuxt that provides a simple way to manage content for your application. It allows developers to write their content in Markdown, YAML, or JSON files and then easily import and display it in their application.
3+
description: Nuxt Content is a module for Nuxt that provides a simple way to manage content for your application. It allows developers to write their content in Markdown, YAML, or JSON files and then query and display it in their application.
44
image:
55
dark: /home/hero-dark.svg
66
light: /home/hero-light.svg
@@ -30,28 +30,28 @@ sections:
3030
description: Use Vue components in Markdown files, with props, slots and nested components.
3131
- title: Code highlighting
3232
icon: i-lucide-list-minus
33-
description: Display beautiful code blocks on your website with the Shiki integration supporting VS Code.
34-
- title: Visual editor
33+
description: Display beautiful code blocks on your website with the Shiki integration supporting VS Code themes.
34+
- title: Visual Editor
3535
icon: i-lucide-mouse-pointer-click
36-
description: Let your team edit your Nuxt Content project with a visual editor.
36+
description: Let your team edit your Nuxt Content project with Nuxt Studio, our visual editor.
3737
- title: Navigation Generation
3838
icon: i-lucide-panel-left
39-
description: Get your content structure in a structured object and display a navigation in minutes.
40-
- title: Prose Component
39+
description: Generate a structured object from your content files and display a navigation menu in minutes.
40+
- title: Prose Components
4141
icon: i-lucide-heading-1
42-
description: Easily drop in components to render different parts of your Markdown content.
42+
description: Customize HTML typography tags with Vue components to give your content a consistent style.
4343
- title: Deploy everywhere
4444
icon: i-lucide-globe
4545
description: Nuxt Content works on all hosting providers, static, server, serverless & edge.
4646
- title: Everything you need for content management
47-
description: Combine file-based simplicity with Vue component power. Build any content-rich website, from documentation to complex applications.
47+
description: Combine file-based simplicity with Vue component power. Build content-rich websites, from documentation pages to complex applications.
4848
class: '-mb-24 sm:-mb-32'
4949
image:
5050
dark: /home/features-dark.svg
5151
light: /home/features-light.svg
5252
class: 'size-full lg:h-full max-w-[calc(100%-2rem)] absolute top-0 inset-x-4'
5353
- title: Markdown meets [Vue]{class="text-[var(--ui-primary)]"}
54-
description: We invented the MDC syntax to let you use your Vue components with props and slots inside your Markdown files.
54+
description: We created the MDC syntax to let you use Vue components with props and slots inside your Markdown files.
5555
orientation: horizontal
5656
reverse: true
5757
features:

0 commit comments

Comments
 (0)