Internal notes and tips for maintaining this documentation.
Decision: 2 main tabs instead of 4
- CLI tab: All developer content (34 pages)
- Chat Widget tab: All widget content (12 pages)
Rationale:
- Simpler navigation for users
- Clear separation of concerns (building vs embedding)
- Less cognitive load
- Easier to find content
Decision: Group by user journey, not by content type
CLI Tab Groups:
- Getting Started → Onboard new users
- Core Concepts → Build understanding
- CLI Commands → Reference material
- API Reference → Technical details
- Template & Examples → Learning resources
Rationale:
- Progressive learning path
- Users can follow natural progression
- Quick reference easily accessible
- Examples available when needed
Primary: #8B5CF6 (Purple)
Light: #A78BFA
Dark: #7C3AED
Rationale:
- Matches Lua AI brand
- Professional tech aesthetic
- Good contrast and readability
- Consistent with AI/tech industry standards
Cards - For navigation and feature highlights Steps - For sequential processes Tabs - For alternative approaches Accordions - For FAQs and collapsible content CodeGroup - For language/framework alternatives
- CLI: 34 pages (74%)
- Chat Widget: 12 pages (26%)
- Total: 46 pages
- Tutorials: 8 pages (Getting started, first skill, etc.)
- Concepts: 4 pages (Architecture explanations)
- Reference: 14 pages (CLI commands, API methods)
- Examples: 12 pages (Working code examples)
- Guides: 8 pages (Configuration, styling, migration)
Monthly:
- Check for outdated dependencies in examples
- Verify all external links still work
- Update screenshots if UI changed
- Review and update "coming soon" features
Quarterly:
- Review analytics for popular pages
- Identify gaps in documentation
- Collect user feedback
- Plan new content based on support tickets
As Needed:
- Update for new CLI versions
- Add new API methods
- Document new features
- Fix reported issues
# Check for broken links regularly
mint broken-links
# Update links when:
# - Page moves or renames
# - External site changes URL
# - API endpoint changes- ✅ Be complete and runnable
- ✅ Include proper error handling
- ✅ Use TypeScript when applicable
- ✅ Show expected output
- ✅ Include all necessary imports
- ✅ Follow security best practices
- ✅ Clear frontmatter (title, description)
- ✅ Overview section
- ✅ Practical examples
- ✅ "Next Steps" with related pages
- ✅ Proper component usage
- ✅ No broken links
- ✅ Be technically accurate
- ✅ Include security warnings where needed
- ✅ Show best practices
- ✅ Cover error cases
- ✅ Provide troubleshooting
- ✅ Link to related resources
- Update API reference page (
api/[api-name].mdx) - Add code example showing usage
- Update overview page if significant
- Add to examples if it's a common pattern
- Update changelog
- Update CLI overview (
cli/overview.mdx) - Create detailed page if complex (or add to existing)
- Add to workflow examples
- Update troubleshooting with common issues
- Update changelog
- Add deprecation warning to relevant pages
- Suggest alternative approach
- Keep old docs for historical reference
- Update migration guide if needed
- Note in changelog
- Start with the goal ("Build a task management skill")
- Break into clear steps
- Show complete code at each step
- Include testing instructions
- End with next steps
- Start with overview and use cases
- List all options/methods clearly
- Use tables for parameter lists
- Include complete examples
- Show error handling
- Use real-world scenarios
- Include complete, runnable code
- Explain key concepts
- Show expected output
- Link to related reference docs
❌ Incomplete code examples
- Always show full imports and context
❌ Outdated screenshots
- Update when UI changes
❌ Broken internal links
- Test all links before committing
❌ Missing frontmatter
- Every page needs title and description
❌ Inconsistent terminology
- Use same terms throughout (skill vs capability)
❌ Too much jargon
- Explain technical terms
❌ No error handling in examples
- Always show proper error handling
- Review release notes
- Identify documentation impact
- Update affected pages
- Add new examples if needed
- Test code examples
- Update changelog
- Deploy updated docs
- Update API reference pages
- Update code examples
- Update tutorials using that API
- Add migration guide if breaking
- Update changelog
- Deploy
- Update configuration reference
- Update code examples
- Test in multiple frameworks
- Update screenshots if UI changed
- Update changelog
- Deploy
- Prepare changes in feature branch
- Test thoroughly locally
- Update changelog with changes
- Create pull request to main
- Review and approve
- Merge to main → auto-deploys
- Verify production deployment
- Announce in changelog/release notes
- Add interactive code playground
- Include more video tutorials
- Add community examples section
- Improve search functionality
- Add feedback widget on pages
- Multi-language support
- API versioning docs
- Interactive examples with live output
- Community contribution portal
- Advanced use case studies
- Discord Community: https://discord.gg/SRPEuwCzaD
- Email: docs@heylua.ai
- Discord Community: https://discord.gg/SRPEuwCzaD
- Support: support@heylua.ai
- Sales: sales@heylua.ai
- General: hello@heylua.ai
Last Updated: October 4, 2025 Documentation Version: 2.0.0 Total Pages: 46 Maintainers: Lua Documentation Team