2023-06-17 03:07:40 -07:00
|
|
|
# vLLM documents
|
2023-05-22 17:02:44 -07:00
|
|
|
|
|
|
|
## Build the docs
|
|
|
|
|
2025-03-29 12:27:22 +08:00
|
|
|
- Make sure in `docs` directory
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cd docs
|
|
|
|
```
|
|
|
|
|
|
|
|
- Install the dependencies:
|
|
|
|
|
2023-05-22 17:02:44 -07:00
|
|
|
```bash
|
2025-03-08 17:44:35 +01:00
|
|
|
pip install -r ../requirements/docs.txt
|
2025-03-29 12:27:22 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
- Clean the previous build (optional but recommended):
|
2023-05-22 17:02:44 -07:00
|
|
|
|
2025-03-29 12:27:22 +08:00
|
|
|
```bash
|
2023-05-22 17:02:44 -07:00
|
|
|
make clean
|
2025-03-29 12:27:22 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
- Generate the HTML documentation:
|
|
|
|
|
|
|
|
```bash
|
2023-05-22 17:02:44 -07:00
|
|
|
make html
|
|
|
|
```
|
|
|
|
|
2023-06-29 14:52:15 +01:00
|
|
|
## Open the docs with your browser
|
2023-05-22 17:02:44 -07:00
|
|
|
|
2025-03-29 12:27:22 +08:00
|
|
|
- Serve the documentation locally:
|
|
|
|
|
2023-05-22 17:02:44 -07:00
|
|
|
```bash
|
2023-06-02 22:35:17 -07:00
|
|
|
python -m http.server -d build/html/
|
2023-05-22 17:02:44 -07:00
|
|
|
```
|
2025-01-12 03:17:13 -05:00
|
|
|
|
2025-03-29 12:27:22 +08:00
|
|
|
This will start a local server at http://localhost:8000. You can now open your browser and view the documentation.
|
|
|
|
|
|
|
|
If port 8000 is already in use, you can specify a different port, for example:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
python -m http.server 3000 -d build/html/
|
|
|
|
```
|