sproutsite 0.5.32 → 0.5.33
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 +7 -0
- package/VERSION +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -628,6 +628,12 @@ error_page 500 /500.html;
|
|
|
628
628
|
|
|
629
629
|
These local error documents preserve the original error status. For a subpath deployment, prefix the error-document URLs with the deployment base (for example `/demo/404.html`). Error pages still load their shared CSS, logo, and scripts from the generated asset directory, so deploy the complete build. See the official [Astro error-page documentation](https://docs.astro.build/en/basics/astro-pages/), [Apache ErrorDocument reference](https://httpd.apache.org/docs/2.4/mod/core.html#errordocument), and [Nginx error_page reference](https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page).
|
|
630
630
|
|
|
631
|
+
## Documentation export for MCP
|
|
632
|
+
|
|
633
|
+
From this framework checkout, run `npm run export:mcp` to validate and export documentation and showcase content to ignored `artifacts/mcp/`. The artifact contains `snapshot.json`, its generated `schema.json`, LICENSE, NOTICE and third-party notices. It includes configured English/German pages, normalized Markdown, examples, tables, capability notices, source hashes and a public component-to-document index. It records the Sproutsite version and Git provenance. MDX components and expressions are not executed, private legal settings are not required and `dist/` is untouched.
|
|
634
|
+
|
|
635
|
+
This is an explicit content-export command, not an MCP server. The separate `sproutsite-mcp` project can validate and bundle a pinned artifact into its Docker image. No artifact is uploaded automatically, and neither the exporter nor its data is added to consumer npm packages. See the [data contract and server handoff](docs/mcp-export.md) and the bilingual [package guide](https://sproutsite.dev/documentation/package/).
|
|
636
|
+
|
|
631
637
|
## Validation and Limitations
|
|
632
638
|
|
|
633
639
|
A website without blog articles does not need `src/content/blog/`. Missing, empty and asset-only blog directories are handled without missing-directory or empty-collection warnings. The existing empty blog overview remains available; no page URLs are removed. Once source files exist, Astro's glob loader performs the normal loading, schema validation and content watching. A small optional-blog loader waits for the first source file using Astro's public loader watcher API; it does not create placeholders or filter diagnostics for actual content. Page rendering and language navigation query optional collections only after Astro has stored their first entry. A small internal readiness collection records this state through the public loader store API, including watcher updates; files appearing on disk alone do not imply that parsing has finished. This avoids empty-collection warnings during first-article loading and also supports a custom blog directory. The package test checks both warning-free builds and adding, editing and removing the first article without restarting the dev server, with deliberately delayed parsing to exercise requests while loading is still in progress.
|
|
@@ -691,6 +697,7 @@ npm run build:demo # builds once with base /demo/
|
|
|
691
697
|
npm run storybook # isolated Astro component workshop on port 6006
|
|
692
698
|
npm run build:storybook # static Storybook output to storybook-static/
|
|
693
699
|
npm run test:package # install and build the local archive in a fresh consumer
|
|
700
|
+
npm run export:mcp # validated documentation/showcase JSON artifact to artifacts/mcp/
|
|
694
701
|
npm run prepublishOnly # run all publication checks without publishing
|
|
695
702
|
```
|
|
696
703
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.33
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sproutsite",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.33",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Björn Hempel",
|
|
6
6
|
"description": "Agent-first Static CMS powered by Astro and TypeScript, with Markdown-first content.",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"dev": "astro dev --force",
|
|
83
83
|
"build": "npm run validate && astro build && node --import tsx scripts/verify-build.ts",
|
|
84
84
|
"build:demo": "SPROUTSITE_BASE=/demo/ npm run build",
|
|
85
|
+
"export:mcp": "npm run validate && astro build --config astro.mcp.config.ts && node --import tsx scripts/verify-mcp-export.ts",
|
|
85
86
|
"preview": "astro preview",
|
|
86
87
|
"check": "npm run validate && astro check",
|
|
87
88
|
"validate": "node --import tsx scripts/validate-content.ts",
|
|
@@ -136,6 +137,7 @@
|
|
|
136
137
|
"playwright": "^1.63.0",
|
|
137
138
|
"prettier": "^3.9.10",
|
|
138
139
|
"prettier-plugin-astro": "^1.1.2",
|
|
140
|
+
"remark-stringify": "^11.0.0",
|
|
139
141
|
"sharp": "^0.35.5",
|
|
140
142
|
"storybook": "^10.6.6",
|
|
141
143
|
"tsx": "^4.23.15",
|