CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.Development Commands
npm run dev(ormint dev) - Start the Mintlify dev server athttp://localhost:3000npm run broken-links(ormint broken-links) - Check for broken internal linksmint update- Update the Mintlify CLI if the dev server isn’t working
Project Overview
Documentation site for Collate (a data discovery, lineage, and governance platform) built on Mintlify. No tests, no build step — content is MDX files deployed automatically on push tomain via Mintlify’s GitHub app.
Contributing Content
This is what you need to know to add or edit documentation pages.AI content review
When reviewing Collate documentation, release notes, UI copy, or other written content, use the AI-neutral workflow in.ai/doc-review/instructions.md and its checklist in .ai/doc-review/references/checklist.md. These instructions are shared across AI assistants and are not tied to Claude Code.
Writing Style
Minimize em dashes (—) in prose. One, used well, is fine. Several in one piece, or one used where a period or comma would read more naturally, is a stylistic crutch to avoid. Prefer a comma, colon, parentheses, or split into two sentences instead. This applies to new content and to edits of existing content; it’s not a mandate to sweep existing pages unless asked.Pre-commit content review (Claude Code)
Before runninggit commit on any change touching .mdx files (or docs.json), read .ai/doc-review/instructions.md and .ai/doc-review/references/checklist.md, and review the staged diff against every applicable item — unless the changes were already reviewed against this checklist earlier in the same conversation. Show Critical and Major findings before committing; if Minor findings also exist, mention the count and offer to show them rather than listing them inline by default. Proceed with the commit only after the user has seen this and confirmed.
MDX Frontmatter
Every page follows this structure:Registering Pages in docs.json
When adding a new page, you must add its path to the docs.json navigation or it won’t appear in the sidebar. The navigation is organized as nested tabs > groups > pages. Find the right tab and group, then insert the page path (without .mdx extension).
Connector Pages
Connector docs follow a strict repeating pattern per connector (e.g.,ai-2-0/connectors/database/bigquery/):
index.mdx- Overview with<ConnectorDetailsHeader>component listing available/unavailable featuresyaml.mdx- YAML configuration guidetroubleshooting.mdx- Troubleshooting guide
Reusing Snippets
Shared content blocks live insnippets/ and are imported into pages to avoid duplication:
snippets/connectors/- Common connector content (test connection, ingestion config, troubleshooting)snippets/deployment/- Shared deployment stepssnippets/how-to-guides/- Shared how-to content
import Foo from '/snippets/connectors/test-connection.mdx'
Static Assets
Images go inpublic/images/. Connector icons specifically go in public/images/connectors/ as .webp files.
Content Directories
Changing the Site
This is what you need to know to modify the documentation site itself — layout, navigation, components, and styling.Site Configuration: docs.json
All navigation, theming, and site structure is defined in docs.json. This is the single source of truth for:
- Tab navigation: ~20 tabs (Home, Get Started, Connectors, Products, Collate AI, How-To Guides, Admin Guide, Data Quality & Observability, Data Governance, SDKs & APIs, etc.)
- Page hierarchy: Nested groups/pages structure that maps directly to the sidebar
- Theme: Uses “aspen” template with primary color
#1570EF
React Components
Custom JSX components live insnippets/components/ and are imported with absolute paths:
ConnectorDetailsHeader, ConnectorGrid/Integration, MetadataIngestionUi, CodeLayout, CodePreview, LanguageSelector
Styling
style.css- Main site styles (homepage layout, cards, guide sections, chips)public/globals.css- Global overrides- Component-specific CSS is co-located with its component in
snippets/components/