OptiPod Website Documentation
OptiPod Website Documentation
Section titled “OptiPod Website Documentation”This directory contains the MDX version of the OptiPod documentation for the website, built with Astro and Starlight.
Structure
Section titled “Structure”The documentation is organized following the Diátaxis framework:
docs/├── getting-started/ # Learning-oriented tutorials├── concepts/ # Understanding-oriented explanations├── guides/ # Task-oriented how-to guides├── reference/ # Information-oriented reference docs└── advanced/ # Advanced topicsMDX Format
Section titled “MDX Format”Files use MDX (Markdown with JSX) format, which allows:
- Standard Markdown syntax
- JSX components for interactive elements
- Frontmatter for metadata
- Code syntax highlighting
- Mermaid diagrams
Frontmatter Example
Section titled “Frontmatter Example”---title: Installation Guidedescription: How to install OptiPod in your Kubernetes cluster---
# Installation Guide
Content goes here...Navigation Configuration
Section titled “Navigation Configuration”The sidebar navigation is configured in website/astro.config.ts in the starlight.sidebar section.
When adding new documentation pages:
- Create the MDX file in the appropriate directory
- Add frontmatter with title and description
- Update the sidebar configuration in
astro.config.ts
Building the Website
Section titled “Building the Website”# Install dependenciescd websitenpm install
# Development servernpm run dev
# Build for productionnpm run build
# Preview production buildnpm run previewDual Documentation
Section titled “Dual Documentation”This MDX documentation is synchronized with the Markdown documentation in docs/:
- Content: Same information in both versions
- Format: Adapted for web (MDX) vs. plain text (Markdown)
- Examples: Identical code examples and commands
- Links: Cross-references maintained in both
Validation
Section titled “Validation”Before committing changes:
# From project root./scripts/validate-docs.shThis validates:
- Script references
- Internal links
- MDX frontmatter
- Documentation structure
Contributing
Section titled “Contributing”When updating website documentation:
- Update both versions - Modify both MDX (website/) and Markdown (docs/)
- Test locally - Run
npm run devto preview changes - Validate - Run validation scripts
- Check responsive design - Test on mobile and desktop
- Verify links - Ensure all internal links work
Styling
Section titled “Styling”Custom styles are in:
website/src/assets/styles/docs.css- Documentation-specific styleswebsite/tailwind.config.js- Tailwind configuration
Components
Section titled “Components”Reusable components are in website/src/components/:
- Use existing components when possible
- Create new components for repeated patterns
- Document component usage
For more information, see the main documentation README.