astro-loader-pocketbase 1.0.1 → 1.0.2
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).
|
|
@@ -48,7 +48,7 @@ After generating the schema (see below), the loader will automatically parse the
|
|
|
48
48
|
### HTML content
|
|
49
49
|
|
|
50
50
|
You can also specify a field or an array of fields to use as content.
|
|
51
|
-
This content will then be used when calling the `render` function of [Astros content collections](https://
|
|
51
|
+
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).
|
|
52
52
|
|
|
53
53
|
```ts
|
|
54
54
|
const blog = defineCollection({
|
|
@@ -131,7 +131,7 @@ When admin credentials are provided, the loader will **always use the remote sch
|
|
|
131
131
|
|
|
132
132
|
### Manual schema
|
|
133
133
|
|
|
134
|
-
If you don't want to use the automatic type generation, you can also [provide your own schema manually](https://
|
|
134
|
+
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).
|
|
135
135
|
This manual schema will **always override the automatic type generation**.
|
|
136
136
|
|
|
137
137
|
## All options
|
package/package.json
CHANGED