Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Aug 13, 2024
1 parent 07c951c commit 8991236
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2256,7 +2256,7 @@ export interface AstroUserConfig {
* The collection can be [queried in the same way as content collections](/en/guides/content-collections/#querying-collections):
*
* ```ts
* // src/content/config.ts
* // src/pages/index.astro
* import { getCollection, getEntry } from 'astro:content';
*
* // Get all entries from a collection.
Expand All @@ -2274,7 +2274,7 @@ export interface AstroUserConfig {
* The syntax for rendering collection entries is different from current content collections syntax.
* :::
*
* ```astro title="src/pages/index.astro"
* ```astro title="src/pages/[slug].astro"
* ---
* import { getEntry, render } from 'astro:content';
*
Expand Down Expand Up @@ -2312,9 +2312,9 @@ export interface AstroUserConfig {
* export const collections = { countries };
* ```
*
* For more advanced loading logic, you can define an object loader. This allows incremental updates and conditional loading, and gives full access to the data store. See the API in [the draft Content Layer API RFC](https://github.com/withastro/roadmap/blob/content-layer/proposals/content-layer.md#loaders).
* For more advanced loading logic, you can define an object loader. This allows incremental updates and conditional loading, and gives full access to the data store. See the API in [the Content Layer API RFC](https://github.com/withastro/roadmap/blob/content-layer/proposals/0047-content-layer.md#loaders).
*
* #### Migrating a content collection to content layer
* #### Migrating an existing content collection to use the Content Layer API
*
* You can convert an existing content collection with Markdown, MDX, Markdoc, or JSON entries to use the Content Layer API.
*
Expand Down Expand Up @@ -2377,7 +2377,7 @@ export interface AstroUserConfig {
*
* #### Learn more
*
* For a complete overview and the full API reference, see [the Content Layer API RFC](https://github.com/withastro/roadmap/blob/content-layer/proposals/content-layer.md) and [share your feedback on the roadmap discussion](https://github.com/withastro/roadmap/pull/982).
* For a complete overview and the full API reference, see [the Content Layer API RFC](https://github.com/withastro/roadmap/blob/content-layer/proposals/0047-content-layer.md) and [share your feedback](https://github.com/withastro/roadmap/pull/982).
*/
contentLayer?: boolean;
};
Expand Down

0 comments on commit 8991236

Please sign in to comment.