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
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git
.arbor-cache.json
public
temp
5 changes: 5 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Repository guide

- Use the checked-in `./arbor`; do not add Node.js, CSS frameworks, or another build step.
- Prefer semantic HTML and existing Ivy/Lattice styles; check `STYLEREF.md` before adding custom CSS or JavaScript.
- Do not edit generated site data or commit `public/`. Validate the production build with `docker build --platform linux/amd64 --file container/Dockerfile .`; it runs data sync and Arbor checks without modifying the checkout.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ Opens a live-reloading dev server at `http://localhost:8080`. Changes to content

---

## Production build

Run the production build in a container so its generated data and output stay
outside the checkout:

```bash
docker build --platform linux/amd64 --file container/Dockerfile .
```

---

## Content types

### Blog posts
Expand Down
12 changes: 12 additions & 0 deletions container/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:3.12-slim-bookworm AS build

WORKDIR /site
COPY . .

RUN bash scripts/sync-data.sh \
&& ./arbor check \
&& ./arbor build

FROM scratch

COPY --from=build /site/public/ /
3 changes: 2 additions & 1 deletion scripts/sync-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

set -euo pipefail

cd "$(git rev-parse --show-toplevel)"
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$repo_root"

python3 sync-tags.py
bash scripts/update-latest-post.sh
Loading