astro-loader-pocketbase 2.0.0-next.3 → 2.0.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://github.com/pawcoding/astro-loader-pocketbase/blob/master/LICENSE)
|
|
7
7
|
[](https://discord.gg/GzgTh4hxrx)
|
|
8
8
|
|
|
9
|
-
This package is a simple loader to load data from a PocketBase database into Astro using the [Astro Loader API](https://
|
|
9
|
+
This package is a simple loader to load data from a PocketBase database into Astro using the [Astro Loader API](https://docs.astro.build/en/reference/content-loader-reference/) introduced in Astro 5.
|
|
10
10
|
|
|
11
11
|
> [!TIP]
|
|
12
12
|
> If you want to see the PocketBase data directly in your Astro toolbar, try the [`astro-integration-pocketbase`](https://github.com/pawcoding/astro-integration-pocketbase).
|
|
@@ -67,7 +67,7 @@ After generating the schema (see below), the loader will automatically parse the
|
|
|
67
67
|
### HTML content
|
|
68
68
|
|
|
69
69
|
You can also specify a field or an array of fields to use as content.
|
|
70
|
-
This content will then be used when calling the `render` function of [Astros content collections](https://
|
|
70
|
+
This content will then be used when calling the `render` function of [Astros content collections](https://docs.astro.build/en/guides/content-collections/#rendering-body-content).
|
|
71
71
|
|
|
72
72
|
```ts
|
|
73
73
|
const blog = defineCollection({
|
|
@@ -152,7 +152,7 @@ When superuser credentials are provided, the loader will **always use the remote
|
|
|
152
152
|
|
|
153
153
|
### Manual schema
|
|
154
154
|
|
|
155
|
-
If you don't want to use the automatic type generation, you can also [provide your own schema manually](https://
|
|
155
|
+
If you don't want to use the automatic type generation, you can also [provide your own schema manually](https://docs.astro.build/en/guides/content-collections/#defining-the-collection-schema).
|
|
156
156
|
This manual schema will **always override the automatic type generation**.
|
|
157
157
|
|
|
158
158
|
## All options
|
package/package.json
CHANGED