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
48 changes: 48 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# AGENTS.md

**overpressure/overpressure.github.io** is [overpressure.org](https://overpressure.org), the landing page of
[overpressure](https://github.com/overpressure/overpressure): what the project is, the app's download for each
system, the headsets and where to ask. One static page in `page/`, filled in by `landing/build.py` with the newest
release from GitHub and deployed to GitHub Pages by the Pages workflow. How it works: [README.md](README.md).

The project's rules for issues, documents, code and changes:
[conventions](https://github.com/overpressure/overpressure/blob/main/docs/develop/conventions.md).

## Setup and commands

Python 3.12 or newer through [uv](https://docs.astral.sh/uv/), from the repository root
([building it](README.md#building-it)):

```sh
uv run python -m landing --out _site # from GitHub's API (GH_TOKEN raises its rate limit)
uv run python -m landing --data site.json --out _site # from an earlier build's data, offline
uv run python -m http.server -d _site 8000 # look at it on http://localhost:8000
uv run python -m unittest # the tests, against fake releases
uv run ruff format --check . && uv run ruff check . && uv run ty check
python OVERPRESSURE/scripts/check-docs.py --repo . # links, AGENTS.md; OVERPRESSURE: a checkout of it
python OVERPRESSURE/scripts/check-private.py --repo . --history # nothing private in any commit
```

## Layout

- `page/`: `index.html` (the text), `style.css` (the app's colours, Inter, tiles, dark and light), `download.js`
(the visitor's system first), `assets/` (icons, fonts, the logo and headset drawings, the app's screenshots).
- `landing/build.py`: the release and the headsets' state filled into the page. `headsets.json`: the headsets in
the page's order. `tests/`: unittest.
- `.github/workflows/pages.yml`: tests on a pull request; build and deploy on `main` and hourly when the page's
data changed. `_site/`: the build's output, ignored.

## Hard rules

- **Copies stay copies:** the logo and the headsets' drawings come from
[overpressure/brand](https://github.com/overpressure/brand) and overpressure's app; a change goes there first.
- **Downloads link to the release's files on GitHub**, never into this repository. The page offers the newest
stable release, and the newest beta only while there is none, saying so.
- **The page works without JavaScript** and on a phone: every system listed alike.

## Changes

A branch and a pull request against `main`, titled as a conventional commit; merged by rebase or squash once `ci`
(tests, lint, links, private data) passes and the code owners approved
([conventions](https://github.com/overpressure/overpressure/blob/main/docs/develop/conventions.md#changes)). A
merge deploys at once; every hour the workflow rebuilds and deploys when a release or a headset changed.
1 change: 1 addition & 0 deletions CLAUDE.md