Documentation Guide
This guide explains how documentation works in the TimeTiles project.
Documentation Structure
All documentation lives under /apps/docs/content/ as hand-written MDX files:
- Getting Started (
/getting-started/) - Installation, quick start guides - Guide (
/guide/) - Features, use cases, tutorials - Development (
/development/) - Architecture, development guides, API docs - Self-Hosting (
/self-hosting/) - Deployment, configuration, maintenance - Reference (
/reference/) - Glossary, changelog, roadmap
API documentation is hand-written in apps/docs/content/development/api/. For implementation details beyond what the docs cover, read the source code in apps/web/app/api/.
Working with Documentation
Creating New Pages
- Create an
.mdxfile in the appropriate directory:
apps/docs/content/development/guides/my-new-guide.mdx- Write your content using MDX (Markdown + JSX):
# My Guide Title
import { Callout } from "nextra/components";
<Callout type="info">Important information here</Callout>
## Section with code
\`\`\`typescript
const example = "code here"
\`\`\`- Update the navigation by editing
_meta.jsonin the same directory:
{ "existing-page": "Existing Page", "my-new-guide": "My New Guide" }Best Practices for Manual Docs
- Use clear, descriptive titles
- Include practical examples
- Add screenshots where helpful
- Link to related documentation
- Keep content up-to-date with code changes
Development Workflow
- Edit
.mdxfiles directly inapps/docs/content/ - Preview with
pnpm devfrom theapps/docsdirectory - Commit the documentation changes
Troubleshooting
Common Issues
Navigation not updating
- Edit the appropriate
_meta.jsfile in the same directory
Broken links in documentation
- Use relative paths for internal links
- Check for typos in paths
Best Practices
- User-focused: Write for your audience
- Practical examples: Show real-world usage
- Visual aids: Include diagrams/screenshots where helpful
- Cross-reference: Link to related guides
- Keep concise: Avoid unnecessary verbosity
Documentation Review Checklist
- Guides updated if behavior changed
- Navigation (
_meta.js) updated if needed - Links verified and working
Resources
Last updated on