diff --git a/docs/content/2.get-started.md b/docs/content/2.get-started.md index 44afd0d5e..3f28a9d0f 100644 --- a/docs/content/2.get-started.md +++ b/docs/content/2.get-started.md @@ -106,6 +106,28 @@ export default defineNuxtConfig({ }) ``` +## Create content + +Place your markdown files inside `content` directory in the root directory of your project. + +```md [content/index.md] +# Hello Content +``` + +The module automatically load and parse all of them. + +## Render pages + +To render content pages, you may wish to add a [catch-all route](https://v3.nuxtjs.org/guide/directory-structure/pages/#catch-all-route) using the `ContentDoc` component to do so: + +```vue [pages/[...slug].vue] + +``` + ::alert{type=warning} ⚠️ Content v2 requires [Nuxt 3](https://v3.nuxtjs.org). If you are using Nuxt 2, checkout [Content v1 documentation](https://content.nuxtjs.org/v1/getting-started/installation). ::