Contributing to Equa Documentation
This guide covers how to contribute to the Equa platform documentation, whether you are an AI agent authoring specs in a Cursor session or a human developer writing guides.Principles
Verified Facts Only
Every claim in this documentation must be verified against source code, test output, or other primary evidence. Do not guess, assume, or state something as fact without citing a source. Good:The authentication module supports Google OAuth via theBad:google-auth.tshandler.Source: equa-server/modules/auth/src/google-auth.ts, Line: 1
The authentication module probably supports multiple OAuth providers.
Citation Format
Use one of these citation formats: Inline file reference:No Stale Information
When documenting a feature, always verify the current state of the code before writing. If code has changed since a document was last updated, update the document or flag it for review.Mintlify Formatting
Frontmatter
Every.md file must start with YAML frontmatter:
Internal Links
Use root-relative paths without file extensions: Good:[Authentication](/specs/001-authentication)
Bad: [Authentication](./specs/001-authentication.md)
Bad: [Authentication](specs/001-authentication)
Headings
- Use
#for the page title (one per page) - Use
##for major sections - Use
###for subsections - Avoid em dashes and apostrophes in headings (they break Mintlify anchor links)
Components
Mintlify supports special components. Use them where appropriate:Spequa Process
Documentation for Equa features follows the Spequa spec-driven process:1. Specify
Create a specification by examining the actual source code. Use thetemplates/feature-spec.md template. Every section must cite real file paths and line numbers.
2. Plan
Break the specification into an implementation plan with phases and dependencies.3. Tasks
Create a task breakdown with individual, verifiable tasks.4. Implement
Write the documentation, verifying each claim against the codebase as you go.5. Review
All documentation goes through review before being marked COMPLETE:- Technical accuracy review (does it match the code?)
- Completeness review (are all sections filled?)
- Citation verification (do all file references resolve?)
For AI Agents
When authoring documentation in a Cursor or Claude session:- Always read source code first. Use the Read tool to inspect the actual files before writing about them.
- Cite every claim. Include file paths and line numbers for every technical statement.
- Use templates. Start from the appropriate template in
templates/. - Update the dashboard. After completing a document, update its status in
README.mdfrom NOT STARTED to DRAFT (or REVIEW if fully verified). - Do not fabricate. If you cannot verify something, write “UNVERIFIED — requires manual inspection” instead of guessing.
- Run locally. Verify your changes render correctly with
npx mintlify devbefore marking complete.
For Human Contributors
Local Development
Adding a New Document
- Choose the appropriate template from
templates/. - Create the
.mdfile in the correct directory. - Add the page to the
navigationsection indocs.json. - Update the status in
README.md. - Run
npx mintlify devto verify rendering.
Review Workflow
- Local: Author and verify locally with
npx mintlify dev. - Staging: Push to a branch for staging review.
- Production: Merge to
mainfor deployment.
Status Tracking
When you complete or update a document, update its row inREADME.md:
| Status | Meaning |
|---|---|
| NOT STARTED | No content authored yet |
| DRAFT | Initial content written, not yet verified |
| REVIEW | Content verified, awaiting peer review |
| COMPLETE | Reviewed and approved |