chore: update DocsContent comments

This commit is contained in:
bholmesdev 2023-03-03 08:51:43 -05:00
parent 64948f6993
commit dcd4ed138b
2 changed files with 4 additions and 2 deletions

View file

@ -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,
}} }}
/> />

View file

@ -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>