Skip to content

Local set up

This guide covers the local setup and the main checks to run before opening a pull request.

Before making changes, comment on an existing issue or open a new one.

Fork and clone

Fork the repository on GitHub, then clone your fork locally:

git clone git@github.com:<your-username>/page.git
cd page
git remote add upstream https://github.com/josephbarbierdarnal/page.git
git fetch upstream

Create a branch for your change:

git checkout -b <short-description>

Prerequisites

Install these tools before setting up the project:

  • Git
  • Cargo and Rust >= 1.88.0
  • uv for Python bindings and to preview the documentation website
  • bun for the JavaScript bindings, which use WebAssembly
  • (optional but recommended) just for running project tasks; see the justfile

Install dependencies

Fetch the locked Rust dependencies:

cargo fetch --locked

Run unit tests

Run the full workspace test suite:

just test

Run corpus tests

Run the corpus conformance gate. The first run downloads a sparse checkout of the pinned veraPDF corpus:

just verapdf-corpus

Formatting and checks

Run formatting and lint checks with warnings treated as errors:

just fmt && just lint

Documentation

Serve the documentation locally with:

just preview

Then open http://localhost:8000 to preview the documentation website.