| title | Documentation |
|---|---|
| description | How to contribute to Fleetbase documentation — fixing typos, adding examples, capturing screenshots, and writing new pages. |
| sidebarTitle | Documentation |
The documentation you're reading right now lives in the fleetbase/fleetbase.io repository. Every page is editable. If something is wrong, unclear, or missing — submit a PR.
fleetbase.io/
├── content/
│ └── docs/
│ ├── platform/ # Platform docs (this section)
│ ├── fleet-ops/ # Fleet-Ops docs
│ ├── storefront/ # Storefront docs
│ ├── pallet/ # Pallet docs
│ ├── ledger/ # Ledger docs
│ ├── community/ # Community & support
│ ├── contributing/ # ← you are here
│ └── ...
└── public/images/screenshots/
├── fleet-ops/
├── storefront/
└── ...
Each page is an .mdx file — Markdown with optional React component embeds.
For a typo, broken link, or small clarification — find the page on GitHub, click Edit this file, make the change, and submit a PR directly through the GitHub UI. No local setup required.
Every docs page has an "Edit this page" link at the bottom that takes you straight to the right file.
For anything more substantial — adding a section, restructuring a page, capturing screenshots — clone the repo and run the site locally.
### Clone the docs site```bash
git clone https://github.com/fleetbase/fleetbase.io.git
cd fleetbase.io
```
```bash
pnpm install
```
```bash
pnpm dev
```
Open [http://localhost:3000/docs](http://localhost:3000/docs) and find the page you're editing. Hot reload is on — your changes appear as you save.
Find the file under `content/docs/...` matching the URL of the page. Make your changes.
```bash
pnpm build
```
A clean build means MDX, frontmatter, and links are all valid.
Every page starts with frontmatter:
---
title: Page Title
description: One-sentence description used for SEO and the page header.
sidebarTitle: Optional Short Title # only if different from title
---The description should be a complete sentence — it appears under the page H1 and as meta-description for search.
Match the existing tone: direct, plain, factual. Avoid:
- Marketing fluff ("seamlessly", "powerful", "robust")
- Hedging ("you might want to consider", "perhaps")
- Sentence-padding ("In order to" → "To"; "due to the fact that" → "because")
Use sentence case — not Title Case — for headings:
✅ "Configuring custom fields" ❌ "Configuring Custom Fields"
Exception: H1 page titles can use either, but match the rest of the section you're in.
- Always specify the language for syntax highlighting:
```bash pnpm install ``` - Use realistic example values (
order_a1b2c3, notorder_xxxxx) - Include the language in the fence even for plain output
- Internal docs links use absolute paths from
/docs/:[FleetOps](/docs/fleet-ops) - External links open in a new tab automatically — don't add
target="_blank" - Use descriptive link text — never "click here"
- Place screenshots under
public/images/screenshots/<area>/<descriptive-name>.webp - Use
.webpformat — convert from PNG withcwebp -q 85 - Reference with absolute paths:
 - Include meaningful alt text describing what the screenshot shows
If you're adding screenshots:
- Resolution: capture at 1440×900 or higher; the site rescales for retina
- Window chrome: hide unless it adds context (status bar, etc.)
- Browser zoom: 100% — the docs site scales captures automatically
- Sensitive data: redact API keys, real customer names, real driver locations
- Theme: capture in dark mode for consistency with the existing screenshots, unless explicitly demonstrating light mode
The /docs/api/* pages are auto-generated from the postman submodule. Don't edit them directly — your changes will be overwritten on the next build.
To improve the API reference:
- For endpoint docs, parameters, examples → edit the YAML files in
fleetbase/postmanand submit a PR there - For rendering, layout, sidebar nav → edit the components under
src/components/api-reference/in this repo - For the introduction / authentication / errors narrative → edit
content/docs/api/index.mdx(this one IS hand-authored)
See scripts/README.md in the docs repo for the full generator architecture.
- One page per PR is ideal — easier to review
- Screenshots for any UI walkthrough
- A test plan in the PR description: "I read through the page on localhost; the table of contents updates; the new screenshot loads; the link to /docs/fleet-ops works."
- No unrelated formatting changes — keep diffs focused
Follow the same PR conventions as code contributions — see Code → for branching, commit messages, and PR description format. Use docs(<area>): <what> for the commit message:
docs(fleet-ops): add custom fields recipe
docs(api): clarify webhook signature verification
docs: fix broken links in community section