docs: sync local frontend/domain documentation

Publish the local docs updates for domain and frontend notes so guidance is available in Git.
This commit is contained in:
Artur Moreira committed 2026-04-08 08:58:21 +01:00
1 parent 02c64f0ff9
commit c75ae37054
1 file changed
+4 -8
+4 -8
View File
@@ -88,12 +88,11 @@ A full sample lives at `config/domains/fpa-example.json`.
"locale": "pt-PT",
"timezone": "Europe/Lisbon",
"ads_enabled": false,
"analytics_id": null,
"auth_links": true
"analytics_id": null
}
```
Live file: `config/domains/andebol.net.json`. Set **`auth_links`** to show **Entrar** / **Registar** in the header and footer and to enable **`/entrar`** → `wp-login.php` and **`/registar`** → `wp-login.php?action=register`. The HTML document language is the full `locale` tag (e.g. `pt-PT` → `<html lang="pt-PT">` in `Base.astro`). Shell UI strings come from `frontend/src/lib/ui-i18n.ts` keyed off the same field; see `docs/i18n.md`.
Live file: `config/domains/andebol.net.json`. The HTML document language uses the first segment of `locale` (e.g. `pt-PT` → `<html lang="pt">` in `Base.astro`).
**Local smoke test:** the dev server does not read a `HOST` env var for the HTTP `Host` header. Map the hostname and open the site with that host (or send the header manually):
@@ -132,10 +131,7 @@ Shape matches `DomainConfig` in `frontend/src/types/index.ts`:
"timezone": "Europe/Lisbon",
"ads_enabled": false,
"analytics_id": null,
// Optional: show login/register in chrome; /entrar and /registar redirect to WordPress
"auth_links": false
"analytics_id": null
}
```
@@ -146,7 +142,7 @@ Shape matches `DomainConfig` in `frontend/src/types/index.ts`:
| Domain | Config file | Notes |
|--------|-------------|--------|
| `newsproject.bitreport.pt` | `newsproject.bitreport.pt.json` | `theme`: `sports` |
| `andebol.net` | `andebol.net.json` | `theme`: `institutional`; `wp_endpoint`: `:8081`; `auth_links`: true; andebol news automation |
| `andebol.net` | `andebol.net.json` | `theme`: `institutional`; `wp_endpoint`: `:8081`; andebol news automation |
| Local dev | `localhost.json` | Fallback when hostname file is missing |
---