diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..c26b46c --- /dev/null +++ b/AGENTS.md @@ -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. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 120000 index 0000000..47dc3e3 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +AGENTS.md \ No newline at end of file