@v-office/site-checks 0.4.2 → 0.5.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.
package/README.md CHANGED
@@ -48,7 +48,8 @@ site-checks verify [--root <dir>] [--site <url>]
48
48
  another file.
49
49
  - `--site` is the site's public URL. Without it, `site` is read from the Astro config file as
50
50
  text; without either, the checks that need it (`canonical-link`, `open-graph`,
51
- `consent-gate`'s host rule, `sitemap-noindex`'s host rule, `v9-production-hub`) wait, as they
51
+ `consent-gate`'s host rule, `sitemap-noindex`'s host rule, `rental-markup`,
52
+ `v9-production-hub`, `v10-production-api`) wait, as they
52
53
  do for a preview host. `trailingSlash` is read from the config file the same way. The checks
53
54
  read `src/` and `public/` under the root (Astro's default layout); a config that names `root`,
54
55
  `srcDir` or `publicDir` stops the command.
@@ -78,23 +79,26 @@ findings it excludes (below). Severities are fixed by the package. A key of a ch
78
79
  an earlier version had (`wiring`, `optimizeDepsIgnore`) is noted and ignored; an unknown key stops
79
80
  the command.
80
81
 
81
- | Key | Used by | What |
82
- | ------------------------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
83
- | `donorTerms` | `donor-terms` | Terms that must not ship: the template site's brand, people, places, phone, email, domain, asset names. Plain strings, matched as whole words, case-insensitively with whitespace collapsed. |
84
- | `imageIgnore` | `image-formats` | Raster images under `public/` that ship without an AVIF sibling on purpose, as paths relative to the project root (`public/brand/logo.png`). |
85
- | `feedImagePatterns` | `feed-image-formats` | Regular expressions (case-insensitive) matching a feed photo URL still requested as JPEG or PNG. Defaults to the vOffice image hosts (imgproxy `plain` paths, `dyn.v-office.com`). |
86
- | `listingPages` | `listing-noindex`, `listing-links` | URL paths of pages that list rentals, in addition to the pages the check recognizes by their markup. |
87
- | `listingClientOnly` | `listing-links` | Listing pages whose list stays client-only, as `{ "path", "reason" }`: their list is the rentals free in a window, and a build-time list would show booked-out flats. |
88
- | `consentAllowedHosts` | `consent-gate` | Hosts a `<script src>` or `<iframe src>` may load before consent. The site's own host is always allowed. |
89
- | `hubFilterOptions` | `v9-hub-filters` | v9: the Website SDK options the Hub filter check needs (`rentalScope`, `customAttributeFilterDefinitions`), as the site passes them to the SDK. |
90
- | `structureIgnore` | `page-structure` | Rules the site declines: `one-h1`, `heading-skip`, `landmark-main`, `img-alt`, `control-label`, `table-headers`, `heading-ratio`. |
91
- | `bannedCopy` | `banned-copy` | Wordings recorded customer corrections ban, as `{ "pattern", "why" }` (a regular expression over the page's visible text). |
92
- | `copyExcludePaths` | the copy checks | URL paths (and below) the copy checks skip, legal pages ported verbatim; `/impressum` also covers `/de/impressum`. |
93
- | `bannedCopyExcludePaths` | `banned-copy` | URL paths only `banned-copy` skips (an FAQ whose answers port verbatim). |
94
- | `allowDuplicateSentences` | `duplicate-sentences` | Sentences a page may render twice. |
95
- | `quoteSources` | `quote-sources` | Files or directories holding the text a `<blockquote>` may quote (content captures, the feed's reviews written by the build). |
96
- | `factCheckAccepted` | `rental-facts` | Disagreements the customer confirmed, as the finding prints them: `<slug> <kind> prose=<n> feed=<n>`. |
97
- | `exclude` | every check | The findings the site accepts, by check id: see [Excluding findings](#excluding-findings). |
82
+ | Key | Used by | What |
83
+ | ------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
84
+ | `donorTerms` | the donor checks | Terms that must not ship: the template site's brand, people, places, phone, email, domain, asset names. Plain strings, matched as whole words, case-insensitively with whitespace collapsed. |
85
+ | `donorPatterns` | the donor checks | Regular expressions for donor traces a term cannot say (`Brisen(hof\|haus)` also in "Brisenhofer"), matched as written: case-sensitive, in words, whitespace collapsed; no POSIX classes. |
86
+ | `imageIgnore` | `image-formats` | Raster images under `public/` that ship without an AVIF sibling on purpose, as paths relative to the project root (`public/brand/logo.png`). |
87
+ | `feedImagePatterns` | `feed-image-formats` | Regular expressions (case-insensitive) matching a feed photo URL still requested as JPEG or PNG. Defaults to the vOffice image hosts (imgproxy `plain` paths, `imgproxy.*` hosts, imgproxy base64 paths, `dyn.v-office.com`). |
88
+ | `listingPages` | `listing-noindex`, `listing-links` | URL paths of pages that list rentals, in addition to the pages the check recognizes by their markup. |
89
+ | `listingClientOnly` | `listing-noindex`, `listing-links` | Listing pages whose list stays client-only, as `{ "path", "reason" }`: their list is the rentals free in a window, and a build-time list would show booked-out flats. |
90
+ | `consentAllowedHosts` | the consent checks | Hosts a `<script src>` or `<iframe src>` may load before consent. The site's own host is always allowed. |
91
+ | `hubFilterOptions` | `v9-hub-filters` | v9: the Website SDK options the Hub filter check needs (`rentalScope`, `customAttributeFilterDefinitions`), as the site passes them; `src/data/hub-filters.json` wins over a copy here. |
92
+ | `structureIgnore` | `page-structure`, `heading-ratio` | Rules the site declines: `one-h1`, `heading-skip`, `landmark-main`, `img-alt`, `control-label`, `table-headers`; `heading-ratio` turns that check off. |
93
+ | `bannedCopy` | `banned-copy`, `banned-copy-src` | Wordings recorded customer corrections ban, as `{ "pattern", "why" }` (a regular expression over the page's visible text). With `"in": "src"` the ban reads the site's own text in `src/` instead (`banned-copy-src`), never the page, which also prints the feed's text; `"srcExclude"` lists path prefixes it skips (`src/data/legal/`). |
94
+ | `copyExcludePaths` | the copy checks | URL paths (and below) the copy checks skip, legal pages ported verbatim; `/impressum` also covers `/de/impressum`. |
95
+ | `bannedCopyExcludePaths` | `banned-copy` | URL paths only `banned-copy` skips (an FAQ whose answers port verbatim). |
96
+ | `address` | `copy-address` | The one form of address of the site's German texts: `"du"` or `"Sie"`. Unset or `null`, the check waits. |
97
+ | `addressAllow` | `copy-address` | German texts the check misreads (a sentence-initial „Sie" meaning she or they), as the text's exact wording. |
98
+ | `allowDuplicateSentences` | `duplicate-sentences` | Sentences a page may render twice. |
99
+ | `quoteSources` | `quote-sources` | Files or directories holding the text a `<blockquote>` may quote (content captures, the feed's reviews written by the build). |
100
+ | `factCheckAccepted` | `rental-facts` | Disagreements the customer confirmed, as the finding prints them: `<slug> <kind> prose=<n> feed=<n>`. |
101
+ | `exclude` | every check | The findings the site accepts, by check id: see [Excluding findings](#excluding-findings). |
98
102
 
99
103
  ## Excluding findings
100
104
 
@@ -139,12 +143,18 @@ unrelated findings, `match` picks one.
139
143
 
140
144
  `src` stage:
141
145
 
142
- | Check | Example | Exempts |
143
- | ---------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------- |
144
- | `html-comments` | `"src/components/legacy/"` | the comments in that folder (a finding names `file:line`, so a file or a folder is the way) |
145
- | `image-formats` | `"public/brand/logo.png"` | that image; `"public/brand/"` the folder |
146
- | `sync-once` | `true` | the loader finding (`src/content.config.ts`) |
147
- | `v9-hub-filters` | `true`, or `{ "match": "could not be asked" }` | the check, or only "the Hub could not be asked" |
146
+ | Check | Example | Exempts |
147
+ | --------------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------- |
148
+ | `html-comments` | `"src/components/legacy/"` | the comments in that folder (a finding names `file:line`, so a file or a folder is the way) |
149
+ | `image-formats` | `"public/brand/logo.png"` | that image; `"public/brand/"` the folder |
150
+ | `sync-once` | `true` | the loader finding (`src/content.config.ts`); `"package.json"` the script finding |
151
+ | `v9-hub-filters` | `true`, or `{ "match": "could not be asked" }` | the check, or only "the Hub could not be asked" |
152
+ | `banned-copy-src` | `"src/data/legal/"` | the banned wordings in that folder (or the ban's `srcExclude`) |
153
+ | `copy-english` | `{ "path": "src/i18n/footer.ts", "match": "pictures" }` | that word in that file |
154
+ | `copy-address` | `{ "match": "Sie liebt das Meer" }` | that text (or `addressAllow`) |
155
+ | `donor-terms-source` | `{ "path": "src/content/reviews.json", "match": "\"brisenhof\"" }` | that term in that file only |
156
+ | `consent-gate-source` | `{ "match": "from player.vimeo.com" }` | that host (or list it in `consentAllowedHosts`) |
157
+ | `robots-txt` | `true` | the check: its one finding is about the site |
148
158
 
149
159
  `dist` stage, site checks:
150
160
 
@@ -159,14 +169,23 @@ unrelated findings, `match` picks one.
159
169
  | `listing-noindex` | `"/suche/last-minute"` | that listing page |
160
170
  | `listing-links` | `"/merkliste"` | that listing page (or `listingClientOnly`, with the reason) |
161
171
  | `sitemap-noindex` | `{ "match": "https://www.example.de/agb" }` | that sitemap entry: the finding's path is the sitemap file, so `match` names the URL |
172
+ | `sitemap-coverage` | `"/danke"` | that page left out of the sitemap |
173
+ | `orphan-pages` | `"/landing"` | that page |
162
174
  | `page-heads` | `"/blog"` | the title and description lengths on the blog |
163
175
  | | `{ "match": "description \"Ferienwohnungen an der Ostsee\"" }` | one repeated description |
164
176
  | `canonical-link` | `"/impressum"` | that page |
165
177
  | `open-graph` | `{ "path": "/impressum", "match": "og:image" }` | the findings naming `og:image` on that page (a page missing both tags has one finding naming both) |
166
178
  | `trailing-slash` | `true` | the check: its one finding is about the whole site |
179
+ | `json-ld` | `"/alt"` | that page |
180
+ | `rental-markup` | `{ "match": "VacationRental", "reason": "…" }` | every rental page, with the reason (old `seo.deny` `rental-markup`) |
181
+ | `breadcrumbs` | `{ "match": "/alte-seite" }` | the items pointing there |
167
182
  | `v9-production-hub` | `{ "match": ".env.local is committed" }` | that finding alone |
183
+ | `v10-production-api` | `{ "match": ".env.local is committed" }` | that finding alone |
168
184
  | `page-structure` | `{ "path": "/impressum", "match": "heading-skip:" }` | one rule on one page (`structureIgnore` declines a rule on every page) |
185
+ | `heading-ratio` | `"/unterkuenfte"` | that index page |
186
+ | `voffice-credit` | `"/buchen"` | the pages under that path |
169
187
  | `load-order` | `{ "match": "leaflet" }` | the findings about that library |
188
+ | `first-paint-photos` | `{ "match": "/img/hero.jpg" }` | the findings about that photo |
170
189
  | `banned-copy` | `"/faq"` | that page (or `bannedCopyExcludePaths`) |
171
190
  | `duplicate-sentences` | `{ "match": "Wir freuen uns auf Ihre Anfrage" }` | that sentence on every page (or `allowDuplicateSentences`) |
172
191
  | `quote-sources` | `"/bewertungen"` | that page |
@@ -190,40 +209,57 @@ unrelated findings, `match` picks one.
190
209
 
191
210
  ### `src`: before the build
192
211
 
193
- | id | Severity | What it refuses or reports | How to fix |
194
- | ---------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
195
- | `html-comments` | error | An HTML comment (`<!-- … -->`) in `src/**/*.{astro,tsx,jsx,md,mdx,html}`: Astro passes it into the built page, readable with View Source. | `{/* … */}` in `.astro` and JSX markup, `//` in frontmatter, remove it from Markdown. |
196
- | `image-formats` | error | A raster image under `public/` without an `.avif` sibling. Left out by file name, in any folder: icons (`favicon*`, `apple-touch-icon*`, `icon-*`, `android-chrome-*`, `mstile-*`, `web-app-manifest-*`) and share pictures (`og-*`, `og_*`, `*-og.*`, `social-*`, `*-social.*`, `twitter-*`, `share-*`), which link previews show only as JPEG or PNG. | Encode the AVIF (or list the file in `imageIgnore`). |
197
- | `sync-once` | warning | An inline content loader in `src/content.config.ts` that fetches the PMS without the `CONTENT_SYNC_TOKEN` reuse idiom: `astro check` and `astro build` each run it, twice per deploy. | Keep the token in the store's meta (`meta.get`) and reuse the entries (`store.keys()`) when it matches. |
198
- | `v9-hub-filters` | warning | v9 only (`CMS_BACKEND=v9` in the build's env or `.env` / `.env.production`, else AI Studio's `PMS_BACKEND=v9`): a Hub filter the site's search needs that the be-on! Hub does not serve, asked through the site's own `website-sdk hub-filters check`; a Hub that cannot be asked. A warning: the outcome is the Hub's data. | Add the entry in the Hub (`website-sdk hub-filters request`), or drop it from the SDK options. Needs `install`. |
212
+ | id | Severity | What it refuses or reports | How to fix |
213
+ | --------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
214
+ | `html-comments` | error | An HTML comment (`<!-- … -->`) in any text file under `src/` (`.astro`, Markdown, Vue, SVG, CSS, a `.ts` string a page renders with `set:html`): it reaches the built page, readable with View Source. A script comment that only mentions `<!--` counts too. | `{/* … */}` in markup, `//` in frontmatter and scripts; remove it from Markdown and rendered strings. |
215
+ | `image-formats` | error | A raster image under `public/` without an `.avif` sibling. Left out: the images a web manifest names, by their path, on the site's own origin (`*.webmanifest` under `public/`, `public/manifest.json`, or the `src/pages/` endpoint that writes one), and by file name, in any folder, icons (`favicon*`, `apple-touch-icon*`, `icon-*`, `android-chrome-*`, `mstile-*`, `web-app-manifest-*`) and share pictures (`og-*`, `og_*`, `*-og.*`, `social-*`, `*-social.*`, `twitter-*`, `share-*`), which link previews show only as JPEG or PNG. | Encode the AVIF (or list the file in `imageIgnore`). |
216
+ | `sync-once` | warning | An inline content loader in `src/content.config.ts` that fetches the PMS (`fetch`, the SDK under any name, `store.clear()` and refill) without the `CONTENT_SYNC_TOKEN` reuse idiom: `astro check` and `astro build` each run it, twice per deploy. With the idiom: a `package.json` script chaining `astro check` and `astro build` without a token. | Keep the token in the store's meta (`meta.get`) and reuse the entries (`store.keys()`); export one token for the script's pair. |
217
+ | `v9-hub-filters` | warning | v9 only (`CMS_BACKEND=v9` in the build's env or `.env` / `.env.production`, else AI Studio's `PMS_BACKEND=v9`): a Hub filter the site's search needs (SDK options, `src/data/hub-filters.json`) that the be-on! Hub does not serve, asked through the site's own `website-sdk hub-filters check`; a Hub that cannot be asked; a `hub-filters.json` that is no JSON array. A warning: the outcome is the Hub's data. | Add the entry in the Hub (`website-sdk hub-filters request`), or drop it from the SDK options. Needs `install`. |
218
+ | `robots-txt` | error | A `public/robots.txt` beside a generator (`src/pages/robots.txt.ts`, `.js`, `.mjs`, `.mts`): both answer `/robots.txt`. | Delete `public/robots.txt`; keep its rules in the generator. |
219
+ | `donor-terms-source` | error | A `donorTerms` term or `donorPatterns` match in the site's own source: the text files under `src/` (code, comments, content, data), the text and data files under `public/` (`llms.txt`, a manifest, JSON, SVG, HTML; not its scripts and styles), the Astro config, `package.json`, a term rejoined where a comment wraps it over two lines; a file name under `src/` or `public/`. Skipped without terms and patterns. | Replace the term, rename the file. |
220
+ | `consent-gate-source` | error | A `<script src>` or `<iframe src>` with a third-party absolute URL in `src/**/*.{astro,tsx,jsx,html,mdx}` outside the consent layer (`src/components/consent/`, `src/lib/consent/`) and `<template data-embed-content>`: a `client:only` island loads it though the built HTML does not show it. The site's own host and `consentAllowedHosts` are allowed. A tag in a comment is not read. Skipped without `src/lib/consent/`, and without a known site host (`--site` or a literal `site`). | Frame it with `ConsentEmbed`, or register the vendor so the kit injects it after consent. |
221
+ | `banned-copy-src` | error | A `bannedCopy` wording scoped `"in": "src"` in the site's own text: every file under `src/`, comments and tags blanked, the values of text-bearing attributes and props kept (`title`, `alt`, `placeholder`, a component's `heading="…"`). A file or folder named after a `copyExcludePaths` or `bannedCopyExcludePaths` entry (`src/pages/agb.astro` for `/agb`) and the ban's `srcExclude` prefixes are skipped. Skipped without such a ban. | Reword. |
222
+ | `copy-english` | error | In every `"en-XX"` text of the site's code (language-kit `defineTexts`, `Localized<…>` data): an em dash, or a Germanism (Imprint, GTC, final cleaning, vacation apartment/house/flat, pictures, accommodations). | Legal notice, Terms and conditions, Cleaning fee, Apartment / House / vacation rental, Photos, stays or properties. |
223
+ | `copy-address` | error | In every `"de-XX"` text of the site's code: a pronoun of the form of address the site does not use (`address`), and on a Sie site a du command without a pronoun („Schreib uns.", „Bitte wähle ein Land."). Waits for `address`. | Rewrite the text in the site's form; a misread text goes into `addressAllow`. |
199
224
 
200
225
  ### `dist`: after the build
201
226
 
202
- | id | Severity | What it refuses or reports | How to fix |
203
- | --------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
204
- | `view-source` | error | A developer's note a visitor can read with View Source: an HTML comment in a built page (framework markers are allowed), a comment in an inline `<script>`, `<style>` or event handler that is also in `src/` or `public/`, a comment in CSS or a line comment in JS copied from `public/`, a source map or a reference to one in any shipped file. Bundled JS and CSS are not scanned for comments. | Remove the comment; turn source maps off in the build. |
205
- | `donor-terms` | error | A configured term in the visible text, the title, inline scripts and styles (JSON-LD) or an attribute of a built page, in a built file name, or in the shipped JS and CSS, as a whole word. Skipped without configured terms. | Replace the term; list the template site's terms in `donorTerms`. |
206
- | `consent-gate` | error | A third-party `<script src>` or `<iframe src>` outside the consent kit's `ConsentEmbed` frame, loading before consent; a vendor in `ENABLED_VENDOR_IDS` that is not `approved` in `consent-registry.snapshot.json`. Skipped without `src/lib/consent/`. | Frame it with `ConsentEmbed`, or register the vendor so the kit injects it after consent; list a consent-free host in `consentAllowedHosts`. |
207
- | `feed-image-formats` | warning | A feed photo from the vOffice image hosts requested as JPEG or PNG in `src`, `srcset` or `poster`; a warning because the photos come from the PMS feed. | Pass feed photos through `webpUrl()`. |
208
- | `listing-noindex` | error | A page that lists rentals (the search page's `data-prerendered-results` container, the `SearchResults` island, or `listingPages`) that is noindex. Waits while every page is noindex. | Take the page out of the noindex routes. |
209
- | `listing-links` | warning | A page that lists rentals that carries no links to rentals in its HTML, so a crawler without JavaScript sees an empty list. Runs once some listing has links or the build has more than ten pages; a warning because the links come from the PMS feed. | Render the list server-side, or list the page in `listingClientOnly` with the reason. |
210
- | `sitemap-noindex` | error | A sitemap entry whose page says noindex (waits while every page is noindex) or is not in the build; an `llms.txt` link to a page that is not there. Skipped without a sitemap and `llms.txt`. | Make the sitemap filter and the noindex routes agree; fix the link. |
211
- | `page-heads` | warning | On indexable pages: a title over 60 characters, a description empty or over 160, a title or description another page repeats (language versions naming each other as `hreflang` alternates do not count). A missing one is `page-metadata`. | Shorten; give each page its own. |
212
- | `canonical-link` | error | On the launched site (a production site URL, some indexable page): an indexable page without an absolute `<link rel="canonical">`. | Build it from the Astro `site` and the page path. |
213
- | `open-graph` | warning | On the launched site: an indexable page without an absolute `og:url` and `og:image`. | Add them, absolute. |
214
- | `trailing-slash` | warning | On the launched site: `trailingSlash` is not `"never"`. | Set `trailingSlash: "never"`; write internal links without a trailing slash. |
215
- | `v9-production-hub` | warning | v9 only, on the launched site: the build's env does not call the production Hub (`CMS_STAGE=production` or the production Hub URLs); a committed `.env.local`; a committed `HUB_API_KEY` equal to `.env.local`'s. Waits for a production site URL and an indexable page. | Set the production stage or URLs and the customer's production key; untrack `.env.local`. |
216
- | `page-structure` | warning | One `<h1>`, no skipped heading level, no flood of `<h3>` under few `<h2>`, a `<main>`, `alt` on every image, a label on every control, a caption (or `aria-label`/`aria-labelledby`) and scoped `<th>` on every table. | Fix the component where a fault repeats; decline a rule in `structureIgnore`. |
217
- | `load-order` | warning | At start: an on-demand library (map, chart, 3D) in the start-up code, a start-up chunk over 150 KB compressed, photos after the first in card swipe strips with a URL, a first-paint photo from 100 KB up in one size only, a preloaded swap face without a `size-adjust` stand-in. | `import()` on demand; first slide only; width `srcset`; a `local()` stand-in. |
218
- | `banned-copy` | warning | A `bannedCopy` wording in a page's visible text. Skipped without configured wordings. | Reword. |
219
- | `duplicate-sentences` | warning | The same sentence rendered twice on one page. Waits while every page is noindex. | Remove one, or list it in `allowDuplicateSentences`. |
220
- | `quote-sources` | warning | A `<blockquote>` not word for word in `quoteSources`; a configured source that is missing. Skipped without sources. | Quote the source exactly; restore the step that writes the source. |
221
- | `rental-facts` | warning | On rental pages (the rental blocks' `data-rental-stats` / `data-rental-description` markers): the fact row against the same number in the owner's German description; a perk line of `src/data/perks.ts` a unit's amenities do not back. | The customer corrects the PMS; a confirmed one goes into `factCheckAccepted`. |
222
-
223
- The `dist` stage also runs the platform's dist checks, all warnings, which a site configures
224
- nothing for: `site-manifest`, `key-pages`, `not-found-beacon`, `internal-links`, `legal-pages`,
225
- `page-metadata`, `placeholder-content`, `insecure-resources` and `sitemap`. The build worker runs
226
- these on its own too, over every build of every website, with or without this package.
227
+ | id | Severity | What it refuses or reports | How to fix |
228
+ | --------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
229
+ | `view-source` | error | A developer's note a visitor can read with View Source: an HTML comment in a built page, before or after `<html>` (exact framework markers and wordless ones allowed); a comment in an inline script, style, `style` attribute or handler, or in shipped JS or CSS (`_astro/`, `public/`), whose text is in a project file (not `node_modules`, `dist/`); a source map. Licence banners are allowed, and a library shipped from `public/` as it comes (`*.min.js`/`*.min.css`, a `vendor/` folder, or a licence banner on top) is not read. | Remove the comment or move it where the build drops it (`//` in frontmatter); turn source maps off. |
230
+ | `donor-terms` | warning | A `donorTerms` term (whole word) or `donorPatterns` match in the visible text, the title, inline scripts and styles (JSON-LD) or an attribute of a built page, in a built file name, or in the shipped JS and CSS. A warning: pages carry the PMS feed's text; the site's own source is `donor-terms-source`. Skipped without terms and patterns. | Replace the term; list the template site's terms in `donorTerms`. |
231
+ | `consent-gate` | error | A third-party `<script src>` or `<iframe src>` outside the consent kit's `ConsentEmbed` frame, loading before consent (needs the site's host); an enabled vendor not `approved` in `consent-registry.snapshot.json`; an `ENABLED_VENDOR_IDS` that is not a literal of quoted ids, or a snapshot that does not parse. Skipped without `src/lib/consent/`. | Frame it with `ConsentEmbed`, or register the vendor so the kit injects it after consent; list a consent-free host in `consentAllowedHosts`. |
232
+ | `feed-image-formats` | warning | A feed photo from the vOffice image hosts requested as JPEG or PNG: in `src`, `srcset` or `poster`, any other attribute (island props, `style`), inline scripts (JSON) and styles (`background-image`); a warning because the photos come from the PMS feed. | Pass feed photos through `webpUrl()`; end an imgproxy URL in `.webp`. |
233
+ | `listing-noindex` | error | A page that lists rentals (the search page's `data-prerendered-results` container, the `SearchResults` island, or `listingPages`) that is noindex. Not a listing: a rental page (`data-rental-stats`), the favourites grid, a `listingClientOnly` page. Waits while no page but the 404 page and redirect stubs is indexable. | Take the page out of the noindex routes. |
234
+ | `listing-links` | warning | A page that lists rentals whose list carries no link to a rental page (a page with `data-rental-stats`) in its HTML, so a crawler without JavaScript sees an empty list. Runs once the build has a rental page; a warning because the links come from the PMS feed. | Render the list server-side, or list the page in `listingClientOnly` with the reason. |
235
+ | `sitemap-noindex` | error | A sitemap entry whose page says noindex (waits while every page is noindex; the 404 and 500 pages and redirect stubs do not count) or is not in the build, in every `sitemap*.xml` of the build and every sitemap an index names; an `llms.txt` link to a page that is not there; an `llms.txt` without the spec's shape (`# ` heading first, a `> ` summary above the first section, `## ` sections). Skipped without a sitemap and `llms.txt`. | Make the sitemap filter and the noindex routes agree; fix the link or the shape. |
236
+ | `sitemap-coverage` | warning | An indexable page the sitemap does not list; a `sitemap-index.xml` without a `/sitemap.xml` beside it. Skipped without a sitemap. | List the page or give it noindex; write a copy of the index as `sitemap.xml`. |
237
+ | `orphan-pages` | warning | An indexable page (not the home page) no other built page links to in its HTML; links an island renders in the browser do not count. | Link it from a page a crawler reaches. |
238
+ | `page-heads` | warning | On indexable pages: a title over 60 characters, a description empty or over 160, a title or description another page repeats (language versions naming each other as `hreflang` alternates do not count), a title naming the site (`og:site_name`) twice. A missing one is `page-metadata`. | Shorten; give each page its own; name the site once. |
239
+ | `canonical-link` | error | On the launched site (a production site URL, some indexable page), an indexable page whose `<link rel="canonical">` is missing, not absolute, on another origin than the site's, with a query or fragment, naming another page while the sitemap lists this one, or in the other URL form than `trailingSlash` (`"never"`: no trailing slash; `"always"`: one). | Build it from the Astro `site` and the page's own path. |
240
+ | `open-graph` | warning | On the launched site: an indexable page without an absolute `og:url` and `og:image`, or whose `og:url` is not its canonical URL. | Add them, absolute; use the canonical URL as `og:url`. |
241
+ | `trailing-slash` | warning | On the launched site: `trailingSlash` is not `"never"`. | Set `trailingSlash: "never"`; write internal links without a trailing slash. |
242
+ | `json-ld` | error | A `<script type="application/ld+json">` block on any page that does not parse. | Build the block from an object with `JSON.stringify`. |
243
+ | `rental-markup` | error | On the launched site: an indexable rental page (the rental blocks' `data-rental-stats` marker) without `VacationRental` JSON-LD (in `@graph`, a type list or nested). | Render the rental's `VacationRental` block from the feed's values, or exclude `rental-markup` with the reason. |
244
+ | `breadcrumbs` | warning | A `BreadcrumbList` item on the site's own origin (or relative) that no page of the build serves. | Point the item at the built page. |
245
+ | `v9-production-hub` | error | v9 only, on the launched site: the build's env does not call the production Hub (`CMS_STAGE=production` or the production Hub URLs); a committed `.env.local`; a `HUB_API_KEY` equal to `.env.local`'s. Waits for a production site URL and an indexable page. | Set the production stage or URLs and the customer's production key; untrack `.env.local`. |
246
+ | `v10-production-api` | error | v10 only (`CMS_BACKEND=v10`, else AI Studio's `PMS_BACKEND=v10`), on the launched site: the build's env does not call the production vOffice API (`CMS_STAGE=production` or the production `VOFFICE_*` endpoints); a committed `.env.local`; a `VOFFICE_LOCAL_DEV_ACCESS_TOKEN` equal to `.env.local`'s. Waits like `v9-production-hub`. | Set the production stage or endpoints and the customer's production token; untrack `.env.local`. |
247
+ | `page-structure` | warning | One `<h1>`, no skipped heading level, a `<main>`, `alt` on every image, a label on every control the keyboard reaches (only `aria-hidden` with `tabindex="-1"` is out of reach), a caption (or `aria-label`/`aria-labelledby`) and scoped `<th>` on every table. | Fix the component where a fault repeats; decline a rule in `structureIgnore`. |
248
+ | `heading-ratio` | warning | Ten or more `<h3>` and more than three times as many as `<h2>` on a page: usually card titles marked up as headings. | Style a `<p>` for a card's name; decline it in `structureIgnore`. |
249
+ | `voffice-credit` | error | A page whose site footer (a `<footer>` outside `main`, `article`, `section`, `aside`, `nav`, `blockquote`, `figure`, `dialog`) has no link to `https://www.v-office.com` (look-alike hosts and `dyn.v-office.com` do not count); a home page (a locale's `de/index.html` too) without a site footer. The wording is not read. | Add `Realisiert mit <a href="https://www.v-office.com">vOffice</a>` to the site footer, worded per language. |
250
+ | `load-order` | warning | At start: an on-demand library (map, chart, 3D) in the start-up code, a start-up chunk over 150 KB compressed, photos after the first in card swipe strips with a URL, a swap face without a `size-adjust` stand-in (preloaded, or apart: not preloaded). | `import()` on demand; first slide only; a `local()` stand-in. |
251
+ | `first-paint-photos` | error | A first-paint photo (not lazy) or image preload from 100 KB up, a file of the build, in one size only (no width `srcset` / `imagesrcset`); in the `<header>`/`<section>` of the `fetchpriority="high"` photo, a hidden slide (`aria-hidden`, `inert`, `invisible` or `opacity-0`, also at a breakpoint, never a `hover:` state; `hidden` or a closed `<dialog>` when the image is not lazy) whose image carries a URL, an SVG icon aside. | Width variants in a `srcset` with a measured `sizes`; hidden slides get `data-src` and their URL after load. |
252
+ | `banned-copy` | warning | A `bannedCopy` wording (not scoped `"in": "src"`) in a page's visible text. Skipped without configured wordings. | Reword. |
253
+ | `duplicate-sentences` | warning | The same sentence rendered twice on one page. Waits while every page but the 404 page is noindex. | Remove one, or list it in `allowDuplicateSentences`. |
254
+ | `quote-sources` | warning | A `<blockquote>` not word for word in `quoteSources`; a configured source that is missing (when none is there, only that). Skipped without sources. | Quote the source exactly; restore the step that writes the source. |
255
+ | `rental-facts` | warning | On rental pages (the rental blocks' `data-rental-stats` / `data-rental-description` markers, and a site's own `data-rental-facts` chip row): the fact row against the same number in the owner's German description; a perk line of `src/data/perks.ts` a unit's amenities do not back; rental pages on which nothing was compared at all (a description without its marker, or no figure stated). | The customer corrects the PMS; a confirmed one goes into `factCheckAccepted`. |
256
+
257
+ The `dist` stage also runs the platform's dist checks, warnings but for `not-found-beacon` (an
258
+ error: the 404 page's own code never calls `fetch` or `sendBeacon` with `/api/404-log`, in its scripts
259
+ or the chunks they import), which a site configures nothing for: `site-manifest`, `key-pages`,
260
+ `not-found-beacon`, `internal-links`, `legal-pages`, `page-metadata`, `placeholder-content`,
261
+ `insecure-resources` and `sitemap`. The build worker runs these on its own too, over every build
262
+ of every website, with or without this package.
227
263
 
228
264
  A check that does not apply to the site reports `skipped`; a check that fails itself reports
229
265
  `failed` and never blocks.
@@ -243,7 +279,7 @@ every build, the nightly deploy builds included.
243
279
  { "id": "site-manifest", "status": "ok", "findings": [], "omitted": 0 },
244
280
  {
245
281
  "id": "donor-terms",
246
- "status": "error",
282
+ "status": "warning",
247
283
  "findings": [
248
284
  { "path": "index.html", "message": "donor term \"brisenhof\" in the visible text: \"…\"" }
249
285
  ],
package/dist/bin.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as cli } from "./cli-AmQJK-Qj.mjs";
2
+ import { n as cli } from "./cli-ChBTZhc7.mjs";
3
3
  //#region src/bin.ts
4
4
  process.exitCode = await cli(process.argv.slice(2), {
5
5
  out: (line) => console.log(line),