Source for docs.pocket.network — the official documentation site for Pocket Network.
Built with Astro, Tailwind CSS, and MDX. Deployed automatically to GitHub Pages on every push to main.
Requirements: Node.js 22+
npm install
npm run devThe dev server starts at http://localhost:4321. It fetches live governance parameters and supported chain data on startup.
To preview the production build locally:
npm run build
npx pagefind --site dist
npm run previewsrc/
content/docs/ # MDX documentation pages
components/ # Astro components (Callout, Tabs, GovParam, etc.)
layouts/ # Page layout (DocsLayout.astro)
styles/ # Global CSS and design tokens
pages/ # Astro routes ([...slug].astro, index.astro)
scripts/ # Build-time data fetchers (governance params, chains)
data/ # Generated at build time — do not edit manually
public/ # Static assets copied as-is to dist/
All documentation lives in src/content/docs/ as .mdx files. Each file has frontmatter at the top:
---
title: My Page Title
description: A short description for SEO and social sharing.
---
Page content goes here.Pages are organized into sections by subdirectory (e.g. get-started/, developers/, node-operators/). The sidebar navigation is generated automatically from the content collection.
-
Create a branch from
main:git checkout -b your-branch-name
-
Make your changes — edit MDX files, add pages, or update components.
-
Test locally with
npm run devto verify the page renders correctly. -
Push your branch and open a pull request against
main. -
A maintainer will review and merge. On merge, the site rebuilds and deploys automatically.
- Write in plain English. Avoid jargon where plain language works.
- Use sentence case for headings (not Title Case).
- Code blocks should specify a language for syntax highlighting.
- Use the
<Callout>component for warnings, tips, and important notes.
Merging to main triggers the GitHub Actions workflow (.github/workflows/deploy.yml), which:
- Installs dependencies
- Fetches live governance parameters and supported chain data
- Builds the static site with Astro
- Builds the Pagefind search index
- Deploys to GitHub Pages at
docs.pocket.network
The GitHub Pages source must be set to GitHub Actions in the repository settings (Settings → Pages → Source).