Why Use Reusable Content?
Reusable content helps maintain consistency across Tutly’s documentation and makes updates easier. Common use cases include:- Feature descriptions
- Setup instructions
- Code examples
- Configuration templates
- Common warnings or notes
Creating Reusable Content
Basic Snippet
- Create your snippet in the
snippetsdirectory:
snippets/feature-intro.mdx
- Import and use the snippet:
features/live-classes.mdx
Reusable Variables
- Create a file with shared variables:
snippets/constants.mdx
- Use the variables in your documentation:
features/assignments.mdx
Reusable Components
- Create a component for repeated UI elements:
snippets/feature-card.mdx
- Use the component in your pages:
features/index.mdx
Best Practices
- Keep snippets focused and single-purpose
- Use clear, descriptive names
- Document any required props or variables
- Keep the
snippetsdirectory organized - Update all instances when making changes to shared content

