Contribute to Nibleaf documentation
Propose, write, validate, review, publish, and maintain Nibleaf documentation changes with reproducible evidence and product-truth checks.
- 4 min read
- Updated
On this page
Documentation changes use the same pull-request workflow as code. The repository source makes the content reviewable; the canonical site changes only after the approved source is imported or synchronized, published, and verified.
Before writing, name the reader's goal and select one content type:
- tutorial for a guided first success;
- how-to for a specific task;
- reference for scannable facts;
- explanation for concepts and decisions.
Split pages that try to teach a beginner, troubleshoot an incident, and list every setting at the same time. Use the terminology visible in Nibleaf and the words readers use in support and search.
Read the implementation, example environment files, Compose files, tests, and
release notes that govern the workflow. Run commands on a matching environment
when practical. If a claim applies only to main, a beta feature, or a future
release, say so rather than presenting it as generally available.
Do not copy proprietary documentation wording. External guides can inform the method and structure; Nibleaf's repository determines product truth.
Start with the outcome. Put prerequisites before steps, keep one action per step, show expected results, and add recovery for plausible failures. Use clear H2 and H3 headings, descriptive links, language-tagged code fences, meaningful image alternative text, and exact interface labels.
Every page requires title, description, audience, content_type,
last_reviewed, verified_against, lang, dir, and translation_key
frontmatter. Mirror each English route under docs/ar/, use en/ltr and
ar/rtl, and keep the same translation key. Add both routes to docs.json in
the same order. Keep fenced code identical in each pair; translate surrounding
explanations, interface labels and image alt text. Use ARABIC_GLOSSARY.md for
terminology. Do not leave a navigable page orphaned.
Run:
pnpm docs:check
The check validates structure and translation pairing, not factual accuracy or the hosted publication. A text-only change does not need an app build. When reader rendering code changes, run the relevant app/build checks as well.
For a user-visible workflow, preview representative desktop and mobile widths. Use a screenshot only when it clarifies a hard-to-find state or proves layout; keep written instructions sufficient without it. Redact accounts, tokens, customer content, and infrastructure details.
The pull request should state the reader problem, changed paths, commands and sources checked, test results, visual evidence, product boundaries, and any remaining gap.
After review, import or synchronize the source into the official Nibleaf project,
publish one coherent version, and test the canonical site while signed out.
Check a deep page, search, 404, canonical, sitemap, llms.txt, mobile navigation,
and changed redirects.
Use documentation analytics, no-result searches, support questions, product changes, and reader feedback to trigger focused reviews. Remove or correct misleading instructions promptly; wrong operational documentation is worse than an explicit limitation.
The repository uses pnpm workspaces and Turbo. The root package.json requires
Node.js 22.22.2 or newer and pins pnpm 10.34.9; prefer those over older setup
prose. Use an isolated development database and storage namespace, with process
environment values matching .env.example. Generate the Prisma client before
using database-dependent packages. Never seed or run schema-push commands on
a production database as a development shortcut.
For frontend contributions, follow apps/app/DATA_LOADING.md: one router-owned
QueryClient, shared queryOptions() factories and queryKeys, non-blocking
dashboard prefetch, content-shaped skeletons and Button loading. Public reader
loaders await their content for server-rendered HTML. Keep loader imports free
of dashboard message catalogs. Check optimistic writes against refetch and
reconnect behavior, and keep unsaved edits intact on failure.
Nibleaf stores page bodies as Markdown. New interface copy belongs in both the English and Arabic message catalogs; use logical spacing and direction-aware controls. Add focused checks for changed behavior, then run the applicable repository gates. The source CLI and API boundaries are in the developer reference.
Open a ready-for-review PR when implementation and verification are complete. For visible UI changes include screenshots and a short recording when interaction matters; for text-only edits explain the content/check evidence. Docker image builds stay on the explicit manual workflow, not pull-request events. A ready PR is not a deployment or hosted-documentation acceptance claim.