Source for https://selcom-developers.github.io/, the documentation site for the community clients of the Selcom API gateway.
Not affiliated with Selcom Paytech Ltd.
The site is built with Nextra (docs theme) on Next.js, exported as static files, and deployed to GitHub Pages by GitHub Actions. Search uses Pagefind and works in the static export.
You need Node.js 20.9 or later (CI uses Node 24).
npm ci
npm run dev # development server at http://localhost:3000
npm run build # static export to out/, then builds the search index
npm run serve # serve out/ to check the exportSearch only works after npm run build, because the index is built from the exported pages.
| Path | What it is |
|---|---|
content/ |
The pages, as MDX. Folders and _meta.js files set the sidebar and navigation |
content/spec/ |
Ported from selcom-spec |
content/clients/ |
One page per client |
app/ |
Next.js layout and page routing |
.github/workflows/pages.yml |
Build on every pull request, deploy on push to main |
- Use plain, clear English and short sentences.
- Do not invent API details for the clients. Describe only what is published.
- Use made-up data only: phones like
255700000001, IDs likeORD-1001, keys liketest-key-0001. - The
content/spec/pages present the spec on the site, without per-page links to the source files. The spec overview and the footer link the spec repository. When the spec changes, update the pages and the version together. - In MDX, escape
{and<in normal text, or put them in code.
Pushes to main deploy through the workflow. Pull requests build only. The repository's Pages source must be set to "GitHub Actions" (Settings, Pages).
See Contributing on the site. Pull requests are welcome.