wheels docs serve
Serves generated documentation locally with live reload for development and review.
Usage
Parameters
--port
- (Optional) Port number to serve on. Default:4000
--host
- (Optional) Host to bind to. Default:localhost
--open
- (Optional) Open browser automatically after starting--watch
- (Optional) Watch for changes and regenerate. Default: true
Description
The docs serve
command starts a local web server to preview your generated documentation. It includes:
Live reload on documentation changes
Search functionality
Responsive design preview
Print-friendly styling
Offline access support
Examples
Basic documentation server
Serve on different port
Open in browser automatically
Serve without watching for changes
Bind to all interfaces
Server Output
Features
Live Reload
When --watch
is enabled, the server:
Monitors source files for changes
Automatically regenerates affected documentation
Refreshes browser without manual reload
Search Functionality
Full-text search across all documentation
Instant results as you type
Keyboard navigation (Ctrl+K or Cmd+K)
Search history
Navigation
Print Support
Optimized CSS for printing
Clean layout without navigation
Page breaks at logical points
Print entire docs or single pages
Development Workflow
Typical usage during development:
Review workflow:
Configuration
Server Configuration
Create /config/docs-server.json
:
Custom Headers
Access Control
Basic Authentication
IP Restrictions
Troubleshooting
Common Issues
Port already in use:
Cannot access from network:
Documentation not updating:
Notes
Server is intended for development/review only
For production, deploy static files to web server
Large documentation sets may take time to generate
Browser must support JavaScript for search
Offline mode caches documentation locally
Last updated
Was this helpful?