diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 8eb906a..0cfc3af 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -5,7 +5,7 @@ on: branches: [main] pull_request: # The site's content partly lives in CodeForFire/lagebuch and - # CodeForFire/helfer. An automatic + # CodeForFire/FwAssist. An automatic # cross-repo trigger would need a token with write access to this repo, so # instead the site rebuilds nightly and on demand. schedule: @@ -38,11 +38,11 @@ jobs: persist-credentials: false # docs/ from the FwAssist repo: the launcher icon and the screenshots. - - name: Check out CodeForFire/helfer (docs only) + - name: Check out CodeForFire/FwAssist (docs only) uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - repository: CodeForFire/helfer - path: .helfer + repository: CodeForFire/FwAssist + path: .FwAssist sparse-checkout: docs persist-credentials: false diff --git a/.gitignore b/.gitignore index 50f225c..88cfc59 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ dist/ # Dependencies node_modules/ -# Content synced from CodeForFire/lagebuch and CodeForFire/helfer by +# Content synced from CodeForFire/lagebuch and CodeForFire/FwAssist by # scripts/sync-docs.mjs. docs/ over there is the single source of truth; # nothing here is hand-edited. src/content/docs/lagebuch/datenschutz.md @@ -17,7 +17,7 @@ public/bilder/ # CI checkouts of the app repos .lagebuch/ -.helfer/ +.FwAssist/ # Environment .env diff --git a/README.md b/README.md index 1e20390..f953929 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ The CodeForFire website, home of both apps: [Lagebuch](https://github.com/CodeForFire/lagebuch) (offline incident documentation for the command vehicle, at `/lagebuch/`) and -[FwAssist](https://github.com/CodeForFire/helfer) (small offline helpers for +[FwAssist](https://github.com/CodeForFire/FwAssist) (small offline helpers for the phone, at `/fwassist/`). The landing page at `/` presents both equally. Built with [Astro Starlight](https://starlight.astro.build/), deployed to GitHub Pages at @@ -24,8 +24,8 @@ the app repositories and copied in at build time by `scripts/sync-docs.mjs`: | Lagebuch logo, favicon, og:image | `CodeForFire/lagebuch` `docs/logo/` | | demo animation | `CodeForFire/lagebuch` `docs/demo/einsatz-flow.gif` | | screenshots on `lagebuch/rundgang` | `CodeForFire/lagebuch` `docs/screenshots/` | -| FwAssist icon | `CodeForFire/helfer` `docs/play/icon-512.png` | -| screenshots on `fwassist` | `CodeForFire/helfer` `docs/screenshots/` | +| FwAssist icon | `CodeForFire/FwAssist` `docs/play/icon-512.png` | +| screenshots on `fwassist` | `CodeForFire/FwAssist` `docs/screenshots/` | Lagebuch used to live at the root; `astro.config.mjs` redirects the old addresses (`/download/`, `/rundgang/`, …) to `/lagebuch/…`. @@ -48,8 +48,8 @@ Pages → Run workflow*). A change to the Datenschutz page or a fresh ## Developing Needs Node 22.19 or newer (see `.nvmrc`) and checkouts of -`CodeForFire/lagebuch` and `CodeForFire/helfer`. The sync script looks for -each in `$LAGEBUCH_PATH` / `$HELFER_PATH`, then `.lagebuch/` / `.helfer/`, +`CodeForFire/lagebuch` and `CodeForFire/FwAssist`. The sync script looks for +each in `$LAGEBUCH_PATH` / `$FWASSIST_PATH`, then `.lagebuch/` / `.FwAssist/`, `../` and `../../`. ```bash diff --git a/astro.config.mjs b/astro.config.mjs index 8845307..8219131 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -8,7 +8,7 @@ const site = 'https://codeforfire.github.io' const ORG = 'https://github.com/CodeForFire' const LAGEBUCH = `${ORG}/lagebuch` -const HELFER = `${ORG}/helfer` +const FWASSIST = `${ORG}/FwAssist` /** * Developer-facing and English: linked, never copied. @@ -74,11 +74,11 @@ export default defineConfig({ items: [ { label: 'Start', slug: 'fwassist' }, github([ - ['Quellcode', HELFER], - ['Releases', `${HELFER}/releases`], - ['Changelog', `${HELFER}/blob/main/CHANGELOG.md`], - ['Ideen', `${HELFER}/discussions/categories/ideen`], - ['Fragen & Antworten', `${HELFER}/discussions`], + ['Quellcode', FWASSIST], + ['Releases', `${FWASSIST}/releases`], + ['Changelog', `${FWASSIST}/blob/main/CHANGELOG.md`], + ['Ideen', `${FWASSIST}/discussions/categories/ideen`], + ['Fragen & Antworten', `${FWASSIST}/discussions`], ]), ], }, diff --git a/scripts/sync-docs.mjs b/scripts/sync-docs.mjs index 37a56d2..7202c1e 100644 --- a/scripts/sync-docs.mjs +++ b/scripts/sync-docs.mjs @@ -1,5 +1,5 @@ // Copies the user-facing content that lives in the app repositories -// (CodeForFire/lagebuch and CodeForFire/helfer) into this site. docs/ over +// (CodeForFire/lagebuch and CodeForFire/FwAssist) into this site. docs/ over // there is the single source of truth: nothing this script writes is // hand-edited here, and every target is gitignored. // @@ -160,14 +160,14 @@ function describe(repo) { } /** The FwAssist start page: the launcher icon and the phone screenshots. */ -async function syncHelfer(helfer) { - const iconSource = join(helfer, 'docs', 'play', 'icon-512.png') +async function syncFwAssist(fwassist) { + const iconSource = join(fwassist, 'docs', 'play', 'icon-512.png') await required(iconSource, 'the FwAssist hero icon') const iconTarget = join(siteRoot, 'src', 'assets', 'fwassist-icon.png') await cp(iconSource, iconTarget) const shots = await copyScreenshots( - join(helfer, 'docs', 'screenshots'), + join(fwassist, 'docs', 'screenshots'), join(siteRoot, 'src', 'assets', 'fwassist', 'screenshots'), ) return [iconTarget, ...shots] @@ -175,11 +175,11 @@ async function syncHelfer(helfer) { const lagebuch = findRepo('lagebuch', 'LAGEBUCH_PATH') console.log(`sync-docs: reading Lagebuch from ${lagebuch} @ ${describe(lagebuch)}`) -const helfer = findRepo('helfer', 'HELFER_PATH') -console.log(`sync-docs: reading FwAssist from ${helfer} @ ${describe(helfer)}`) +const fwassist = findRepo('FwAssist', 'FWASSIST_PATH') +console.log(`sync-docs: reading FwAssist from ${fwassist} @ ${describe(fwassist)}`) const written = [ await syncDatenschutz(lagebuch), ...(await syncLagebuchImages(lagebuch)), - ...(await syncHelfer(helfer)), + ...(await syncFwAssist(fwassist)), ] console.log(`sync-docs: wrote ${written.length} files`) diff --git a/src/content/docs/fwassist/index.mdx b/src/content/docs/fwassist/index.mdx index 6723b45..cc6c0a5 100644 --- a/src/content/docs/fwassist/index.mdx +++ b/src/content/docs/fwassist/index.mdx @@ -29,7 +29,7 @@ und lässt sich mit einem eigenen Symbol direkt vom Startbildschirm öffnen. :::note[FwAssist 0.1.0 ist da] Die erste Version mit allen fünf Helfern – was drin ist, steht im -[Changelog](https://github.com/CodeForFire/helfer/blob/v0.1.0/CHANGELOG.md). +[Changelog](https://github.com/CodeForFire/FwAssist/blob/v0.1.0/CHANGELOG.md). FwAssist ist noch vor 1.0, es kann sich also noch einiges ändern. Ein Eintrag im Play Store ist in Vorbereitung. Probiert es aus und sagt uns, was fehlt oder nicht passt. @@ -54,7 +54,7 @@ nicht passt. | **Dekon-Platz** | Dekon-Stufen I bis III: Sofortmaßnahmen, Aufbau und Plan für Stufe II, Technik und Ablauf für Stufe III. | Weitere Helfer folgen. Welcher fehlt euch? Schreibt es unter -[Ideen](https://github.com/CodeForFire/helfer/discussions/categories/ideen). +[Ideen](https://github.com/CodeForFire/FwAssist/discussions/categories/ideen). ## Ein Symbol pro Helfer @@ -72,7 +72,7 @@ es gibt also nichts, was euer Handy verlassen könnte. ## Installation Die APK für **Android 7.0 und neuer** liegt beim -[aktuellen Release](https://github.com/CodeForFire/helfer/releases/latest) auf +[aktuellen Release](https://github.com/CodeForFire/FwAssist/releases/latest) auf GitHub – die Datei `helfer-.apk`. 1. Die APK auf dem Handy herunterladen und öffnen. @@ -100,5 +100,5 @@ gh attestation verify helfer-.apk --repo CodeForFire/helfer FwAssist kommt von denselben Leuten wie [Lagebuch](/lagebuch/) und sieht deshalb auch so aus. Fragen, Ideen und Berichte von der letzten Übung gerne im -[Forum](https://github.com/CodeForFire/helfer/discussions) – Fehler in ein -[Issue](https://github.com/CodeForFire/helfer/issues/new/choose). +[Forum](https://github.com/CodeForFire/FwAssist/discussions) – Fehler in ein +[Issue](https://github.com/CodeForFire/FwAssist/issues/new/choose). diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx index fb1da35..f8e471c 100644 --- a/src/content/docs/index.mdx +++ b/src/content/docs/index.mdx @@ -61,4 +61,4 @@ CodeForFire sind Feuerwehrleute aus Bayern, die selbst mit diesen Werkzeugen arbeiten. Rückmeldungen aus der Praxis sind das Wertvollste: was im Einsatz fehlt, was nervt, was Papier heute noch besser kann. Schreibt uns im Forum von [Lagebuch](https://github.com/CodeForFire/lagebuch/discussions) oder -[FwAssist](https://github.com/CodeForFire/helfer/discussions). +[FwAssist](https://github.com/CodeForFire/FwAssist/discussions).