sproutsite 0.5.31 → 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 +12 -5
- package/VERSION +1 -1
- package/package.json +3 -1
- package/src/lib/sproutsite/site-colors.ts +1 -1
- package/src/themes/default/colors.ts +1 -1
package/README.md
CHANGED
|
@@ -299,7 +299,7 @@ tagline: A short supporting claim.
|
|
|
299
299
|
---
|
|
300
300
|
```
|
|
301
301
|
|
|
302
|
-
The default theme accepts an optional `colors` block: `surfaces` (`default`, `muted`, `border`, `text`), semantic roles (`primary`, `secondary`, `accent`, `neutral`, `info`, `success`, `warning`, `error`, each with `color`/`content`), and `brand` (`background`, `backgroundEnd`, `gradient`, `content`, `highlight`, `accent`). Values are opaque hex
|
|
302
|
+
The default theme accepts an optional `colors` block: `surfaces` (`default`, `muted`, `border`, `text`), semantic roles (`primary`, `secondary`, `accent`, `neutral`, `info`, `success`, `warning`, `error`, each with `color`/`content`), and `brand` (`background`, `backgroundEnd`, `gradient`, `content`, `highlight`, `accent`). Values are opaque hex colors (`#RGB` or `#RRGGBB`); omitted fields retain the theme defaults. For example, `colors: { primary: { color: "#527b37", content: "#ffffff" } }` changes the primary role. Standard solid text/background pairs are checked for contrast against the resolved defaults; invalid fields or insufficient checked contrast stop Astro configuration/rendering. These checks do not establish conformance for image overlays or every component state. SVG waves, logos and images keep their embedded colors and must be edited separately. See the [website color guide](https://sproutsite.dev/documentation/getting-started/your-website/colors/).
|
|
303
303
|
|
|
304
304
|
`site.yaml` is the shared base. Optional `site.<locale>.yaml` files override individual object fields; arrays replace the entire inherited list. Omitted fields inherit the base values. Production URL, base path, default locale and enabled locale list remain shared. The base `i18n.locale` matches `i18n.defaultLocale`; locale files may set their own `i18n.locale`. The default locale is explicit and does not depend on list order. Legacy `language`/`locales`, `links.externalNewTab`/`externalIcon` and flat blog settings remain readable, but do not mix old and new spellings within a configuration layer.
|
|
305
305
|
|
|
@@ -504,7 +504,7 @@ export default defineConfig(
|
|
|
504
504
|
);
|
|
505
505
|
```
|
|
506
506
|
|
|
507
|
-
The optional list accepts existing project-relative `.css` files. The resolved theme styles load first, followed by these files in list order, for all shared page layouts and locales. Missing files and invalid entries stop configuration. CSS imports, local assets and development updates use Astro/Vite; restart the dev server after changing the entry list. Omission or `styles: []` retains theme-only output. Use targeted unlayered rules for overrides such as `.ss-card { border-radius: 1.25rem; }`; normal cascade priorities and specificity still apply. Layered rules may lose to higher-priority DaisyUI or utility layers. Supported inline
|
|
507
|
+
The optional list accepts existing project-relative `.css` files. The resolved theme styles load first, followed by these files in list order, for all shared page layouts and locales. Missing files and invalid entries stop configuration. CSS imports, local assets and development updates use Astro/Vite; restart the dev server after changing the entry list. Omission or `styles: []` retains theme-only output. Use targeted unlayered rules for overrides such as `.ss-card { border-radius: 1.25rem; }`; normal cascade priorities and specificity still apply. Layered rules may lose to higher-priority DaisyUI or utility layers. Supported inline color and typography settings remain in `site.yaml`. This option does not replace components or create theme inheritance. See the [small design changes guide](https://sproutsite.dev/documentation/getting-started/your-website/theme-overrides/).
|
|
508
508
|
|
|
509
509
|
A small build-time Vite CSS entry imports the unchanged theme entry followed by the configured files. Astro/Vite retain responsibility for compilation, asset URLs and HMR; no stylesheet registry or browser script is added.
|
|
510
510
|
|
|
@@ -522,7 +522,7 @@ export default defineConfig(
|
|
|
522
522
|
);
|
|
523
523
|
```
|
|
524
524
|
|
|
525
|
-
Only `Header` and `Footer` are supported. Paths must be existing project-relative `.astro` files; unknown keys and invalid paths fail configuration. Omitted slots retain the selected theme implementations independently. Both components receive `site` (the resolved active-locale configuration) and `route` (translated content path without locale/base prefixes). Use `HeaderProps` or `FooterProps` from `sproutsite` as the component's Props type; no other required props are supplied. Error pages also use these slots; landing pages still omit the header. The shared layout retains metadata, main content, fonts,
|
|
525
|
+
Only `Header` and `Footer` are supported. Paths must be existing project-relative `.astro` files; unknown keys and invalid paths fail configuration. Omitted slots retain the selected theme implementations independently. Both components receive `site` (the resolved active-locale configuration) and `route` (translated content path without locale/base prefixes). Use `HeaderProps` or `FooterProps` from `sproutsite` as the component's Props type; no other required props are supplied. Error pages also use these slots; landing pages still omit the header. The shared layout retains metadata, main content, fonts, color variables and skip link.
|
|
526
526
|
|
|
527
527
|
The public `DefaultHeader` and `DefaultFooter` exports from `sproutsite/components` always target the supplied implementations. A replacement can delegate to them without recursively resolving itself. Completely new markup requires the website team to implement responsive behavior, locale/base-aware links, active navigation and accessibility. Local files survive package updates, but their compatibility still needs review. This is not a general theme loader or an extension of the allowed MDX imports. See the [header/footer guide](https://sproutsite.dev/documentation/getting-started/your-website/header-and-footer/).
|
|
528
528
|
|
|
@@ -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
|
|
|
@@ -716,11 +723,11 @@ The privacy policy additionally uses `{ PrivacyInfrastructure }` from the same e
|
|
|
716
723
|
|
|
717
724
|
Leave `PRIVACY_LOG_RETENTION_DAYS` empty until a time-based policy is implemented. Empty means an unresolved-period notice, not zero-day retention. A number applies to the configured nginx access/error logs and shared Traefik operational/error logs during normal operation. It is not a blanket commitment for all server data or stopped-service periods. The demo describes hourly rotation, five-minute age cleanup and deferred cleanup on the next start. Operational details: nginx maintenance failures are exposed through a healthcheck; Traefik's Copytruncate rotation can lose individual diagnostic entries. External copies and backups still need separate retention verification. `PRIVACY_LOG_SIZE_LIMIT_MIB` is the approximate additional size limit in MiB, independently of age-based deletion. These fields document actual operation; they do not configure deletion.
|
|
718
725
|
|
|
719
|
-
`PRIVACY_EMAIL_RETENTION_MONTHS=6` records a chosen maximum for completed ordinary
|
|
726
|
+
`PRIVACY_EMAIL_RETENTION_MONTHS=6` records a chosen maximum for completed ordinary inquiries in the active mailbox, not a universal statutory period or an automatic mailbox rule. Verify retention of any copies/backups separately. Review the hosting data-processing agreement where applicable; this repository does not assert that a contract has already been concluded.
|
|
720
727
|
|
|
721
728
|
### Logo and icons
|
|
722
729
|
|
|
723
|
-
Keep your own prepared branding files under `public/branding/` and configure them in `src/content/site.yaml`. This follows [Astro's public-file conventions](https://docs.astro.build/en/guides/images/#images-in-public): files are copied unchanged, not
|
|
730
|
+
Keep your own prepared branding files under `public/branding/` and configure them in `src/content/site.yaml`. This follows [Astro's public-file conventions](https://docs.astro.build/en/guides/images/#images-in-public): files are copied unchanged, not optimized. Do not edit installed package files.
|
|
724
731
|
|
|
725
732
|
```yaml
|
|
726
733
|
branding:
|
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",
|
|
@@ -97,7 +97,7 @@ export function colorContrastIssues(input?: SiteColors): string[] {
|
|
|
97
97
|
const ratio = contrastRatio(foreground, background);
|
|
98
98
|
if (ratio < minimum)
|
|
99
99
|
issues.push(
|
|
100
|
-
`${field} against ${against}: ${ratio.toFixed(2)}:1; expected at least ${minimum}:1. Choose a darker/lighter
|
|
100
|
+
`${field} against ${against}: ${ratio.toFixed(2)}:1; expected at least ${minimum}:1. Choose a darker/lighter color or adjust the matching content color.`,
|
|
101
101
|
);
|
|
102
102
|
};
|
|
103
103
|
for (const role of [
|