docs: record visual direction (02) and Astro stack
ADR 0002 picks proposal 02 "Bottega"; ADR 0003 picks Astro static, hosting still open. Update runbooks, module map and CLAUDE.md commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Deploy
|
||||
|
||||
TBD. Hosting target not decided yet — record the choice as an ADR, then document:
|
||||
- Build command and output directory
|
||||
- Deploy procedure
|
||||
- Rollback procedure
|
||||
Hosting not decided yet (see `docs/adr/0003-stack-astro-statico.md`). Record the choice as a new ADR, then document here:
|
||||
- Build: `npm run build` → upload `dist/`
|
||||
- Server rule: serve `/<page>` from `/<page>.html` (e.g. nginx `try_files $uri $uri.html $uri/ =404;`)
|
||||
- Keep the current URLs (`/officina`, `/servizi`, `/dove-siamo`, `/contatti`) so no redirects are needed
|
||||
- Rollback procedure: TBD
|
||||
|
||||
@@ -1,11 +1,31 @@
|
||||
# Local development
|
||||
|
||||
Stack not chosen yet. Once it is, document here:
|
||||
- Prerequisites (runtime versions, tools)
|
||||
- Install command
|
||||
- Dev server command and URL
|
||||
- Required environment variables (names only, never values)
|
||||
## Prerequisites
|
||||
- Node.js (tested with v24) and npm
|
||||
|
||||
## Run the site
|
||||
```
|
||||
npm install
|
||||
npm run dev # http://localhost:4321
|
||||
```
|
||||
|
||||
## Build
|
||||
```
|
||||
npm run build # static output in dist/
|
||||
npm run preview # serve dist/ locally
|
||||
```
|
||||
Pages are emitted as `dist/<page>.html` (`build.format: 'file'`); canonical URLs have no `.html`, matching the current site (`/officina`, `/servizi`, …). The web server must map `/officina` → `officina.html`.
|
||||
|
||||
## Where things are
|
||||
- Business data (address, phone, hours, services, FAQ): `src/data/officina.ts` — change it here, pages and JSON-LD follow
|
||||
- Layout, meta tags, AutoRepair JSON-LD: `src/layouts/Base.astro`
|
||||
- Global styles / design tokens: `src/styles/global.css`
|
||||
- Sections: `src/components/` · Pages: `src/pages/`
|
||||
|
||||
## Design proposals (reference only)
|
||||
```
|
||||
python3 -m http.server 4173 --directory design # http://localhost:4173/proposte/
|
||||
```
|
||||
|
||||
## Environment
|
||||
`.env` (git-ignored) currently holds the Gitea API configuration:
|
||||
`GITEA_API_URL`, `GITEA_TOKEN`, `GITEA_OWNER`, `GITEA_REPO`.
|
||||
`.env` (git-ignored) holds the Gitea API configuration only: `GITEA_API_URL`, `GITEA_TOKEN`, `GITEA_OWNER`, `GITEA_REPO`. The site itself needs no environment variables.
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# Testing
|
||||
|
||||
TBD once the stack is chosen. Document:
|
||||
- Unit/integration test command
|
||||
- Lint / format / typecheck commands
|
||||
- Manual verification checklist (pages render, links work, mobile layout)
|
||||
No automated tests yet. Before considering a change done:
|
||||
- `npm run build` must complete without errors
|
||||
- Manual check at 1280px and 375px: no horizontal scroll, one H1 per page, nav links work
|
||||
- "Open now" sign: status and next opening are computed in Europe/Rome time
|
||||
- Validate structured data (AutoRepair, FAQPage) with Google's Rich Results Test before launch
|
||||
- Run Lighthouse / PageSpeed on the built site (baseline still missing, see docs/analisi)
|
||||
|
||||
Reference in New Issue
Block a user