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
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
# Keep the SHA-pinned GitHub Actions current.
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 10

# Astro and Starlight must move in lockstep, so they arrive as one pull
# request rather than two that each break the build on their own.
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 10
groups:
astro:
patterns:
- "astro"
- "@astrojs/*"
73 changes: 73 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Pages

on:
push:
branches: [main]
pull_request:
# The site's content partly lives in CodeForFire/lagebuch. 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:
- cron: '17 3 * * *'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

# docs/ from the app repo: the Datenschutz page, the logo, the demo GIF
# and the screenshots. Public repo, so the default token is enough.
- name: Check out CodeForFire/lagebuch (docs only)
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: CodeForFire/lagebuch
path: .lagebuch
sparse-checkout: docs
persist-credentials: false

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
cache: npm

- run: npm ci

- name: Build
run: npm run build

- name: Configure Pages
if: github.event_name != 'pull_request'
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
with:
enablement: true

- name: Upload artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: dist

deploy:
needs: build
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Build output
dist/
.astro/

# Dependencies
node_modules/

# Content synced from CodeForFire/lagebuch by scripts/sync-docs.mjs.
# docs/ over there is the single source of truth; nothing here is hand-edited.
src/content/docs/datenschutz.md
src/assets/lagebuch-logo.png
public/bilder/

# CI checkout of the lagebuch repo
.lagebuch/

# Environment
.env
.env.production

# Editors / OS
.DS_Store
*.swp

# Local AI agent state
.claude/
.opencode/

# Local tooling artifacts — never committed
docs/superpowers/
.superpowers/
.worktrees/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 CodeForFire

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
57 changes: 56 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,57 @@
# codeforfire.github.io
Website für Lagebuch — Einsatzdokumentation für den ELW. https://codeforfire.github.io/

The website for [Lagebuch](https://github.com/CodeForFire/lagebuch) — offline
incident documentation for fire brigades. Built with
[Astro Starlight](https://starlight.astro.build/), deployed to GitHub Pages at
**<https://codeforfire.github.io/>**.

The site content is German, because its readers are German fire brigades. This
README and the code comments are English, matching the split used in the app
repository.

## Where the content comes from

Most pages are written here, in `src/content/docs/`. Some content is owned by
the app repository and copied in at build time by `scripts/sync-docs.mjs`:

| On this site | Source in `CodeForFire/lagebuch` |
|---|---|
| `datenschutz` | `docs/datenschutz-und-sicherheit.md` |
| logo, favicon, og:image | `docs/logo/` |
| demo animation | `docs/demo/einsatz-flow.gif` |
| screenshots | `docs/screenshots/` |

Everything the script writes is gitignored — never edit those files here, edit
them in the app repository. The script fails the build if a source file has
moved, rather than quietly dropping a page.

Because an automatic cross-repo trigger would need a token with write access to
this repository, the site rebuilds **nightly** (and on demand via *Actions →
Pages → Run workflow*). A change to the Datenschutz page or a fresh
`make screenshots` therefore appears here within a day.

## Developing

Needs Node 22.19 or newer (see `.nvmrc`) and a checkout of
`CodeForFire/lagebuch`. The sync script looks for it in `$LAGEBUCH_PATH`, then
`.lagebuch/`, `../lagebuch` and `../../lagebuch`.

```bash
npm install
npm run dev # syncs, then serves on http://localhost:4321/
npm run build # syncs, then builds into dist/
npm run preview # serve the built site
```

`npm run sync` on its own refreshes the imported content. It prints the commit
it read from, so a stale checkout is visible rather than silently shipped.

## Contributing

Issues and pull requests are welcome. Community guidelines, the code of conduct
and the security policy live in the
[CodeForFire org defaults](https://github.com/CodeForFire/.github).

Commits must be [DCO signed off](https://developercertificate.org/)
(`git commit -s`) and cryptographically signed (`git commit -S`); `main`
rejects anything else.
64 changes: 64 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// @ts-check
import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'

// The org Pages site is served at the root, so no `base` is needed. When a
// custom domain arrives, change `site` and add a CNAME file — nothing else.
const site = 'https://codeforfire.github.io'

const REPO = 'https://github.com/CodeForFire/lagebuch'

export default defineConfig({
site,
integrations: [
starlight({
title: 'Lagebuch',
description:
'Das digitale Einsatztagebuch für den Einsatzleitwagen — offline, ohne Cloud, ohne Abo.',
// Monolingual German: Starlight ships German UI strings, so search,
// navigation and "Auf dieser Seite" need no further configuration.
locales: {
root: { label: 'Deutsch', lang: 'de' },
},
logo: {
src: './src/assets/lagebuch-logo.png',
alt: 'Lagebuch',
replacesTitle: false,
},
favicon: '/bilder/favicon.png',
head: [
{ tag: 'meta', attrs: { property: 'og:image', content: `${site}/bilder/social-preview.png` } },
{ tag: 'meta', attrs: { property: 'og:image:alt', content: 'Lagebuch — Einsatzdokumentation für den ELW' } },
{ tag: 'meta', attrs: { name: 'twitter:card', content: 'summary_large_image' } },
],
customCss: ['./src/styles/custom.css'],
social: [{ icon: 'github', label: 'GitHub', href: REPO }],
sidebar: [
{
label: 'Lagebuch',
items: [
{ label: 'Start', slug: '' },
{ label: 'Probefahrt in 5 Minuten', slug: 'probefahrt' },
{ label: 'Herunterladen und installieren', slug: 'download' },
{ label: 'Lagebuch im Vergleich', slug: 'vergleich' },
{ label: 'Datenschutz und Sicherheit', slug: 'datenschutz' },
],
},
{
// Developer-facing and English: linked, never copied.
label: 'Auf GitHub',
items: [
{ label: 'Quellcode', link: REPO, attrs: { target: '_blank' } },
{ label: 'Releases', link: `${REPO}/releases`, attrs: { target: '_blank' } },
{ label: 'Roadmap', link: `${REPO}/blob/main/ROADMAP.md`, attrs: { target: '_blank' } },
{ label: 'Changelog', link: `${REPO}/blob/main/CHANGELOG.md`, attrs: { target: '_blank' } },
{ label: 'Fragen & Antworten', link: `${REPO}/discussions`, attrs: { target: '_blank' } },
{ label: 'Mitmachen', link: `${REPO}/blob/main/CONTRIBUTING.md`, attrs: { target: '_blank' } },
],
},
],
editLink: undefined,
lastUpdated: false,
}),
],
})
Loading