Astro Documentation Integration
This guide describes how to integrate the backend documentation with the Astro-based platform site.🚀 Integration Approach
Mintlify Structure
We use Mintlify to manage our documentation from the rootdocs/ directory. The structure is mapped automatically based on the folder hierarchy and registered in docs/docs.json.
Root Structure:
📝 Naming Conventions
All documentation files use lowercase with hyphens (kebab-case) to ensure clean, web-standard URLs.- ✅
architecture.md - ✅
cqrs-leave-management.md - ✅
better-auth-integration.md
🎨 Layouts & Frontmatter
Every markdown file must include frontmatter pointing to a common layout:🔍 Automation
We use the Documentation Manager skill to automate:- Index Generation: Every category has an
index.mdlisting its files. - Link Validation: Ensuring no dead links exist between documents.
- Style Consistency: Maintaining a uniform look and feel.