Command Line Tools
wheels docs serve
wheels docs serve
Section titled “wheels docs serve”Serves generated documentation locally for development and review.
wheels docs serve [--root=<dir>] [--port=<port>] [--open]Parameters
Section titled “Parameters”| Parameter | Description | Default |
|---|---|---|
--root | Root directory to serve | docs/api |
--port | Port to serve on | 35729 |
--open | Open browser automatically | true |
Description
Section titled “Description”The docs serve command starts a local web server to preview your generated documentation.
Examples
Section titled “Examples”Basic documentation server
Section titled “Basic documentation server”wheels docs serveServe on different port
Section titled “Serve on different port”wheels docs serve --port=8080Serve from custom directory
Section titled “Serve from custom directory”wheels docs serve --root=public/api-docsServe without opening browser
Section titled “Serve without opening browser”wheels docs serve --open=falseCustom configuration
Section titled “Custom configuration”wheels docs serve --root=docs/generated --port=3000Server Output
Section titled “Server Output”================================================== Documentation Server==================================================
Starting documentation server... √ | Starting Server | √ | Setting site [wheels-docs-BBAA12EF-7A83-4D03-BD6DBFE4AC17C1F9] Profile to [development] | √ | Loading CFConfig into server
[SUCCESS]: Documentation server started!
Serving directory: D:\Command Box\wheels\templates\base\src\docs\api\URL: http://localhost:35729Opening browser...
[SUCCESS]: Server is up and running!
Press Ctrl+C to stop the serverIf documentation is not found:
Documentation directory not found: /docs/api
💡 Tip: Run 'wheels docs generate' first to create documentationFeatures
Section titled “Features”Browser Integration
Section titled “Browser Integration”With --open=true (default), the server automatically opens your default browser to the documentation URL.
Development Workflow
Section titled “Development Workflow”Typical usage:
Section titled “Typical usage:”# Step 1: Generate documentationwheels docs generate
# Step 2: Serve documentationwheels docs serve
# Step 3: Make changes and regeneratewheels docs generate# Browser will show updated docsCustom workflow:
Section titled “Custom workflow:”# Generate and serve from custom locationwheels docs generate --output=public/docswheels docs serve --root=public/docs --port=8080Troubleshooting
Section titled “Troubleshooting”Port already in use
Section titled “Port already in use”# Use a different portwheels docs serve --port=8081Documentation not found
Section titled “Documentation not found”# Make sure to generate docs firstwheels docs generatewheels docs serveBrowser doesn’t open
Section titled “Browser doesn’t open”# Manually navigate to the URL shown# Or check your default browser settings- Server is intended for development/review only
- For production, deploy static files to web server
- Large documentation sets may take time to generate
- Offline mode caches documentation locally