Command Reference
Command Reference
Section titled “Command Reference”This page provides a comprehensive reference for all commands available in nodecode-docs-astro.
Build Commands
Section titled “Build Commands”bun run dev
Section titled “bun run dev”Starts the development server with hot module reloading.
Usage:
bun run devOptions:
--host: Expose server to network (default: localhost)--port: Specify port number (default: 4321)
bun run build
Section titled “bun run build”Builds the documentation site for production deployment.
Usage:
bun run buildOutput: Static files in dist/ directory
bun run preview
Section titled “bun run preview”Preview the production build locally before deployment.
Usage:
bun run previewType Checking
Section titled “Type Checking”bun run check
Section titled “bun run check”Runs TypeScript type checking and Astro diagnostics.
Usage:
bun run checkWhat it checks:
- TypeScript type errors
- Content Collections schema validation
- Frontmatter validation
- Component prop types
Configuration
Section titled “Configuration”See the astro.config.mjs file for site configuration options including:
- Site metadata (title, description)
- Sidebar navigation structure
- Custom CSS and theming
- Integration settings (MDX, Starlight)
Exit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Build error (syntax, type errors, invalid frontmatter) |
| 2 | Configuration error |