Welcome to the Civic documentation repository! This site powers our customer-facing documentation at docs.civic.com using Mintlify.
-
Clone the repository
git clone <repository-url> cd docs.civic.com
-
Install Mintlify CLI
npm install -g mintlify
-
Start local development server
npx mint dev
This will start a local preview at
http://localhost:3000
-
Make your changes and preview them locally
-
Create a branch and push
git checkout -b feature/your-update git add . git commit -m "Update documentation" git push origin feature/your-update
-
Open a Pull Request - Mintlify will automatically create a preview deployment for your branch
Use the Mintlify Web Editor for quick updates:
- Navigate to the Mintlify dashboard
- Select your documentation project
- Use the browser-based editor to make changes
- Changes are deployed automatically
Our documentation follows Mintlify's structure with these key files:
docs.json
- Main configuration file for navigation, themes, and settings/pages/
- Individual documentation pages (MDX format)/api-reference/
- API documentation files/images/
- Static assets and images/snippets/
- Reusable content snippets
✅ Best for:
- Substantial content updates
- New feature documentation
- Structural changes
- Code examples and snippets
Workflow:
- Create a feature branch
- Make changes locally with
npx mint dev
for preview - Push branch - automatic Mintlify preview is generated
- Review changes in both local and Mintlify preview
- Submit PR for team review
- Merge to main for production deployment
✅ Best for:
- Quick text fixes
- Typo corrections
- Small content updates
- Urgent documentation changes
Benefits:
- No local setup required
- Real-time preview
- Immediate deployment
- User-friendly interface
# Start local development server
npx mint dev
# Install Mintlify CLI globally
npm install -g mintlify
# Check for broken links and issues
npx mint check
Our documentation leverages Mintlify's rich component library:
- Code Blocks with syntax highlighting
- API Playground for interactive testing
- Callouts for important information
- Tabs for organized content
- Cards for feature highlights
- Accordions for expandable sections
For a complete list of available components, see the Mintlify Components Documentation.
We have a custom.css
file that provides additional styling classes, particularly useful for image formatting:
Image Width Classes:
.image-50
- 50% width.image-60
- 60% width.image-70
- 70% width.image-80
- 80% width
Image Styling:
.image-rounded
- Adds border radius
Usage Example:
<Frame>
<img
src="/images/example.png"
alt="Example"
className="image-70 image-rounded"
/>
</Frame>
Note: Apply the className
directly to the img
tag, not the Frame component, as the editor may remove classes from Frame components.
These classes automatically adjust to 90% width on mobile devices for responsive design.
Every branch automatically gets a preview deployment:
- Main branch: docs.civic.com
- Feature branches: Preview URLs provided in PR comments
- Local development:
http://localhost:3000
- Mintlify Documentation - Complete guide and reference
- Mintlify Dashboard - Access the web editor and project settings
- Mintlify Quickstart - Get started in minutes
- MDX Documentation - Learn about MDX syntax
- Civic Auth Documentation - Our live documentation site
- For Mintlify-specific questions: Check the Mintlify docs or their community
- For content questions: Reach out to the documentation team
- For technical issues: Create an issue in this repository
- Follow the branch-based workflow for substantial changes
- Use the web editor for quick fixes
- Ensure all links work and code examples are tested
- Preview changes before submitting PRs
- Write clear commit messages describing your changes
Need to make an update?
- 👩💻 Developer? Use the branch workflow with local preview
- 🖊️ Quick edit? Use the Mintlify web editor
Happy documenting! 🚀