Repository navigation
Description
Summary
Readers can see API endpoints but cannot call them from the docs.
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
Exploring the API means switching tools.
Where the change goes
- new
api-console.md - new
assets/js/api-console.js
Implementation plan
- Embed a small console that reads the backend's OpenAPI document and sends GET requests to a configurable base URL.
- Read-only: no admin or write endpoints.
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
- Works with CORS enabled on the backend
- No third-party scripts
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: medium. A focused feature or fix: roughly one to three days, including tests.
- 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