chore: update DocsContent comments
This commit is contained in:
parent
64948f6993
commit
dcd4ed138b
2 changed files with 4 additions and 2 deletions
|
@ -14,6 +14,8 @@ const { Content } = await entry.render();
|
||||||
components={{
|
components={{
|
||||||
// Pass a mapping from the component name
|
// Pass a mapping from the component name
|
||||||
// To an Astro or UI component import
|
// To an Astro or UI component import
|
||||||
|
// See your `astro.config.mjs` for
|
||||||
|
// for the Markdoc tag mapping
|
||||||
Aside,
|
Aside,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -11,8 +11,8 @@ const intro = await getEntryBySlug('docs', 'intro');
|
||||||
<h1>{intro.data.title}</h1>
|
<h1>{intro.data.title}</h1>
|
||||||
<!-- `DocsContent` is a thin wrapper around -->
|
<!-- `DocsContent` is a thin wrapper around -->
|
||||||
<!-- the `Content` component provided by Content Collections, -->
|
<!-- the `Content` component provided by Content Collections, -->
|
||||||
<!-- with added Markdoc configuration and component mapping. -->
|
<!-- with added configuration for components. -->
|
||||||
<!-- This allows you to share config wherever you render your Markdoc files. -->
|
<!-- This allows you to share global components wherever you render your Markdoc. -->
|
||||||
<DocsContent entry={intro} />
|
<DocsContent entry={intro} />
|
||||||
</main>
|
</main>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
Loading…
Reference in a new issue