Code Editor Troubleshooting
Resolve common issues when using code editors with Documentation.AI
Code Editor Troubleshooting
Resolve common issues when working with Documentation.AI using code editors, Git workflows, and the publishing process.
Build and Deployment Issues
Documentation.AI Build Failures
Issue: Build fails after pushing changes
Common causes:
- Invalid
documentation.jsonsyntax - Missing files referenced in navigation
- Malformed front matter in MDX files
- Broken internal links
Solutions:
- Check build logs in Documentation.AI dashboard
- Validate JSON using online validator or
cat documentation.json | jq . - Verify navigation paths - ensure all referenced files exist
- Check front matter format in all MDX files:
--- title: Page Title description: Page description ---
Repository Connection Issues
Issue: Documentation.AI not detecting Git pushes
Solutions:
- Verify repository is correctly connected in dashboard
- Check branch configuration matches your default branch
- Ensure webhooks are properly configured
- Try disconnecting and reconnecting repository
Content and Navigation Issues
Missing Pages in Navigation
Issue: New pages don't appear in published documentation
Solutions:
-
Add to
documentation.json:{ "navigation": { "groups": [ { "group": "API Reference", "pages": [ { "title": "New Endpoint", "path": "api/new-endpoint" } ] } ] } } -
Verify file exists at correct path with
.mdxextension -
Check for typos in file paths (paths are case-sensitive)
Broken Internal Links
Issue: Internal links return 404 errors
Solutions:
- Use relative paths:
[Link](../section/page)not[Link](/section/page.mdx) - Remove
.mdxextension from links - Verify target files exist in correct locations
Image and Media Issues
Images Not Displaying
Issue: Images show broken or don't load
Solutions:
-
Use Documentation.AI CDN URLs:
<Image uid="generated-uid" src="https://cdn-url.com/image.png" alt="Description" /> -
Upload via web editor first to get proper CDN URLs
-
Check external URLs are accessible and properly formatted
-
Verify Image component syntax matches Documentation.AI format
Video Embedding Problems
Issue: Videos don't embed or play correctly
Solutions:
- Use Documentation.AI Video component syntax
- Verify external video URLs are embeddable
- Check video platform supports embedding (YouTube, Vimeo, etc.)
Git and Sync Issues
Merge Conflicts
Issue: Conflicts when merging branches, especially in documentation.json
Solutions:
- Use your editor's merge tools - VS Code and Cursor have built-in conflict resolution
- Coordinate navigation changes - Avoid multiple people editing
documentation.jsonsimultaneously - Keep branches up to date with main branch to reduce conflicts
Changes Not Reflecting
Issue: Pushed changes don't appear in published documentation
Solutions:
- Check build status in Documentation.AI dashboard
- Verify correct branch is configured for deployment
- Wait for build completion - builds may take a few minutes
- Clear browser cache if changes appear to be cached
Editor and Performance Issues
Slow Editor Performance
Issue: Code editor running slowly with documentation project
Solutions:
- Exclude unnecessary files from search and file watching
- Use workspace settings to optimize for documentation editing
- Close unused files and limit open editor tabs
- Disable heavy extensions when working on documentation
MDX Syntax Issues
Issue: MDX files showing syntax errors or not highlighting properly
Solutions:
- Install MDX extensions for your editor
- Configure file associations:
{ "files.associations": { "*.mdx": "markdown" } } - Restart editor after installing extensions
Getting Help
Debug Information to Collect
When reporting issues, include:
System information:
- Operating system and version
- Code editor and version (VS Code, Cursor)
- Git version
Documentation.AI specific:
- Project/repository name
- Build logs from dashboard
- Error messages (full text)
- Steps to reproduce the issue
Files to check:
documentation.jsonconfiguration- Front matter in problematic MDX files
- Recent Git commits that may have caused issues
Common Solutions
Quick Fixes
Build failing:
- Check
documentation.jsonfor syntax errors - Verify all navigation paths reference existing files
- Ensure front matter is properly formatted in all MDX files
Page not appearing:
- Add page to
documentation.jsonnavigation - Check file path matches navigation configuration exactly
- Verify file has proper front matter
Images not loading:
- Use Documentation.AI CDN URLs from web editor uploads
- Verify Image component syntax is correct
- Check that external image URLs are accessible
Emergency Rollback
If your site is broken:
# Quick rollback to previous working version
git revert HEAD
git push origin main
Support Resources
- Documentation.AI Dashboard - Check build logs and status
- Component Reference - Documentation.AI Components
- Configuration Reference - Site and Page configuration
Next Steps
- Overview: Return to code editor basics
- Publishing: Understand the deployment process
- Git Workflow: Master collaboration workflows