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:
Prerequisites¶
Install these tools before setting up the project:
GitCargoand Rust >= 1.88.0uvif you want to preview the documentation website- (optional but recommended)
justfor running project tasks, seejustfilefile
Install veraPDF¶
Download the veraPDF 1.30.2 Greenfield installer, extract it, and run verapdf-install on macOS/Linux or verapdf-install.bat on Windows.
Put the installed CLI on PATH, or point the project to it explicitly:
The version must be 1.30.x; 1.30.2 is recommended.
Install dependencies¶
Fetch the locked Rust dependencies:
Run unit tests¶
Run the full workspace test suite:
Run corpus tests¶
Run the corpus conformance gate. The first run downloads a sparse checkout of the pinned veraPDF corpus:
Formatting and checks¶
Run formatting and lint checks with warnings treated as errors:
Documentation¶
Serve the documentation locally with:
Then open http://localhost:8000 to preview the documentation website.