Testing & QA
Maintaining high quality documentation requires regular testing and verification.
Build Testing
Section titled “Build Testing”The most important test is running the production build. This process validates:
- Content: Checks frontmatter types and schema validation.
- Links: Verifies that all internal links resolve correctly.
- Code: Checks for syntax errors and build failures.
To run the build test:
pnpm buildType Checking
Section titled “Type Checking”We use Astro’s strict type checking to ensure code stability.
pnpm checkThis runs astro check, which analyzes your project for TypeScript errors inside .astro and .mdx files.
Manual Verification
Section titled “Manual Verification”While automated tests catch many errors, manual verification is essential for user experience.
-
Preview the Build: Run
pnpm previewto verify the final output locally. -
Check Navigation: Click through the sidebar and navigation links to ensure the structure makes sense.
-
Responsive Check: View the docs on different viewport sizes (mobile, tablet, desktop) to ensure readability.
-
Dark/Light Mode: Toggle the theme to ensure text and components are legible in both modes.
Accessibility
Section titled “Accessibility”We are committed to making our documentation accessible.
- Semantic HTML: Use correct heading levels (
##,###). - Alt Text: Always include descriptive
alttext for images. - Keyboard Navigation: Ensure custom components are focusable and interactive.