wheels docs serve
Serves generated documentation locally for development and review.
Usage
Parameters
--root
- (Optional) Root directory to serve. Default:docs/api
--port
- (Optional) Port to serve on. Default:35729
--open
- (Optional) Open browser automatically. Default:true
--watch
- (Optional) Watch for changes and regenerate. Default:false
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
Serve from custom directory
Serve with file watching
Serve without opening browser
Custom configuration
Server Output
If documentation is not found:
Features
File Watching
When --watch
is enabled, the server monitors documentation files for changes and can trigger regeneration.
Browser Integration
With --open=true
(default), the server automatically opens your default browser to the documentation URL.
Development Workflow
Typical usage:
Custom workflow:
Troubleshooting
Port already in use
Documentation not found
Browser doesn't open
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?