Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions scripts/verify-website.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ for (const [path, expectedContent] of pages) {
}
}

for (const [path, html] of pageHtml) {
for (const content of [
'<span>Primitives</span>',
'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');

Expand Down
7 changes: 6 additions & 1 deletion website/de/datenschutz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@
<a class="brand" href="/"
><span class="brand-mark">R</span><span>ReadonlyView</span></a
>
<span class="collection">NIPE primitives / 01</span>
<div class="collection">
<span>Primitives</span>
<a href="https://opensource.nipesolutions.com"
>NIPE Open Source</a
>
</div>
<nav aria-label="Hauptnavigation">
<a href="/#docs">Dokumentation</a>
<a href="https://github.com/NIPE-Solutions/readonly-view"
Expand Down
7 changes: 6 additions & 1 deletion website/de/impressum/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@
<a class="brand" href="/"
><span class="brand-mark">R</span><span>ReadonlyView</span></a
>
<span class="collection">NIPE primitives / 01</span>
<div class="collection">
<span>Primitives</span>
<a href="https://opensource.nipesolutions.com"
>NIPE Open Source</a
>
</div>
<nav aria-label="Hauptnavigation">
<a href="/#docs">Dokumentation</a>
<a href="https://github.com/NIPE-Solutions/readonly-view"
Expand Down
7 changes: 6 additions & 1 deletion website/impressum/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@
<a class="brand" href="/"
><span class="brand-mark">R</span><span>ReadonlyView</span></a
>
<span class="collection">NIPE primitives / 01</span>
<div class="collection">
<span>Primitives</span>
<a href="https://opensource.nipesolutions.com"
>NIPE Open Source</a
>
</div>
<nav aria-label="Primary">
<a href="/#docs">Docs</a>
<a href="https://github.com/NIPE-Solutions/readonly-view"
Expand Down
7 changes: 6 additions & 1 deletion website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@
<a class="brand" href="#top"
><span class="brand-mark">R</span><span>ReadonlyView</span></a
>
<span class="collection">NIPE primitives / 01</span>
<div class="collection">
<span>Primitives</span>
<a href="https://opensource.nipesolutions.com"
>NIPE Open Source</a
>
</div>
<nav aria-label="Primary">
<a href="#docs">Docs</a
><a href="https://github.com/NIPE-Solutions/readonly-view"
Expand Down
7 changes: 6 additions & 1 deletion website/privacy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@
<a class="brand" href="/"
><span class="brand-mark">R</span><span>ReadonlyView</span></a
>
<span class="collection">NIPE primitives / 01</span>
<div class="collection">
<span>Primitives</span>
<a href="https://opensource.nipesolutions.com"
>NIPE Open Source</a
>
</div>
<nav aria-label="Primary">
<a href="/#docs">Docs</a>
<a href="https://github.com/NIPE-Solutions/readonly-view"
Expand Down
11 changes: 11 additions & 0 deletions website/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,20 @@ button {
border-radius: 7px;
}
.collection {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
font-size: 13px;
color: var(--muted);
}
.collection a {
font-size: 11px;
color: var(--muted);
}
.collection a:hover {
color: var(--blue);
}
.masthead nav {
justify-self: end;
display: flex;
Expand Down