Demo content from demo/admin-guide (1e24351)

This commit is contained in:
f451-admin 2026-10-06 09:07:17 +02:00
parent 775a16ea7e
commit fc844d10b9
4 changed files with 39 additions and 7 deletions

View file

@ -34,6 +34,16 @@ the instance repository, which holds `_meta/theme.yaml`, `_meta/themes/`,
as `F451_GLOBAL_TEMPLATES`, and its provider must also be used by a space in
`F451_SPACES`. Invalid JSON fails at startup. See [[theming]].
| Variable | Required when | Default |
|---|---|---|
| `F451_CUSTOM_STYLESHEET` | The operator wants one CSS file for the whole installation | — (none) |
`F451_CUSTOM_STYLESHEET` is the path of a CSS file on the host that runs the
web container. It is linked in the `<head>` **before** the instance and space
theme stylesheets, so those can override it; `?ohne-stylesheet` leaves it in
place. Like them it is not checked. See [[theming]], section *Theme
stylesheet*, and `deploy/BETRIEB.md`.
## Sign-in (OIDC)
See [[sign-in-options]], [[entra-id]], [[forgejo-identity-provider]].

View file

@ -28,8 +28,8 @@ writing pages in it — for that, see the User Guide space.
- [[github-sign-in]] — enabling GitHub as a sign-in method
- [[spaces-and-git-providers]] — configuring spaces, service tokens,
webhooks, and the drift job
- [[theming]] — instance and space themes, templates, logo, and the
contrast thresholds
- [[theming]] — instance and space themes, templates, building blocks, the
page frame, the theme stylesheet, logo, and the contrast thresholds
- [[configuration-reference]] — every environment variable, grouped by
concern
- [[production-setup]] — what a production server looks like: TLS, sign-in,

View file

@ -38,6 +38,14 @@ reindexes just one. The response reports success or failure per space —
> network/fetch panel with the session cookie present), not from a bare
> terminal.
## Theme caches
The api caches themes, templates, thresholds, brand files, theme stylesheets
and fonts for 5 minutes. A save through the api and a webhook push that
touches one of these files empty the cache; without a webhook, a change made
directly in Git shows up after at most five minutes. Details are on the
[[theming]] page, section *Caches*.
## Troubleshooting playbook
| Symptom | Likely cause |

View file

@ -197,16 +197,27 @@ colours keeps that look.
Built-ins cannot be edited, but they can be copied: on the appearance page
choose the scope (instance or space), pick the built-in in **Template**,
press **Adopt template** — the template's values replace the draft's, the template
selection is cleared — change what you like, then **Save as template …**
press **Adopt template** — the template's base, light and dark values replace
the draft's and the template stays selected (this works for any template,
built-in or your own) — change what you like, then **Save as template …**
with a name and slug. The new file in `_meta/themes/` holds everything the
built-in set, the twelve switches included, and no `use`. **Save as
built-in set, the twelve switches included, and no `use` and no brand. **Save as
template …** always embeds the chosen template this way, so a template saved
from "Fokus plus two colours" really contains Fokus.
Rotecodefraktion, the demo theme, is exactly such a template: the
construction f451 had before 1.2.5 with its own colours and typefaces.
## Upgrading to 1.2.5–1.2.7
From 1.2.5 on, the default look and, from 1.2.6, the default frame follow the
Editorial mockup: an instance without a theme of its own looks different after
the update (no top bar, new building blocks). To keep the earlier look, put
`use: rotecodefraktion` into `_meta/theme.yaml`, plus your own colours if you
had any. Old values are migrated on read (see *Building blocks*); no manual
step is needed. 1.2.7 adds the theme stylesheet; nothing changes for
repositories without a `_meta/theme.css`.
## Create your own template
A template is one YAML file; there are two ways to get it into `_meta/themes/`.
@ -306,7 +317,8 @@ The CSP is unchanged: everything is served same-origin from `/api`.
The stylesheet also applies to the appearance page and to the
building-block preview. If a file breaks the page you would use to remove it,
open `/einstellungen/erscheinungsbild?ohne-stylesheet`: the view leaves out
all theme stylesheets (the strip links it as "Show without stylesheet"). Then
the instance and space stylesheets (the strip links it as "Show without
stylesheet"); the operator stylesheet `F451_CUSTOM_STYLESHEET` stays. Then
press **Remove stylesheet**, or fix the file in Git.
## Contrast thresholds
@ -340,7 +352,9 @@ thresholds:
note: Raised after the tints were remixed in Q4.
```
Allowed range is 1.5–7.0 per role; there is no "off". `note` is free text up
On the appearance page the thresholds block (**Prüfschärfe**) is collapsed by
default; it opens by itself only when thresholds are lowered. Allowed range is
1.5–7.0 per role; there is no "off". `note` is free text up
to 500 characters, shown next to the values as text. Thresholds apply to the
whole instance and cannot be set per space — otherwise the most careless
space would set the standard. Lowering a threshold turns a refused save into