@contentbit/astro 1.0.0 → 2.0.0-next.0

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.
Files changed (2) hide show
  1. package/README.md +7 -5
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # @contentbit/astro
2
2
 
3
- Astro renderer for [Content Blocks](https://contentbit.dev): `.astro` components
4
- for rendering validated documents, with per-block component overrides.
3
+ Astro renderer for documents written with the typed Markdown blocks of
4
+ [contentbit](https://contentbit.dev), the SEO content check for agents:
5
+ `.astro` components with per-block overrides. Typed blocks are opt-in.
5
6
 
6
7
  Load content with Astro's built-in `glob()` loader, then parse and validate
7
8
  with `@contentbit/core`:
@@ -37,8 +38,8 @@ const document = assertValidDocument(compileDocument(entry.body, registry), entr
37
38
  ```
38
39
 
39
40
  For static pages `assertValidDocument` throws formatted diagnostics, so invalid
40
- content fails the build. To validate every content file in CI with `file:line:col` diagnostics,
41
- run the CLI: `contentbit validate "content/**/*.md"`.
41
+ content fails the build. In CI, run `contentbit check` after the build: it
42
+ checks the built pages and reports invalid blocks with `file:line:col`.
42
43
 
43
44
  Render blocks with your own Astro components via
44
45
  `components={{ callout: MyCallout }}`. Components receive the block's validated
@@ -56,4 +57,5 @@ Pre-made block UI is distributed through the shadcn registry, where files are
56
57
  copied into your app as editable `.astro` source:
57
58
  `pnpm dlx shadcn@latest add @contentbit/astro-pack`.
58
59
 
59
- Docs: https://contentbit.dev/docs
60
+ Docs: [render documents](https://contentbit.dev/docs/guides/renderers) ·
61
+ [Astro guide](https://contentbit.dev/docs/guides/astro)
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@contentbit/astro",
3
- "version": "1.0.0",
4
- "description": "Astro renderer for Content Blocks: .astro components for rendering validated documents, with per-block component overrides.",
3
+ "version": "2.0.0-next.0",
4
+ "description": "Astro renderer for documents written with contentbit's typed Markdown blocks, with per-block component overrides.",
5
5
  "keywords": [
6
6
  "astro",
7
7
  "astro-component",
8
- "content-blocks",
8
+ "contentbit",
9
9
  "markdown",
10
10
  "renderer",
11
11
  "withastro"
@@ -35,14 +35,14 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@contentbit/core": "1.0.0"
38
+ "@contentbit/core": "2.0.0-next.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@types/node": "^25.9.2",
42
- "astro": "^7.0.0",
41
+ "@types/node": "^26.6.11",
42
+ "astro": "^7.4.13",
43
43
  "typescript": "^5.9.3",
44
- "vitest": "^4.0.17",
45
- "@contentbit/blocks": "1.0.0"
44
+ "vitest": "^5.1.2",
45
+ "@contentbit/blocks": "2.0.0-next.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "astro": "^5.0.0 || ^6.0.0 || ^7.0.0"