The docs site of Gatepost, the open-source tools for Nigeria's digital postcode.
Docs · Playground · Readiness tracker · Contributing · Discussions
Unofficial. Not made or endorsed by NIPOST.
This repo holds the source of the site at https://gatepost-dev.github.io/docs/. Astro and Starlight build it as a static site for GitHub Pages.
- A playground where you check a postcode in your browser.
- Guides for the TypeScript core, the TypeScript client, the PHP package, the HTML field, the React field and the WooCommerce plugin.
- An API reference that the build writes from the TSDoc comments and the PHP doc comments.
- The spec pages: the grammar, the client contract, the field and the glossary.
- A readiness tracker of common tools that reject the new postcode.
You need Node 24.15 or later, pnpm 12 through Corepack, and PHP 8.1 or later with Composer.
git clone --recurse-submodules https://github.com/gatepost-dev/docs
cd docs
pnpm install
pnpm sdk
pnpm devpnpm sdk builds the js and php submodules, because the site documents their source. The woocommerce submodule needs no build. The site copies one screenshot from it. pnpm dev serves the site at http://localhost:4321/docs/.
- Add a Markdown file under
src/content/docs/. Put it inguides/to add a guide. The sidebar lists that folder by itself. - Give the file a
titleand adescriptionin its front matter. - For a page outside
guides/andspec/, add its name to thesidebarlist inastro.config.mjs. - Run
pnpm check. It builds the site and runs every check that CI runs. The browser tests need Chromium. Runpnpm exec playwright install chromiumone time.
The code examples on each hand-written page run against the SDKs, so a wrong example fails the check.
Read the contributing guide before you open a pull request. Ask questions in Discussions. Report a problem with a page in Issues. Report a security problem through the private form.
Apache-2.0. See LICENSE and NOTICE.