diff --git a/docs/components/content/BlockHero.vue b/docs/components/content/BlockHero.vue
deleted file mode 100644
index fe46dab31..000000000
--- a/docs/components/content/BlockHero.vue
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
-
-
-
-
- {{ announcement[0] }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/components/content/Ellipsis.vue b/docs/components/content/Ellipsis.vue
new file mode 100644
index 000000000..ffc0e1c67
--- /dev/null
+++ b/docs/components/content/Ellipsis.vue
@@ -0,0 +1,15 @@
+
+
+
+
+
+
diff --git a/docs/components/content/HeroAnnouncement.vue b/docs/components/content/HeroAnnouncement.vue
new file mode 100644
index 000000000..8a48dad4b
--- /dev/null
+++ b/docs/components/content/HeroAnnouncement.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
+ {{ label }}
+
+
diff --git a/docs/content-v1/en/1.getting-started/1.introduction.md b/docs/content-v1/en/1.getting-started/1.introduction.md
index 9728be7bd..e063f1842 100644
--- a/docs/content-v1/en/1.getting-started/1.introduction.md
+++ b/docs/content-v1/en/1.getting-started/1.introduction.md
@@ -3,8 +3,6 @@ title: Introduction
description: 'Empower your NuxtJS application with the @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB-like API, acting as a Git-based Headless CMS.'
---
-Empower your NuxtJS application with the `@nuxt/content` module: write in a `content/` directory and fetch your Markdown, JSON, YAML, XML and CSV files through a MongoDB-like API, acting as a **Git-based Headless CMS**.
-
## Features
::list
diff --git a/docs/content-v1/fr/1.getting-started/1.introduction.md b/docs/content-v1/fr/1.getting-started/1.introduction.md
index be81ac3db..9e0e251f6 100644
--- a/docs/content-v1/fr/1.getting-started/1.introduction.md
+++ b/docs/content-v1/fr/1.getting-started/1.introduction.md
@@ -3,8 +3,6 @@ title: Introduction
description: 'Renforcez votre application NuxtJS avec le module @nuxt/content : écrivez dans un répertoire content/ et récupérez vos fichiers Markdown, JSON, YAML et CSV à travers une API de type MongoDB, agissant comme un Headless CMS basé sur Git'
---
-Renforcez votre application NuxtJS avec le module `@nuxt/content` : écrivez dans un répertoire `content/` et récupérez vos fichiers Markdown, JSON, YAML et CSV à travers une API de type MongoDB, agissant comme un **Headless CMS basé sur Git**.
-
## Fonctionnalités
::list
diff --git a/docs/content-v1/fr/1.getting-started/5.displaying.md b/docs/content-v1/fr/1.getting-started/5.displaying.md
index 744951671..f8b58c490 100644
--- a/docs/content-v1/fr/1.getting-started/5.displaying.md
+++ b/docs/content-v1/fr/1.getting-started/5.displaying.md
@@ -1,8 +1,6 @@
---
title: Afficher du contenu
description: Vous pouvez utiliser le composant `` directement dans vos template afin d'afficher votre Markdown.
-position: 5
-category: Pour commencer
---
::alert{type="info"}
diff --git a/docs/content-v1/fr/1.getting-started/7.advanced.md b/docs/content-v1/fr/1.getting-started/7.advanced.md
index 653de5135..e302179db 100644
--- a/docs/content-v1/fr/1.getting-started/7.advanced.md
+++ b/docs/content-v1/fr/1.getting-started/7.advanced.md
@@ -1,8 +1,6 @@
---
title: Utilisation avancée
description: Apprenez l'utilisation avancée du module @nuxt/content
-position: 7
-category: Pour commencer
---
## Utilisation Programmatique
diff --git a/docs/content-v1/fr/3.community/1.snippets.md b/docs/content-v1/fr/3.community/1.snippets.md
index 72b3a7896..3f651ff38 100644
--- a/docs/content-v1/fr/3.community/1.snippets.md
+++ b/docs/content-v1/fr/3.community/1.snippets.md
@@ -1,8 +1,6 @@
---
title: Extraits
description: 'Apprenez comment implémenter @nuxt/content dans votre application avec ces extraits de code.'
-subtitle: 'Découvrez ces extraits de code qui peuvent être copiés directement dans votre application.'
-version: 1.1
---
## Utilisation
diff --git a/docs/content-v1/ja/1.getting-started/1.introduction.md b/docs/content-v1/ja/1.getting-started/1.introduction.md
index 211798c51..296bb88f3 100644
--- a/docs/content-v1/ja/1.getting-started/1.introduction.md
+++ b/docs/content-v1/ja/1.getting-started/1.introduction.md
@@ -3,8 +3,6 @@ title: Content とは
description: 'nuxt/contentモジュールを使ってNuxtJSアプリケーションを強化します。content/ディレクトリに書き込むことで、MongoDBのようなAPIを使ってMarkdown、JSON、YAML、CSVファイルを取得します。これはGitベースのヘッドレスCMSとして動作します。'
---
-`nuxt/content`モジュールを使ってNuxtJSアプリケーションを強化します。`content/`ディレクトリに書き込むことで、MongoDBのようなAPIを使ってMarkdown、JSON、YAML、XML、CSVファイルを取得します。これは**GitベースのヘッドレスCMS**として動作します。
-
## 特徴
::list
diff --git a/docs/content-v1/ja/2.examples/2.docs-theme.md b/docs/content-v1/ja/2.examples/2.docs-theme.md
index ab3c3626a..7eaa1ffd5 100644
--- a/docs/content-v1/ja/2.examples/2.docs-theme.md
+++ b/docs/content-v1/ja/2.examples/2.docs-theme.md
@@ -1,7 +1,6 @@
---
title: Docs
description: 'テーマを使って、Nuxtと@nuxt/contentで開発を加速させましょう。'
-version: 1.6
---
diff --git a/docs/content-v1/ru/1.getting-started/1.introduction.md b/docs/content-v1/ru/1.getting-started/1.introduction.md
index dbbb035e4..fa7f0b968 100644
--- a/docs/content-v1/ru/1.getting-started/1.introduction.md
+++ b/docs/content-v1/ru/1.getting-started/1.introduction.md
@@ -3,8 +3,6 @@ title: Вступление
description: 'Прокачайте ваше NuxtJS приложение с модулем @nuxt/content: пишите в директории content/ и получайте ваши Markdown, JSON, YAML и CSV файлы через MongoDB подобное API, работает как базирующаяся на Git безголовая CMS.'
---
-Прокачайте ваше NuxtJS приложение с модулем `@nuxt/content`: пишите в директории `content/` и получайте ваши Markdown, JSON, YAML и CSV файлы через MongoDB подобное API, работает как **базирующаяся на Git безголовая CMS**.
-
## Особенности
::list
diff --git a/docs/content/1.index.md b/docs/content/1.index.md
index 0fecaecc7..9fbb04807 100755
--- a/docs/content/1.index.md
+++ b/docs/content/1.index.md
@@ -7,9 +7,6 @@ layout: fluid
::block-hero
---
-announcement:
- - 'Announcing Nuxt Content v2'
- - /blog/announcing-v2
cta:
- Get Started
- /get-started
@@ -18,11 +15,23 @@ secondary:
- https://github.com/nuxt/content
---
+#top
+::hero-announcement
+---
+label: "Announcing Nuxt Content v2"
+to: /blog/announcing-v2
+---
+::
+
#title
Content made easy for Vue Developers
#description
Nuxt Content reads the `content/` directory in your project, parses `.md`, `.yml`, `.csv` and `.json` files to create a powerful data layer for your application. Use Vue components in Markdown with the [MDC syntax](/guide/writing/mdc).
+
+#right
+::video-player{src="https://www.youtube.com/watch?v=o9e12WbKrd8" poster="/video-cover.jpeg" .border-2 .u-border-gray-100 .shadow-lg .h-64}
+::
::
::card-grid
diff --git a/docs/content/3.guide/1.writing/1.content-directory.md b/docs/content/3.guide/1.writing/1.content-directory.md
index 2683972bc..673a8a55c 100644
--- a/docs/content/3.guide/1.writing/1.content-directory.md
+++ b/docs/content/3.guide/1.writing/1.content-directory.md
@@ -1,12 +1,8 @@
---
title: 'Content directory'
-description: 'The Content module parses .md and .yam` files inside the content/ directory and provides paths according to the directory structure.'
+description: 'The Content module parses .md and .yaml files inside the content/ directory and provides paths according to the directory structure.'
---
-# Content directory
-
-The Content module parses `.md`, `.yml`, `.yaml`, `.csv`, `.json` and `.json5` files inside the `content/` directory and provides paths according to the directory structure.
-
## Paths
Nuxt Content will automatically generate paths for your content files.
@@ -33,7 +29,7 @@ Nuxt Content uses these numbers to order content lists.
content/
1.frameworks/
1.vue.md
- 2.nuxt.md
+ 2.nuxt.md
2.examples/
1.vercel.md
2.netlify.md
@@ -53,7 +49,7 @@ Content module will ignore files and folders starting with a `.`.
content/
1.frameworks/
.1.vue.md // Ignored content
- 2.nuxt.md
+ 2.nuxt.md
.2.translation/ // Ignored directory
1.fa/
1.messages.md // Ignored content because of its grand parent
@@ -71,7 +67,7 @@ Partial contents are accessible in search and content lists but are not displaye
content/
1.frameworks/
_1.vue.md // Partial content
- 2.nuxt.md
+ 2.nuxt.md
_2.translation/ // Partial directory
1.fa/
1.messages.md // Partial content because of its grand parent
diff --git a/docs/content/3.guide/1.writing/2.markdown.md b/docs/content/3.guide/1.writing/2.markdown.md
index 9127b1f1a..7228639fa 100755
--- a/docs/content/3.guide/1.writing/2.markdown.md
+++ b/docs/content/3.guide/1.writing/2.markdown.md
@@ -3,10 +3,6 @@ title: Markdown
description: 'Nuxt Content uses the Markdown syntax and conventions to provide a rich-text editing experience.'
---
-# Markdown
-
-Nuxt Content uses the Markdown syntax and conventions to provide a rich-text editing experience.
-
- Use Markdown to format your content with Prose components.
- Edit the meta-data of your pages in the front-matter block of your files.
diff --git a/docs/content/3.guide/1.writing/3.mdc.md b/docs/content/3.guide/1.writing/3.mdc.md
index 28cc72b4e..300a9033f 100755
--- a/docs/content/3.guide/1.writing/3.mdc.md
+++ b/docs/content/3.guide/1.writing/3.mdc.md
@@ -3,12 +3,6 @@ title: 'MDC Syntax'
description: MDC stands for MarkDown Components. This syntax supercharges regular Markdown to write documents interacting deeply with any Vue component from your components/content/ directory or provided by a module.
---
-# MDC
-
-MDC stands for _**M**ark**D**own **C**omponents_.
-
-This syntax supercharges regular Markdown to write documents interacting deeply with any Vue component from your `components/content/` directory or provided by a module.
-
::alert{type=info}
Install the [MDC VS Code extension](https://marketplace.visualstudio.com/items?itemName=Nuxt.mdc) to get proper syntax highlighting for your MDC components.
::
@@ -293,15 +287,15 @@ Other than `span`s the attribute syntax will work on images, links, `code`, **bo
```md [Code]
Attributes works on:
- - {.inline.w-5.h-5.bg-primary-500} image,
- - [link](#attributes){.bg-primary-400}, `code`{.text-red-500},
+ - {.inline.w-5.h-5.bg-primary-500} image,
+ - [link](#attributes){.bg-primary-400}, `code`{.text-red-500},
- _italic_{.bg-primary-500} and **bold**{.bg-primary-500} texts.
```
- ::code-block{label="Preview" preview}
- Attributes works on:
- - {.inline.w-5.h-5.bg-primary-500} image,
- - [link](#attributes){.bg-primary-400}, `code`{.text-red-500},
+ ::code-block{label="Preview" preview}
+ Attributes works on:
+ - {.inline.w-5.h-5.bg-primary-500} image,
+ - [link](#attributes){.bg-primary-400}, `code`{.text-red-500},
- _italic_{.bg-primary-500} and **bold**{.bg-primary-500} texts.
::
::
diff --git a/docs/content/3.guide/1.writing/4.json.md b/docs/content/3.guide/1.writing/4.json.md
index 300704421..09fd31691 100644
--- a/docs/content/3.guide/1.writing/4.json.md
+++ b/docs/content/3.guide/1.writing/4.json.md
@@ -3,10 +3,6 @@ title: JSON
description: 'Nuxt Content can query JSON formatted content.'
---
-# JSON
-
-Nuxt Content can query JSON formatted content.
-
::alert{type=info}
If the document root is an object `{}`, the output contains all the document properties at its root. If the document root is an array `[]`, the output contains all the document properties in a `body` property.
::
diff --git a/docs/content/3.guide/1.writing/5.yaml.md b/docs/content/3.guide/1.writing/5.yaml.md
index eaf412334..f0c0d6a8b 100644
--- a/docs/content/3.guide/1.writing/5.yaml.md
+++ b/docs/content/3.guide/1.writing/5.yaml.md
@@ -3,10 +3,6 @@ title: YAML / YML
description: 'Nuxt Content can query YAML / YML formatted content.'
---
-# YAML / YML
-
-Nuxt Content can query YAML / YML formatted content.
-
::alert{type=info}
If the document root is based on key-value pairs, the output contains all the document properties at its root. If the document root is a list `-`, the output contains all the document properties in a `body` property.
::
diff --git a/docs/content/3.guide/1.writing/6.csv.md b/docs/content/3.guide/1.writing/6.csv.md
index 138259ab7..2bfd0f4ab 100644
--- a/docs/content/3.guide/1.writing/6.csv.md
+++ b/docs/content/3.guide/1.writing/6.csv.md
@@ -3,9 +3,9 @@ title: CSV
description: 'Nuxt Content can query CSV formatted content.'
---
-# CSV
-
-Nuxt Content can query CSV formatted content. The `body` of the output is an array containing every row as objects.
+::alert{type=info}
+The `body` of the output is an array containing every row as objects.
+::
## Example
diff --git a/docs/content/3.guide/2.displaying/1.rendering.md b/docs/content/3.guide/2.displaying/1.rendering.md
index 9fa40040d..56509c814 100644
--- a/docs/content/3.guide/2.displaying/1.rendering.md
+++ b/docs/content/3.guide/2.displaying/1.rendering.md
@@ -3,8 +3,6 @@ title: 'Rendering'
description: 'The and components render the body of a Markdown document in a rich-text format.'
---
-# Rendering Content
-
Nuxt Content provides 2 components to render Markdown content in a rich-text format, applying HTML tags ([Prose](/guide/writing/markdown)) and displaying Vue components ([MDC](/guide/writing/mdc)).
- The `` component accepts an optional `path` prop to fetch the `content/` directory.
diff --git a/docs/content/3.guide/2.displaying/2.querying.md b/docs/content/3.guide/2.displaying/2.querying.md
index 79dc5249b..673c5f0af 100644
--- a/docs/content/3.guide/2.displaying/2.querying.md
+++ b/docs/content/3.guide/2.displaying/2.querying.md
@@ -1,11 +1,8 @@
---
title: 'Querying'
-description: 'Any component or page of your application can fetch content from the content/ directory. The queryContent() function is auto-imported by Nuxt Content to build queries with a MongoDB-like syntax.'
+description: 'Any component or page of your application can fetch content from the content/ directory.'
---
-# Querying Content
-
-Any component or page of your application can fetch content from the `content/` directory.
The `queryContent()`{lang="ts"} function is auto-imported by Nuxt Content to build queries with a MongoDB-like syntax.
## Usage
diff --git a/docs/content/3.guide/2.displaying/3.navigation.md b/docs/content/3.guide/2.displaying/3.navigation.md
index 8d0986287..5d39ff577 100644
--- a/docs/content/3.guide/2.displaying/3.navigation.md
+++ b/docs/content/3.guide/2.displaying/3.navigation.md
@@ -3,9 +3,7 @@ title: Navigation
description: 'The fetchContentNavigation utility returns a tree of items based on the content/ directory structure and files.'
---
-# Navigation
-
-The `fetchContentNavigation()`{lang="ts"} utility returns a tree of items based on the `content/` directory structure and files. Use the `title`{lang="ts"} and `path`{lang="ts"} properties of each item to create your application's navigation.
+Use the `title`{lang="ts"} and `path`{lang="ts"} properties of each item to create your application's navigation.
## Nested navigation
diff --git a/docs/content/3.guide/2.displaying/4.typescript.md b/docs/content/3.guide/2.displaying/4.typescript.md
index a6bdecbc0..e64167a18 100644
--- a/docs/content/3.guide/2.displaying/4.typescript.md
+++ b/docs/content/3.guide/2.displaying/4.typescript.md
@@ -1,11 +1,8 @@
---
title: TypeScript
+description: 'Nuxt Content v2 is built with TypeScript in mind.'
---
-# TypeScript usage
-
-Nuxt Content v2 is built with TypeScript in mind.
-
The module exposes typings properly from configuration to query builder.
## Usage
@@ -52,7 +49,7 @@ interface Article extends MarkdownParsedContent {
author: string
}
const { data } = await useAsyncData(
- 'first-article',
+ 'first-article',
() => queryContent('articles').findOne()
)
// data.value.author will be typed as well as markdown specific entries
diff --git a/docs/content/3.guide/3.recipes/1.sitemap.md b/docs/content/3.guide/3.recipes/1.sitemap.md
index c90dee553..b0da08d87 100644
--- a/docs/content/3.guide/3.recipes/1.sitemap.md
+++ b/docs/content/3.guide/3.recipes/1.sitemap.md
@@ -1,11 +1,8 @@
---
title: Sitemap
+description: 'A sitemap file is useful for helping Google to better index your website, ensuring that the content you write can be visible on search results.'
---
-# Sitemap Generation
-
-A sitemap file is useful for helping Google to better index your website, ensuring that the content you write can be visible on search results.
-
This can be created utilising the `sitemap` library, so you'll need to install that which can be done like so:
```bash
diff --git a/docs/content/3.guide/4.migration/1.from-v1.md b/docs/content/3.guide/4.migration/1.from-v1.md
index e12f641c2..3d559ffcc 100644
--- a/docs/content/3.guide/4.migration/1.from-v1.md
+++ b/docs/content/3.guide/4.migration/1.from-v1.md
@@ -3,8 +3,6 @@ title: 'From Content v1'
description: 'Learn how to upgrade from Nuxt Content V1 to Nuxt Content V2 for Nuxt 3.'
---
-# Migration from Content V1
-
- Make sure your dev server (`nuxt dev`) isn't running and remove any package lock files (`package-lock.json` and `yarn.lock`)
- Upgrade to Nuxt 3 (check out the [Nuxt 3 migration guide](https://v3.nuxtjs.org/getting-started/migration))
@@ -101,7 +99,7 @@ The `` component will fetch the document for the current route path
| Feature / Version | Convent v1 | Content v2 |
| ----------------- | :--------: | :--------: |
-| Nuxt Version | `nuxt@2.x` | `nuxt@3.x` |
+| Nuxt Version | `nuxt@2.x` | `nuxt@3.x` |
| Supported files | `.md`, `.yaml`, `.yml`, `.csv`, `.json`, `.json5`, `.xml` | `.md`, `.yaml`, `.yml`, `.csv`, `.json`, `.json5` |
| Full text search | ✅ | ❌ |
| Reactive Composables | ❌ | ✅ |
diff --git a/docs/content/4.api/1.components/1.content-doc.md b/docs/content/4.api/1.components/1.content-doc.md
index a31ca5b5d..5a37f9ec8 100644
--- a/docs/content/4.api/1.components/1.content-doc.md
+++ b/docs/content/4.api/1.components/1.content-doc.md
@@ -3,8 +3,6 @@ title: ''
description: 'The fastest way to query and display your content.'
---
-# ``
-
The ``{lang=html} component fetches and renders a single document.
An explicit path can be passed to the component with the `path`{lang=ts} prop. If not provided, the `$route.path`{lang=ts} will be used.
diff --git a/docs/content/4.api/1.components/2.content-list.md b/docs/content/4.api/1.components/2.content-list.md
index 7fce565f0..a2dc8f729 100644
--- a/docs/content/4.api/1.components/2.content-list.md
+++ b/docs/content/4.api/1.components/2.content-list.md
@@ -3,8 +3,6 @@ title: ''
description: 'The fastest way to query and display your content.'
---
-# ``
-
The ``{lang=html} component fetches a list of documents and allows you to render them by using `slots`.
The fetching path defaults to the content root (`/`).
diff --git a/docs/content/4.api/1.components/2.content-renderer.md b/docs/content/4.api/1.components/2.content-renderer.md
index fbad81d66..2d5a7ca25 100644
--- a/docs/content/4.api/1.components/2.content-renderer.md
+++ b/docs/content/4.api/1.components/2.content-renderer.md
@@ -3,8 +3,6 @@ title: ''
description: 'Takes your component from an AST to a wonderful template.'
---
-# ``
-
The ``{lang=html} component renders a document coming from a query.
It will use ``{lang=html} component to render `.md` file types.
diff --git a/docs/content/4.api/1.components/3.content-navigation.md b/docs/content/4.api/1.components/3.content-navigation.md
index d7a5eb255..077207f8a 100644
--- a/docs/content/4.api/1.components/3.content-navigation.md
+++ b/docs/content/4.api/1.components/3.content-navigation.md
@@ -3,8 +3,6 @@ title: ''
description: 'Building complex navigation from your content has never been easier.'
---
-# ``
-
The ``{lang=html} is a renderless component shortening the access to navigation.
## Props
diff --git a/docs/content/4.api/1.components/4.content-query.md b/docs/content/4.api/1.components/4.content-query.md
index f8c53aff1..92dcc2faa 100644
--- a/docs/content/4.api/1.components/4.content-query.md
+++ b/docs/content/4.api/1.components/4.content-query.md
@@ -3,8 +3,6 @@ title: ''
description: 'The fastest way to query and display your content.'
---
-# ``
-
The ``{lang=html} component fetches a document and gives access to it via a scoped slot.
## Props
diff --git a/docs/content/4.api/1.components/5.markdown.md b/docs/content/4.api/1.components/5.markdown.md
index 363a1f476..ea1f3464a 100644
--- a/docs/content/4.api/1.components/5.markdown.md
+++ b/docs/content/4.api/1.components/5.markdown.md
@@ -3,15 +3,13 @@ title: ''
description: 'The fastest way to inject Markdown into your Vue components.'
---
-# ``
-
The ``{lang=html} component makes it easier to use Markdown syntax in your Vue components.
It is useful when creating components that you want to use in your Markdown content.
## Props
-- `use`{lang=ts}: The slot to bind on, you must provide a `use`{lang=ts} via `$slots.{your_slot}`{lang=ts} in ``{lang=html}.
+- `use`{lang=ts}: The slot to bind on, you must provide a `use`{lang=ts} via `$slots.{your_slot}`{lang=ts} in ``{lang=html}.
- Type: `String`{lang=ts} or `Function`
- Example: `$slots.default`{lang=ts}
- *Warning*: Using a plain string won't let you profit from reactivity for that component.
@@ -33,8 +31,3 @@ It is useful when creating components that you want to use in your Markdown cont
That text paragraph will be unwrapped.
::
```
-
-
-
-
-
diff --git a/docs/content/4.api/1.components/6.prose.md b/docs/content/4.api/1.components/6.prose.md
index d62541f8d..313da9cbc 100755
--- a/docs/content/4.api/1.components/6.prose.md
+++ b/docs/content/4.api/1.components/6.prose.md
@@ -3,8 +3,6 @@ title: 'Prose Components'
description: 'A list of Prose components currently implemented.'
---
-# Prose
-
Here is a list of all the Prose components currently implemented.
## `ProseA`
@@ -54,13 +52,13 @@ Here is a list of all the Prose components currently implemented.
```
::code-block{label="Preview"}
-
+
```javascript
export default () => {
console.log('Code block')
}
```
-
+
::
::
diff --git a/docs/content/4.api/2.composables/1.query-content.md b/docs/content/4.api/2.composables/1.query-content.md
index b967c599e..647fe8b11 100644
--- a/docs/content/4.api/2.composables/1.query-content.md
+++ b/docs/content/4.api/2.composables/1.query-content.md
@@ -3,10 +3,6 @@ title: 'queryContent()'
description: 'The queryContent composable provides methods for querying and fetching your contents.'
---
-# `queryContent()`
-
-The `queryContent()` composable provides methods for querying and fetching your contents.
-
Create a query builder to search contents.
```ts
diff --git a/docs/content/4.api/2.composables/2.fetch-content-navigation.md b/docs/content/4.api/2.composables/2.fetch-content-navigation.md
index a0e12a9b6..ba1b16020 100644
--- a/docs/content/4.api/2.composables/2.fetch-content-navigation.md
+++ b/docs/content/4.api/2.composables/2.fetch-content-navigation.md
@@ -3,10 +3,6 @@ title: 'fetchContentNavigation()'
description: 'The fetchContentNavigation utility returns a tree of items based on the content/ directory structure and files.'
---
-# `fetchContentNavigation()`
-
-The `fetchContentNavigation()` utility returns a tree of items based on the content/ directory structure and files.
-
## Arguments
- `queryBuilder`{lang=ts}
diff --git a/docs/content/4.api/2.composables/3.unwrap.md b/docs/content/4.api/2.composables/3.unwrap.md
index 4ad42fa26..7e82c353a 100644
--- a/docs/content/4.api/2.composables/3.unwrap.md
+++ b/docs/content/4.api/2.composables/3.unwrap.md
@@ -2,8 +2,4 @@
title: 'useUnwrap()'
---
-# useUnwrap
-
-`useUnwrap()`{lang=ts} can be used to access unwrap features from any component.
-
It can be used to achieve a similar behavior as `unwrap`{lang=ts} prop from ``{lang=html} component.
diff --git a/docs/content/4.api/3.configuration.md b/docs/content/4.api/3.configuration.md
index 2908b95da..cd0b63b11 100644
--- a/docs/content/4.api/3.configuration.md
+++ b/docs/content/4.api/3.configuration.md
@@ -4,10 +4,6 @@ description: 'You can configure Nuxt Content with the content property in your n
icon: heroicons-outline:adjustments
---
-# Configuration
-
-You can configure Nuxt Content with the content property in your `nuxt.config.ts` file.
-
```ts [nuxt.config.ts]
export default defineNuxtConfig({
content: {
@@ -107,7 +103,7 @@ export default defineNuxtConfig({
'remark-emoji': {
emoticon: true
},
-
+
// Disable remark-gfm
'remark-gfm': false,
diff --git a/docs/content/5.examples/1.essentials/1.hello-world.md b/docs/content/5.examples/1.essentials/1.hello-world.md
index 3e98c44f8..5137d8edc 100644
--- a/docs/content/5.examples/1.essentials/1.hello-world.md
+++ b/docs/content/5.examples/1.essentials/1.hello-world.md
@@ -1,9 +1,8 @@
---
toc: false
+title: 'Hello world'
---
-# Hello world
-
:ReadMore{link="/get-started"}
:sandbox{repo="nuxt/content" branch="main" dir="examples/essentials/hello-world" file="app.vue"}
diff --git a/docs/content/5.examples/2.mdc/1.inline-component.md b/docs/content/5.examples/2.mdc/1.inline-components.md
similarity index 89%
rename from docs/content/5.examples/2.mdc/1.inline-component.md
rename to docs/content/5.examples/2.mdc/1.inline-components.md
index dfcc09ff6..c1ddb5d52 100644
--- a/docs/content/5.examples/2.mdc/1.inline-component.md
+++ b/docs/content/5.examples/2.mdc/1.inline-components.md
@@ -1,9 +1,9 @@
---
toc: false
+title: 'Inline components'
+description: ''
---
-# Inline component
-
Inline components are components that don't contain any slot.
After creating them in the `components/` directory, declare them in your markdown files with the `:` MDC syntax.
diff --git a/docs/content/5.examples/2.mdc/2.nested-components.md b/docs/content/5.examples/2.mdc/2.nested-components.md
index 5d56f3268..6ba6ae58b 100644
--- a/docs/content/5.examples/2.mdc/2.nested-components.md
+++ b/docs/content/5.examples/2.mdc/2.nested-components.md
@@ -1,9 +1,9 @@
---
toc: false
+title: 'Nested components'
+description: ''
---
-# Nested components
-
The MDC syntax allow you to nest components within a parent slot using indentation and the `::` syntax.
The `components/AppNested.vue` component uses the `` component as markdown-rendering slot.
diff --git a/docs/content/5.examples/2.mdc/3.props.md b/docs/content/5.examples/2.mdc/3.props.md
index 3b7c11fb2..a15c5cfb3 100644
--- a/docs/content/5.examples/2.mdc/3.props.md
+++ b/docs/content/5.examples/2.mdc/3.props.md
@@ -1,9 +1,9 @@
---
toc: false
+title: 'Props'
+description: ''
---
-# Props
-
Pass props to your components in Markdown files using the `{}` MDC syntax.
:ReadMore{link="/guide/writing/mdc#props"}
diff --git a/docs/content/5.examples/2.mdc/4.slots.md b/docs/content/5.examples/2.mdc/4.slots.md
index 6cc9f1531..283734347 100644
--- a/docs/content/5.examples/2.mdc/4.slots.md
+++ b/docs/content/5.examples/2.mdc/4.slots.md
@@ -1,9 +1,9 @@
---
toc: false
+title: 'Slots'
+description: ''
---
-# Slots
-
You can fill a component's default slot by inserting content between `::`.
Use the `#` MDC syntax to fill a named slot inside a component.
diff --git a/docs/content/5.examples/3.queries/1.where.md b/docs/content/5.examples/3.queries/1.where.md
index 5e2c2b112..83539c322 100644
--- a/docs/content/5.examples/3.queries/1.where.md
+++ b/docs/content/5.examples/3.queries/1.where.md
@@ -2,8 +2,6 @@
toc: false
---
-# Where
-
:ReadMore{link="/api/composables/query-content#wherequery"}
:sandbox{repo="nuxt/content" branch="main" dir="examples/queries/where" file="pages/app.vue"}
diff --git a/docs/content/5.examples/3.queries/2.only.md b/docs/content/5.examples/3.queries/2.only.md
index 4440033e2..138734d77 100644
--- a/docs/content/5.examples/3.queries/2.only.md
+++ b/docs/content/5.examples/3.queries/2.only.md
@@ -2,8 +2,6 @@
toc: false
---
-# Only
-
:ReadMore{link="/api/composables/query-content#onlykeys"}
:sandbox{repo="nuxt/content" branch="main" dir="examples/queries/only" file="app.vue"}
diff --git a/docs/content/5.examples/3.queries/3.without.md b/docs/content/5.examples/3.queries/3.without.md
index 39c3f6ad0..afb8ab466 100644
--- a/docs/content/5.examples/3.queries/3.without.md
+++ b/docs/content/5.examples/3.queries/3.without.md
@@ -2,8 +2,6 @@
toc: false
---
-# Without
-
:ReadMore{link="/api/composables/query-content#withoutkeys"}
:sandbox{repo="nuxt/content" branch="main" dir="examples/queries/without" file="app.vue"}
diff --git a/docs/content/5.examples/3.queries/4.skip-limit.md b/docs/content/5.examples/3.queries/4.skip-limit.md
index 86854efef..3540d22dd 100644
--- a/docs/content/5.examples/3.queries/4.skip-limit.md
+++ b/docs/content/5.examples/3.queries/4.skip-limit.md
@@ -2,8 +2,6 @@
toc: false
---
-# Skip / Limit
-
:ReadMore{link="/api/composables/query-content#skipcount"}
:ReadMore{link="/api/composables/query-content#limitcount"}
diff --git a/docs/content/5.examples/4.navigation/1.fetch-content-navigation.md b/docs/content/5.examples/4.navigation/1.fetch-content-navigation.md
index 2512f004c..0773bb7b9 100644
--- a/docs/content/5.examples/4.navigation/1.fetch-content-navigation.md
+++ b/docs/content/5.examples/4.navigation/1.fetch-content-navigation.md
@@ -1,9 +1,9 @@
---
toc: false
+title: 'fetchContentNavigation'
+description: ''
---
-# fetchContentNavigation
-
:ReadMore{link="/guide/displaying/navigation"}
:sandbox{repo="nuxt/content" branch="main" dir="examples/navigation/fetch-content-navigation" file="app.vue"}
diff --git a/docs/content/5.examples/4.navigation/2.use-route.md b/docs/content/5.examples/4.navigation/2.use-route.md
index e734230bb..7d6b7ee7e 100644
--- a/docs/content/5.examples/4.navigation/2.use-route.md
+++ b/docs/content/5.examples/4.navigation/2.use-route.md
@@ -1,9 +1,9 @@
---
toc: false
+title: 'useRoute'
+description: ''
---
-# useRoute
-
Use the `where()` method alongside the `useRoute()` composable to query content based on the current route.
:ReadMore{link="/guide/displaying/querying"}
diff --git a/docs/content/5.examples/5.templates/1.content-wind.md b/docs/content/5.examples/5.templates/1.content-wind.md
index 552186ab7..7dab96935 100644
--- a/docs/content/5.examples/5.templates/1.content-wind.md
+++ b/docs/content/5.examples/5.templates/1.content-wind.md
@@ -1,9 +1,9 @@
---
toc: false
+title: 'Content Wind'
+description: ''
---
-# Content Wind
-
A lightweight Nuxt template to write a Markdown driven website, based on [Nuxt Content](https://content.nuxtjs.org), [TailwindCSS](https://tailwindcss.com) and [Iconify](https://iconify.design).
- Repository: [Atinux/content-wind](https://github.com/Atinux/content-wind)
diff --git a/docs/content/7.changelog.md b/docs/content/7.changelog.md
index 9a6a557f0..e58a13e85 100644
--- a/docs/content/7.changelog.md
+++ b/docs/content/7.changelog.md
@@ -1,12 +1,10 @@
---
-layout: page
+layout: docs
+aside: false
+toc: false
icon: heroicons-outline:newspaper
+description: Discover the latest Nuxt Content updates.
---
-# Changelog
-
-Discover the latest Nuxt Content updates.
-
-:hr
-
-:releases
+::releases
+::
diff --git a/docs/yarn.lock b/docs/yarn.lock
index d241902ed..5c1d7c10c 100644
--- a/docs/yarn.lock
+++ b/docs/yarn.lock
@@ -280,10 +280,10 @@
resolved "https://registry.yarnpkg.com/@csstools/selector-specificity/-/selector-specificity-2.0.0.tgz#65b12f12db55188422070e34687bf3af09870922"
integrity sha512-rZ6vufeY/UjAgtyiJ4WvfF6XP6HizIyOfbZOg0RnecIwjrvH8Am3nN1BpKnnPZunYAkUcPPXDhwbxOtGop8cfQ==
-"@docus/base@npm:@docus/base-edge@3.0.0-a0efb08":
- version "3.0.0-a0efb08"
- resolved "https://registry.yarnpkg.com/@docus/base-edge/-/base-edge-3.0.0-a0efb08.tgz#2b97b40e052b94a60916049ff3722d72451605aa"
- integrity sha512-pmFNe8YrgKQqnvNjITA8jA+iTjqjEuEoFkami5pPHbZ+UCafCFouhbO1obN7+gUiTMpB2d+14PvWQEJHGulCqg==
+"@docus/base@npm:@docus/base-edge@3.0.0-921a586":
+ version "3.0.0-921a586"
+ resolved "https://registry.yarnpkg.com/@docus/base-edge/-/base-edge-3.0.0-921a586.tgz#01971b2eb61a1905bc12044f6c2cd8e4010eb9ff"
+ integrity sha512-NE79hpUMUP7Qz3kXUfj7Y1eWvBwsp0ACKo3lBGHyHgtS5A5lMxZIFWyhuqM3IRth4FaXItTfXyL2aLQV2qYPDw==
dependencies:
"@nuxt/content" "npm:@nuxt/content-edge@latest"
"@nuxthq/admin" "npm:@nuxthq/admin-edge@latest"
@@ -294,11 +294,11 @@
pkg-types "^0.3.2"
"@docus/docs-theme@npm:@docus/docs-theme-edge@latest":
- version "3.0.0-a0efb08"
- resolved "https://registry.yarnpkg.com/@docus/docs-theme-edge/-/docs-theme-edge-3.0.0-a0efb08.tgz#c337c7d76e26490f96240188adb2e9f1fe32ad1d"
- integrity sha512-ic+lgU+Sr77Wmqmo/asdR1wJaNUcnv0TG66liENK7qG5c6CsA8fr3+jpfzKKSM6AshWtYRrVFif67MHdpNLcQA==
+ version "3.0.0-921a586"
+ resolved "https://registry.yarnpkg.com/@docus/docs-theme-edge/-/docs-theme-edge-3.0.0-921a586.tgz#1b7c226c3c1b7f57d53c0294a975b9a927cd1de9"
+ integrity sha512-vAB3+MK4fy2iCW6pFZmdP87wG+D4GH1fGUJUvpR4CIGDD0DfMtK0NR8+jpkOyRJGYYW4z4ILK7iBCkSb0KOMxg==
dependencies:
- "@docus/base" "npm:@docus/base-edge@3.0.0-a0efb08"
+ "@docus/base" "npm:@docus/base-edge@3.0.0-921a586"
"@iconify/vue" "^3.2.1"
"@nuxtjs/color-mode" "^3.0.3"
"@nuxtjs/tailwindcss" "^5.1.2"
@@ -452,9 +452,9 @@
fastq "^1.6.0"
"@nuxt/content@npm:@nuxt/content-edge@latest":
- version "2.0.1-27571156.c18a99d"
- resolved "https://registry.yarnpkg.com/@nuxt/content-edge/-/content-edge-2.0.1-27571156.c18a99d.tgz#e3f58070e2d43fd10f429d375676aebf18d35a95"
- integrity sha512-DqdGuMTxuMtR3huJ9tmQX0s4v/ijg1S3zxH/7H8+cT65wo79pKq3mLLwLm9kgcFRfKcLlo34Xksb9WMWj5yskg==
+ version "2.0.1-27579606.ede65e8"
+ resolved "https://registry.yarnpkg.com/@nuxt/content-edge/-/content-edge-2.0.1-27579606.ede65e8.tgz#212da96c3c8aa67bd55e5d78d0bf76873cb427b1"
+ integrity sha512-6HgyO/ocF6M7QezhIik9Jntko0VjAi245/usOCaWez83UuDk/TxI6Wd5Pw9sFFwL/wGm7dPbz9AbNbwI9qq7tA==
dependencies:
"@nuxt/kit" "^3.0.0-rc.3"
csvtojson "^2.0.10"
@@ -661,9 +661,9 @@
unstorage "^0.4.1"
"@nuxtjs/color-mode@^3.0.3":
- version "3.1.3"
- resolved "https://registry.yarnpkg.com/@nuxtjs/color-mode/-/color-mode-3.1.3.tgz#ee94a68bc824e81a1a6ec6a3100390ce2674593d"
- integrity sha512-/GSgVnvS4nTtg5uUsRZSpp3F0byU5tXXbef/WrfNQ9VYCYLa88itrWj9QcWVroIBztK+nQ7POV5mSjmb90/m4Q==
+ version "3.1.4"
+ resolved "https://registry.yarnpkg.com/@nuxtjs/color-mode/-/color-mode-3.1.4.tgz#7b54af2b3a21d07acac158ded8b2e8f45b4d4a24"
+ integrity sha512-3pxZNbZCFCzBgkyJLU/YvC2L2l1yRvITuD91zfJoIGm52PTx66y/Q1/UW8i9YFDVhJvvRd67s6eWvgaKQtTPlw==
dependencies:
"@nuxt/kit" "^3.0.0-rc.3"
lodash.template "^4.5.0"
@@ -1577,11 +1577,16 @@ caniuse-api@^3.0.0:
lodash.memoize "^4.1.2"
lodash.uniq "^4.5.0"
-caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001335, caniuse-lite@^1.0.30001349:
+caniuse-lite@^1.0.0:
version "1.0.30001349"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001349.tgz#90740086a2eb2e825084944169d313c9793aeba4"
integrity sha512-VFaWW3jeo6DLU5rwdiasosxhYSduJgSGil4cSyX3/85fbctlE58pXAkWyuRmVA0r2RxsOSVYUTZcySJ8WpbTxw==
+caniuse-lite@^1.0.30001335, caniuse-lite@^1.0.30001349:
+ version "1.0.30001352"
+ resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001352.tgz#cc6f5da3f983979ad1e2cdbae0505dccaa7c6a12"
+ integrity sha512-GUgH8w6YergqPQDGWhJGt8GDRnY0L/iJVQcU3eJ46GYf52R8tk0Wxp0PymuFVZboJYXGiCqwozAYZNRjVj6IcA==
+
ccount@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/ccount/-/ccount-2.0.1.tgz#17a3bf82302e0870d6da43a01311a8bc02a3ecf5"
@@ -2156,7 +2161,7 @@ detect-libc@^2.0.0:
resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.0.1.tgz#e1897aa88fa6ad197862937fbc0441ef352ee0cd"
integrity sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==
-detective@^5.2.0:
+detective@^5.2.1:
version "5.2.1"
resolved "https://registry.yarnpkg.com/detective/-/detective-5.2.1.tgz#6af01eeda11015acb0e73f933242b70f24f91034"
integrity sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==
@@ -2240,9 +2245,9 @@ ee-first@1.1.1:
integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==
electron-to-chromium@^1.4.147:
- version "1.4.147"
- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.147.tgz#1ecf318737b21ba1e5b53319eb1edf8143892270"
- integrity sha512-czclPqxLMPqPMkahKcske4TaS5lcznsc26ByBlEFDU8grTBVK9C5W6K9I6oEEhm4Ai4jTihGnys90xY1yjXcRg==
+ version "1.4.150"
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.150.tgz#89f0e12505462d5df7e56c5b91aff7e1dfdd33ec"
+ integrity sha512-MP3oBer0X7ZeS9GJ0H6lmkn561UxiwOIY9TTkdxVY7lI9G6GVCKfgJaHaDcakwdKxBXA4T3ybeswH/WBIN/KTA==
emmet-monaco-es@^5.1.0:
version "5.1.0"
@@ -5188,7 +5193,7 @@ postcss-value-parser@^4.0.0, postcss-value-parser@^4.1.0, postcss-value-parser@^
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
-postcss@^8.1.10, postcss@^8.2.15, postcss@^8.4.12, postcss@^8.4.13, postcss@^8.4.14:
+postcss@^8.1.10, postcss@^8.2.15, postcss@^8.4.13, postcss@^8.4.14:
version "8.4.14"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.14.tgz#ee9274d5622b4858c1007a74d76e42e56fd21caf"
integrity sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==
@@ -5839,7 +5844,7 @@ statuses@2.0.1:
"statuses@>= 1.4.0 < 2", "statuses@>= 1.5.0 < 2", statuses@^1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
- integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=
+ integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
std-env@^3.1.1:
version "3.1.1"
@@ -5908,7 +5913,7 @@ strip-ansi@^6.0.0, strip-ansi@^6.0.1:
strip-bom@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e"
- integrity sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=
+ integrity sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==
dependencies:
is-utf8 "^0.2.0"
@@ -6023,14 +6028,14 @@ tailwind-config-viewer@^1.7.0:
replace-in-file "^6.1.0"
tailwindcss@^3.0.24:
- version "3.0.24"
- resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.0.24.tgz#22e31e801a44a78a1d9a81ecc52e13b69d85704d"
- integrity sha512-H3uMmZNWzG6aqmg9q07ZIRNIawoiEcNFKDfL+YzOPuPsXuDXxJxB9icqzLgdzKNwjG3SAro2h9SYav8ewXNgig==
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.1.0.tgz#126e5abd0831dbfdaabea1474c746384c73836ab"
+ integrity sha512-XzXq31Fj6RizhlFVNLBlDqzs0dXuIEOAknuOcKx2R/IIQbEz5DnngslYY4JNN6e9JkNBjHGm1w2XDABsADg1ng==
dependencies:
arg "^5.0.1"
chokidar "^3.5.3"
color-name "^1.1.4"
- detective "^5.2.0"
+ detective "^5.2.1"
didyoumean "^1.2.2"
dlv "^1.1.3"
fast-glob "^3.2.11"
@@ -6040,7 +6045,8 @@ tailwindcss@^3.0.24:
normalize-path "^3.0.0"
object-hash "^3.0.0"
picocolors "^1.0.0"
- postcss "^8.4.12"
+ postcss "^8.4.14"
+ postcss-import "^14.1.0"
postcss-js "^4.0.0"
postcss-load-config "^3.1.4"
postcss-nested "5.0.6"