Repository navigation
Description
Summary
API errors use structured codes (invalid_request, plan_not_found, too_many_ids...). There is no list.
Background
The documentation is a Jekyll site using the just-the-docs theme (remote_theme in _config.yml), published by GitHub Pages at https://mmm-pay.github.io/payflow-docs/. Page order and nesting come from each page's front matter; SUMMARY.md lists pages for readers browsing the repository on GitHub. Content describes the v0.2.0 contracts (protocol/, reference/), the backend API and SDK usage (developers/) and user walkthroughs (guides/).
Why this matters
Clients handle errors by guessing.
Where the change goes
- new
reference/api-errors.md SUMMARY.md
Implementation plan
- Table of every code, HTTP status, meaning and what a client should do.
If you find a better approach while working, describe it in a comment before changing direction.
Things to watch for
- Accuracy against the v0.2.0 code: link to the source file or function a claim relies on.
- Every new page needs front matter (
title, andnav_orderorparent) or it will not appear in navigation. - Tables and code blocks must stay readable at phone width.
- Use the project's terms consistently (mandate, vault, keeper, plan) and define anything new.
- Contract ids change on redeploys; avoid copying them into new pages where a link to
deployments/testnet.envwill do.
Acceptance criteria
- Complete against
src/routes/errors.ts
Test plan
Preview the site locally (see Getting started) and click through every changed page, link and anchor. Run any command or code sample yourself, against testnet where relevant, and say in the PR that you did.
Every acceptance criterion above needs evidence in the PR: a test for code, or a described manual check (with screenshots for UI) where a test is not possible.
Getting started
git clone https://github.com/MMM-pay/payflow-docs
cd payflow-docs
bundle install # Ruby with Bundler
bundle exec jekyll serve # http://localhost:4000Effort and skills
- Complexity: trivial. Small and well-bounded: a few hours for someone new to the codebase. A good first contribution.
- Skills: technical writing and Markdown.
References
PR guideline
Branch issue-<n>-<slug>. Conventional commit title, e.g. docs(guides): .... New pages need front matter (title, nav_order or parent) and an entry in SUMMARY.md. Code samples must match the current contracts (v0.2.0) and API. Comment on this issue before starting so two people do not build the same thing, and link the issue in the PR (Closes #<n>).
CI checks (must be green)
- GitHub Pages build succeeds
- Every link on changed pages resolves
Activity