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
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ jobs:
- name: Install @rheo packages
uses: ./.github/actions/install-rheo-packages

- name: Clone rheo-tests as sibling
shell: bash
run: |
git clone --depth 1 https://github.com/freecomputinglab/rheo-tests.git ../rheo-tests

- name: Run tests
run: cargo test --all-targets --all-features
working-directory: ../rheo-tests
env:
RHEO_MANIFEST: ${{ github.workspace }}/Cargo.toml
TYPST_IGNORE_SYSTEM_FONTS: "1"
7 changes: 7 additions & 0 deletions .github/workflows/compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,15 @@ jobs:
- name: Install @rheo packages
uses: ./.github/actions/install-rheo-packages

- name: Clone rheo-tests as sibling
shell: bash
run: |
git clone --depth 1 https://github.com/freecomputinglab/rheo-tests.git ../rheo-tests

- name: Run compatibility tests
run: cargo test --test compat
working-directory: ../rheo-tests
env:
RUN_COMPAT_TESTS: "1"
TYPST_IGNORE_SYSTEM_FONTS: "1"
RHEO_MANIFEST: ${{ github.workspace }}/Cargo.toml
9 changes: 7 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
- `crates/html/` — HTML plugin (dev server, CSS/JS injection)
- `crates/pdf/` — PDF plugin
- `crates/epub/` — EPUB plugin
- `crates/tests/` — Integration tests and harness
- `src/typ/rheo.typ` — Core Typst template (auto-injected)
- `build/` — Output dir (gitignored): `pdf/`, `html/`, `epub/`

Integration tests and examples live in [freecomputinglab/rheo-tests](https://github.com/freecomputinglab/rheo-tests), cloned side-by-side at `../rheo-tests` for sibling path dependencies.

## Development Commands

```bash
Expand All @@ -26,7 +27,9 @@ cargo run -- clean <project-path>
RUST_LOG=rheo=trace cargo run -- compile ... # debug logging

# Tests
cargo test # run all tests
cargo test # run unit tests only
# Integration tests run from ../rheo-tests with:
RHEO_MANIFEST=../rheo/Cargo.toml cargo test --test harness
See [TESTING.md](TESTING.md) for more test commands and options.
cargo fmt && cargo clippy -- -D warnings
```
Expand Down Expand Up @@ -111,6 +114,8 @@ Feed variables:
**NEVER run `jj git push` (or any push) — the user always pushes themselves.**
Prepare commits and bookmarks, then stop and let the user push.

**NEVER run `git` commands, not even read-only ones** (`git log`, `git show`, `git status`, `git diff`). Always use the jj equivalents (`jj log`, `jj show`, `jj status`, `jj diff`, `jj file show`). This applies in sibling repos too (e.g. `../rheo-tests`).

```bash
jj status / jj diff / jj log / jj show
jj commit -m "message" / jj describe -m "message"
Expand Down
Loading
Loading