diff --git a/scripts/verify-website.mjs b/scripts/verify-website.mjs index 5f01331..666cdf2 100644 --- a/scripts/verify-website.mjs +++ b/scripts/verify-website.mjs @@ -32,6 +32,19 @@ for (const [path, expectedContent] of pages) { } } +for (const [path, html] of pageHtml) { + for (const content of [ + 'Primitives', + 'href="https://opensource.nipesolutions.com"', + 'NIPE Open Source', + ]) { + if (!html.includes(content)) + throw new Error(`${path} is missing header content: ${content}`); + } + if (html.includes('NIPE primitives / 01')) + throw new Error(`${path} contains the retired header label`); +} + const home = pageHtml.get('index.html'); if (home === undefined) throw new Error('Missing built home page'); diff --git a/website/de/datenschutz/index.html b/website/de/datenschutz/index.html index 9c6e805..80f45ad 100644 --- a/website/de/datenschutz/index.html +++ b/website/de/datenschutz/index.html @@ -48,7 +48,12 @@ RReadonlyView - NIPE primitives / 01 +
+ Primitives + NIPE Open Source +