[138] Website: GitHub-Pages-Workflow (Hugo 0.147.9 extended), Links über relURL und Render-Hooks, läuft auch unter /DOSSIER/

This commit is contained in:
Claude committed 2026-11-05 12:16:59 +00:00
1 parent 8544231819
commit 0f83f8c7cf
12 files changed
+99 -45

No files matched your search

+51
View File
@@ -0,0 +1,51 @@
# Website (website/) mit Hugo bauen und auf GitHub Pages veröffentlichen ([138]).
# Voraussetzung: in den Repo-Einstellungen Pages → Source: „GitHub Actions".
name: pages
on:
push:
branches: [master]
paths:
- "website/**"
- ".github/workflows/pages.yml"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
env:
HUGO_VERSION: "0.147.9"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Hugo extended installieren
run: |
curl -fsSL -o hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
tar -xzf hugo.tar.gz hugo
./hugo version
- id: pages
uses: actions/configure-pages@v5
- name: Bauen
run: ./hugo --source website --minify --panicOnWarning --baseURL "${{ steps.pages.outputs.base_url }}/"
- uses: actions/upload-pages-artifact@v3
with:
path: website/public
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
+1
View File
@@ -1,3 +1,4 @@
/public/
/resources/
.hugo_build.lock
/assets/jsconfig.json
+5 -5
View File
@@ -2,12 +2,12 @@
Farben und Schriften aus dem Design-Paket (website/_design/DESIGN-PAKET.md): Planpapier, Tusche,
Schraffurgrau und das Öffnungsrot aus den Dossier-Plänen. Schriften liegen in /fonts (OFL). */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/schibsted-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/schibsted-grotesk-800.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/schibsted-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/schibsted-grotesk-800.woff2") format("woff2"); }
/* IBM Plex Sans/Mono, beschnitten und darum umbenannt (reservierter Name, s. NOTICE) */
@font-face { font-family: "Dossier Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Dossier Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Dossier Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Dossier Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Dossier Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Dossier Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
:root {
--canvas: #f2f0e9;
+2 -2
View File
@@ -4,8 +4,8 @@ import { initCommon } from "./common.js";
initCommon();
const VIDEO_URL = "/hero/hero-scrub.mp4";
const POSTER_URL = "/hero/hero-poster.jpg";
const VIDEO_URL = "hero/hero-scrub.mp4"; // relativ zur Startseite (GitHub Pages kann unter /DOSSIER/ liegen)
const POSTER_URL = "hero/hero-poster.jpg";
// Die fünf Bedingungen für die ruhige Startseite, Zeichen für Zeichen wie in home.css
const GATES = [
"(max-width: 720px)",
-10
View File
@@ -1,10 +0,0 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": [
"*"
]
}
}
}
@@ -0,0 +1,4 @@
{{- $u := .Destination -}}
{{- if and (hasPrefix $u "/") (not (hasPrefix $u "//")) }}{{ $u = strings.TrimPrefix "/" $u | relURL }}{{ end -}}
<img src="{{ $u | safeURL }}" alt="{{ .PlainText }}"{{ with .Title }} title="{{ . }}"{{ end }} loading="lazy" decoding="async">
{{- /* kein Zeilenumbruch */ -}}
+6
View File
@@ -0,0 +1,6 @@
{{- /* Root-relative Ziele („/docs/…") auf die baseURL beziehen: die Seite läuft unter
dossier.openbureau.ch und unter expiredtanin.github.io/DOSSIER/. */ -}}
{{- $u := .Destination -}}
{{- if and (hasPrefix $u "/") (not (hasPrefix $u "//")) }}{{ $u = strings.TrimPrefix "/" $u | relURL }}{{ end -}}
<a href="{{ $u | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ .Text }}</a>
{{- /* kein Zeilenumbruch */ -}}
+2 -2
View File
@@ -2,8 +2,8 @@
<span class="mark">dossier<span>.</span></span>
<a href="{{ site.Params.repo }}/blob/master/LICENSE">Lizenz AGPL-3.0</a>
<a href="{{ site.Params.repo }}">Quellcode auf GitHub</a>
<a href="/docs/">Dokumentation</a>
<a href="/stand/">Stand</a>
<a href="{{ "docs/" | relURL }}">Dokumentation</a>
<a href="{{ "stand/" | relURL }}">Stand</a>
<a href="{{ site.Params.bureau }}">Impressum und Kontakt: openbureau</a>
{{- if not .IsHome }}{{ with .File }}
<a href="{{ site.Params.repo }}/blob/master/website/content/{{ .Path }}">Diese Seite im Repo</a>
+3 -3
View File
@@ -5,15 +5,15 @@
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#f2f0e9" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#15181c" media="(prefers-color-scheme: dark)">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="icon" href="{{ "favicon.svg" | relURL }}" type="image/svg+xml">
<link rel="canonical" href="{{ .Permalink }}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ if .IsHome }}Dossier · Open-Source-CAAD{{ else }}{{ .Title }} · Dossier{{ end }}">
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ site.Params.description }}{{ end }}">
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:image" content="{{ "hero/hero-ending.jpg" | absURL }}">
<link rel="preload" href="/fonts/schibsted-grotesk-800.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/ibm-plex-sans-400.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ "fonts/schibsted-grotesk-800.woff2" | relURL }}" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="{{ "fonts/ibm-plex-sans-400.woff2" | relURL }}" as="font" type="font/woff2" crossorigin>
{{- $theme := resources.Get "js/theme.js" | js.Build (dict "minify" true) | fingerprint }}
<script src="{{ $theme.RelPermalink }}" integrity="{{ $theme.Data.Integrity }}"></script>
{{- $css := resources.Get "css/site.css" | minify | fingerprint }}
+3 -3
View File
@@ -1,9 +1,9 @@
<a class="skip" href="#main">Zum Inhalt</a>
<header class="top">
<a class="mark" href="/" aria-label="Dossier, Startseite">dossier<span>.</span></a>
<a class="mark" href="{{ "" | relURL }}" aria-label="Dossier, Startseite">dossier<span>.</span></a>
<nav aria-label="Hauptnavigation">
<a href="/docs/"{{ if hasPrefix .RelPermalink "/docs/" }} aria-current="page"{{ end }}>doku</a>
<a href="/stand/"{{ if hasPrefix .RelPermalink "/stand/" }} aria-current="page"{{ end }}>stand</a>
<a href="{{ "docs/" | relURL }}"{{ if hasPrefix .RelPermalink ("docs/" | relURL) }} aria-current="page"{{ end }}>doku</a>
<a href="{{ "stand/" | relURL }}"{{ if hasPrefix .RelPermalink ("stand/" | relURL) }} aria-current="page"{{ end }}>stand</a>
<a href="{{ site.Params.repo }}">quellcode</a>
<button class="theme-toggle" type="button" aria-label="Hell oder dunkel">
<svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.25" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M8 1.75a6.25 6.25 0 0 1 0 12.5z" fill="currentColor"/></svg>
+3 -1
View File
@@ -1 +1,3 @@
<li><a href="{{ .Get "link" }}">{{ .Get "title" }}</a>{{ with .Get "subtitle" }} <span>{{ . }}</span>{{ end }}</li>
{{- $u := .Get "link" -}}
{{- if hasPrefix $u "/" }}{{ $u = strings.TrimPrefix "/" $u | relURL }}{{ end -}}
<li><a href="{{ $u }}">{{ .Get "title" }}</a>{{ with .Get "subtitle" }} <span>{{ . }}</span>{{ end }}</li>
+19 -19
View File
@@ -42,12 +42,12 @@
<p class="sub only-static">Dossier ist ein freies CAD für Architektur. Du baust ein Gebäude aus Bauteilen, Grundriss, Schnitt und Ansicht werden daraus berechnet.</p>
<div class="cta">
<a class="btn" href="{{ site.Params.releases }}">Dossier herunterladen</a>
<a class="link only-scrub" href="/docs/anleitung/">Anleitung lesen</a>
<a class="link only-scrub" href="{{ "docs/anleitung/" | relURL }}">Anleitung lesen</a>
</div>
</div>
</div>
<figure class="static-sheet">
<img src="/hero/hero-sheet.webp" width="1110" height="596" loading="lazy" decoding="async"
<img src="{{ "hero/hero-sheet.webp" | relURL }}" width="1110" height="596" loading="lazy" decoding="async"
alt="Blatt aus Dossier: Grundriss Erdgeschoss und Ansicht Süd des Musterhauses, 1:100">
</figure>
</section>
@@ -60,19 +60,19 @@
<div class="dimline" aria-hidden="true"><i></i><span>17.39</span><i></i></div>
<ol class="step-list reveal">
<li class="step">
<figure><img src="/img/app-grundriss.webp" width="1600" height="1000" loading="lazy" decoding="async" alt="Dossier mit dem Grundriss Erdgeschoss, Werkzeuge links, Objekt-Info rechts"></figure>
<figure><img src="{{ "img/app-grundriss.webp" | relURL }}" width="1600" height="1000" loading="lazy" decoding="async" alt="Dossier mit dem Grundriss Erdgeschoss, Werkzeuge links, Objekt-Info rechts"></figure>
<p class="num">01</p>
<h3>Zeichnen.</h3>
<p>Linien, Wände, Öffnungen, mit Fang und Befehlszeile.</p>
</li>
<li class="step">
<figure><img src="/img/app-schnitt.webp" width="1600" height="1000" loading="lazy" decoding="async" alt="Dossier mit einem Schnitt durch das Musterhaus, Decken und Dach geschnitten"></figure>
<figure><img src="{{ "img/app-schnitt.webp" | relURL }}" width="1600" height="1000" loading="lazy" decoding="async" alt="Dossier mit einem Schnitt durch das Musterhaus, Decken und Dach geschnitten"></figure>
<p class="num">02</p>
<h3>Modellieren.</h3>
<p>Wandtypen mit Schichten, Decken, Dächer, Treppen, Gelände.</p>
</li>
<li class="step">
<figure><img src="/img/app-layout-blatt.webp" width="1600" height="1000" loading="lazy" decoding="async" alt="Dossier mit einem Planblatt: Ansichtsfenster, Plankopf und Massstab"></figure>
<figure><img src="{{ "img/app-layout-blatt.webp" | relURL }}" width="1600" height="1000" loading="lazy" decoding="async" alt="Dossier mit einem Planblatt: Ansichtsfenster, Plankopf und Massstab"></figure>
<p class="num">03</p>
<h3>Publizieren.</h3>
<p>Pläne auf Blätter legen, PDF mit Ebenen, DXF, IFC.</p>
@@ -99,14 +99,14 @@
</ul>
</div>
<div class="shots" aria-live="polite">
<img class="on plan-img" src="/img/cli-deckenspiegel-eg.webp" width="1400" height="908" loading="lazy" decoding="async" alt="Deckenspiegel Erdgeschoss aus Dossier, 1:100">
<img class="plan-img" src="/img/cli-grundriss-eg.webp" width="1500" height="1000" loading="lazy" decoding="async" alt="Grundriss Erdgeschoss mit Bemassung und Raumstempeln">
<img class="plan-img" src="/img/fenster.webp" width="1200" height="673" loading="lazy" decoding="async" alt="Fenster und Türen im Grundriss mit ihren Massen, aus denen die Liste entsteht">
<img src="/img/app-situation.webp" width="1600" height="1000" loading="lazy" decoding="async" alt="Situation in Dossier mit Parzelle, Grenzabständen und Baulinie">
<img class="plan-img" src="/img/gelaende.webp" width="1200" height="638" loading="lazy" decoding="async" alt="Schnitt durch das Musterhaus mit Gelände aus Höhenlinien">
<img class="plan-img" src="/img/lage.webp" width="1200" height="864" loading="lazy" decoding="async" alt="Lageplan mit Schatten am 21. Juni, Höhenlinien und Grenzabständen">
<img class="plan-img" src="/img/cli-schnitt-aa.webp" width="1600" height="851" loading="lazy" decoding="async" alt="Schnitt A-A als Vektorplan, wie er als PDF oder DXF hinausgeht">
<img class="plan-img" src="/img/cli-ansicht-skizze.webp" width="1600" height="768" loading="lazy" decoding="async" alt="Ansicht Süd im Skizzenstil">
<img class="on plan-img" src="{{ "img/cli-deckenspiegel-eg.webp" | relURL }}" width="1400" height="908" loading="lazy" decoding="async" alt="Deckenspiegel Erdgeschoss aus Dossier, 1:100">
<img class="plan-img" src="{{ "img/cli-grundriss-eg.webp" | relURL }}" width="1500" height="1000" loading="lazy" decoding="async" alt="Grundriss Erdgeschoss mit Bemassung und Raumstempeln">
<img class="plan-img" src="{{ "img/fenster.webp" | relURL }}" width="1200" height="673" loading="lazy" decoding="async" alt="Fenster und Türen im Grundriss mit ihren Massen, aus denen die Liste entsteht">
<img src="{{ "img/app-situation.webp" | relURL }}" width="1600" height="1000" loading="lazy" decoding="async" alt="Situation in Dossier mit Parzelle, Grenzabständen und Baulinie">
<img class="plan-img" src="{{ "img/gelaende.webp" | relURL }}" width="1200" height="638" loading="lazy" decoding="async" alt="Schnitt durch das Musterhaus mit Gelände aus Höhenlinien">
<img class="plan-img" src="{{ "img/lage.webp" | relURL }}" width="1200" height="864" loading="lazy" decoding="async" alt="Lageplan mit Schatten am 21. Juni, Höhenlinien und Grenzabständen">
<img class="plan-img" src="{{ "img/cli-schnitt-aa.webp" | relURL }}" width="1600" height="851" loading="lazy" decoding="async" alt="Schnitt A-A als Vektorplan, wie er als PDF oder DXF hinausgeht">
<img class="plan-img" src="{{ "img/cli-ansicht-skizze.webp" | relURL }}" width="1600" height="768" loading="lazy" decoding="async" alt="Ansicht Süd im Skizzenstil">
</div>
</div>
</section>
@@ -132,12 +132,12 @@
</div>
<div class="cut-body">
<figure class="cut-plan">
<img src="/img/schnitt/grundriss-eg.webp" width="1200" height="981" loading="lazy" decoding="async" alt="Grundriss Erdgeschoss des Musterhauses mit einer verschiebbaren Schnittlinie">
<img src="{{ "img/schnitt/grundriss-eg.webp" | relURL }}" width="1200" height="981" loading="lazy" decoding="async" alt="Grundriss Erdgeschoss des Musterhauses mit einer verschiebbaren Schnittlinie">
<div class="cut-line" aria-hidden="true"><b>A</b><b>A</b></div>
</figure>
<figure class="cut-view">
{{- range $i, $_ := seq 0 11 }}
<img src="/img/schnitt/schnitt-{{ printf "%02d" $i }}.webp" width="1200" height="799" loading="lazy" decoding="async" alt="Schnitt durch das Musterhaus an Stelle {{ add $i 1 }} von 12">
<img src="{{ printf "img/schnitt/schnitt-%02d.webp" $i | relURL }}" width="1200" height="799" loading="lazy" decoding="async" alt="Schnitt durch das Musterhaus an Stelle {{ add $i 1 }} von 12">
{{- end }}
</figure>
</div>
@@ -164,7 +164,7 @@
<div class="wrap narrow">
<h2 id="h-state" class="sec-title"><span class="snap" aria-hidden="true"></span>Ehrlicher Stand</h2>
<p class="reveal">Dossier ist jung. Vieles ist fertig, einiges erst halb. Hier steht genau, was.</p>
<p><a class="btn ghost" href="/stand/">Zum Stand</a></p>
<p><a class="btn ghost" href="{{ "stand/" | relURL }}">Zum Stand</a></p>
</div>
</section>
@@ -176,7 +176,7 @@
<div class="faq-list">
<details>
<summary>Läuft Dossier auf meinem Rechner?</summary>
<p>macOS ist die Hauptplattform, mit Anzeige über Metal. Linux läuft über Electron. Windows ist bisher nicht geprüft. Fertige Installer gibt es noch nicht; bis dahin wird Dossier aus dem Quellcode gebaut, siehe <a href="/download/">Download und Installation</a>.</p>
<p>macOS ist die Hauptplattform, mit Anzeige über Metal. Linux läuft über Electron. Windows ist bisher nicht geprüft. Fertige Installer gibt es noch nicht; bis dahin wird Dossier aus dem Quellcode gebaut, siehe <a href="{{ "download/" | relURL }}">Download und Installation</a>.</p>
</details>
<details>
<summary>Kann ich DWG und DXF öffnen?</summary>
@@ -192,7 +192,7 @@
</details>
<details>
<summary>Ist es fertig?</summary>
<p>Nein, aber brauchbar für Entwurf und Eingabe. Was fehlt, steht im <a href="/stand/">Stand</a>.</p>
<p>Nein, aber brauchbar für Entwurf und Eingabe. Was fehlt, steht im <a href="{{ "stand/" | relURL }}">Stand</a>.</p>
</details>
</div>
</div>
@@ -206,7 +206,7 @@
<h2 id="h-end" class="end-title">Fang mit einer Wand an.</h2>
<div class="cta">
<a class="btn" href="{{ site.Params.releases }}">Dossier herunterladen</a>
<a class="link" href="/docs/anleitung/">Anleitung lesen</a>
<a class="link" href="{{ "docs/anleitung/" | relURL }}">Anleitung lesen</a>
</div>
</div>
</section>