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
8 changes: 4 additions & 4 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,7 +17,7 @@ public/bilder/

# CI checkouts of the app repos
.lagebuch/
.helfer/
.FwAssist/

# Environment
.env
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/…`.
Expand All @@ -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/`,
`../<name>` and `../../<name>`.

```bash
Expand Down
12 changes: 6 additions & 6 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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`],
]),
],
},
Expand Down
14 changes: 7 additions & 7 deletions scripts/sync-docs.mjs
Original file line number Diff line number Diff line change
@@ -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.
//
Expand Down Expand Up @@ -160,26 +160,26 @@ 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]
}

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`)
10 changes: 5 additions & 5 deletions src/content/docs/fwassist/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

Expand All @@ -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-<version>.apk`.

1. Die APK auf dem Handy herunterladen und öffnen.
Expand Down Expand Up @@ -100,5 +100,5 @@ gh attestation verify helfer-<version>.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).
2 changes: 1 addition & 1 deletion src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Loading