Build Check
Run a full validation of the Docusaurus site.
Steps
- •
Clear cache first to ensure clean build:
bashnpm run clear
- •
Run TypeScript type checking:
bashnpm run typecheck
- •
Run production build:
bashnpm run build
- •
Report results: Summarize any errors, warnings, or broken links found during the build process.
Common Issues to Watch For
- •Broken links (Docusaurus throws on broken links with
onBrokenLinks: "throw") - •MDX compilation errors (invalid JSX, unclosed tags)
- •Missing imports in MDX files
- •Image references to non-existent files
- •TypeScript type errors in custom components
Output Format
Report results as:
- •Total build time
- •Number of pages generated
- •Any warnings or errors found
- •Broken links if any
- •Suggested fixes for any issues