Documentation site for Probitas - a scenario-based testing framework shipped as a single binary.
- 📖 Comprehensive documentation with markdown source
- 🔗 Auto-generated API reference from TypeScript source
- 🤖 LLM-friendly endpoints (
/llms.txt,*.md) - ⚡ Static site generation with HonoX + Vite SSG
# Clone the repository
git clone https://github.com/probitas-test/probitas-test.github.io.git
cd probitas-test.github.io
# Enter the development shell (Node.js, Pagefind, just)
nix develop
# Install dependencies
just install
# Start development server
just dev| Command | Description |
|---|---|
npm run dev |
Start dev server with HMR |
npm run build |
Build static site to dist/ (client + SSG + search) |
npm run preview |
Preview built site |
npm test |
Check internal links in the built site |
npm run generate-api |
Regenerate API documentation JSON |
just ci |
Everything CI checks (Nix format, build, link check) |
.
├── app/ # HonoX routes, templates, components, and libraries
├── docs/ # Markdown documentation source
├── data/
│ ├── api/ # Generated API JSON (TypeDoc)
│ ├── index/ # Example scenarios shown on the home page
│ └── docs.ts # Documentation pages configuration
├── public/ # Static assets (CSS, images, favicon)
├── scripts/ # Build & generation scripts
├── tests/ # Integration tests
└── probitas/ # Probitas scenarios checking the site
| Path | Format | Description |
|---|---|---|
/ |
HTML | Landing page |
/index.md |
Markdown | Overview for LLMs |
/llms.txt |
Text | LLM site map |
/docs/* |
HTML | Documentation pages |
/docs/*.md |
Markdown | Raw markdown for LLMs |
/api/ |
HTML | API reference index |
/api/{package}/ |
HTML | Package API reference |
/api/{package}/index.json |
JSON | API data |
/api/{package}/index.md |
Markdown | API docs for LLMs |
- Nix with flakes enabled;
nix developprovides Node.js, Pagefind and just. Without Nix, install Node.js 24.
API documentation is generated from the npm packages using TypeDoc:
npm run generate-apiThis script:
- Lists the
@probitas-test/*packages of the npm organization - Installs their latest versions into a temporary directory
- Runs TypeDoc on each package's entry point
- Saves each package's TypeDoc JSON to
data/api/, with an index of the packages indata/api/index.json
Releases do this automatically: probitas and probitas-packages send a
packages-published repository dispatch after publishing, and the
Update API Reference workflow (.github/workflows/update-api.yml) waits for
the versions to reach npm, regenerates the data, checks the build, and opens a
pull request from the api-docs/update branch (or updates the open one). Run
the workflow manually to regenerate from the current npm versions.
The npm run build command performs the following steps:
- Client Build: Bundles
app/client.ts - Static Site Generation: Uses HonoX + Vite SSG to generate HTML, JSON, and
Markdown files (
public/is copied todist/) - Search Indexing: Runs Pagefind to generate a search index
This site is deployed to GitHub Pages via GitHub Actions.
- Push to
mainbranch - GitHub Actions runs
just ci, which builds the site and checks its links - Static files in
dist/are deployed to GitHub Pages
Live site: https://probitas-test.github.io/
MIT © 2025 Alisue