From c75ae37054a92d4cd042c65ce2ac6d0f4f41ed68 Mon Sep 17 00:00:00 2001 From: Artur Moreira Date: Wed, 8 Apr 2026 08:57:58 +0100 Subject: [PATCH] docs: sync local frontend/domain documentation Publish the local docs updates for domain and frontend notes so guidance is available in Git. --- docs/domains.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/domains.md b/docs/domains.md index 4f475f1..c4a72e1 100644 --- a/docs/domains.md +++ b/docs/domains.md @@ -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` → `` 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` → `` 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 | ---