From d9582c1c6cb724a064c6c0404eaec3b1ba1618ff Mon Sep 17 00:00:00 2001
From: Rem <29999+remino@users.noreply.github.com>
Date: Tue, 14 Jun 2022 20:05:54 +0900
Subject: [PATCH 1/2] Add note about rendering content in Get Started
The Get Started guide should make it more obvious to developers how to display content pages when adding Content to an existing project.
---
docs/content/2.get-started.md | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/docs/content/2.get-started.md b/docs/content/2.get-started.md
index 44afd0d5e..501bd260b 100644
--- a/docs/content/2.get-started.md
+++ b/docs/content/2.get-started.md
@@ -106,6 +106,16 @@ export default defineNuxtConfig({
})
```
+To render content pages, you may wish to add a 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).
::
From e3baf18ee2e1ea848bac3a9e7ce3ac929a7eb719 Mon Sep 17 00:00:00 2001
From: Ahad Birang
Date: Mon, 20 Jun 2022 14:58:44 +0200
Subject: [PATCH 2/2] chore: update doc
---
docs/content/2.get-started.md | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/docs/content/2.get-started.md b/docs/content/2.get-started.md
index 501bd260b..3f28a9d0f 100644
--- a/docs/content/2.get-started.md
+++ b/docs/content/2.get-started.md
@@ -106,7 +106,19 @@ export default defineNuxtConfig({
})
```
-To render content pages, you may wish to add a catch-all route using the `ContentDoc` component to do so:
+## 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]