Skip to content

Commit a1fe24d

Browse files
authored
Migrate docs from Sphinx to MkDocs (vllm-project#18145)
Signed-off-by: Harry Mellor <[email protected]>
1 parent d0bc2f8 commit a1fe24d

File tree

218 files changed

+4144
-6808
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+4144
-6808
lines changed

.buildkite/test-pipeline.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ steps:
3333

3434
- label: Documentation Build # 2min
3535
mirror_hardwares: [amdexperimental]
36-
working_dir: "/vllm-workspace/test_docs/docs"
36+
working_dir: "/vllm-workspace/test_docs"
3737
fast_check: true
3838
no_gpu: True
3939
commands:
40-
- pip install -r ../../requirements/docs.txt
41-
- SPHINXOPTS=\"-W\" make html
42-
# Check API reference (if it fails, you may have missing mock imports)
43-
- grep \"sig sig-object py\" build/html/api/vllm/vllm.sampling_params.html
40+
- pip install -r ../requirements/docs.txt
41+
# TODO: add `--strict` once warnings in docstrings are fixed
42+
- mkdocs build
4443

4544
- label: Async Engine, Inputs, Utils, Worker Test # 24min
4645
mirror_hardwares: [amdexperimental]

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ instance/
7777
# Scrapy stuff:
7878
.scrapy
7979

80-
# Sphinx documentation
81-
docs/_build/
82-
docs/source/getting_started/examples/
83-
docs/source/api/vllm
84-
8580
# PyBuilder
8681
.pybuilder/
8782
target/
@@ -151,6 +146,7 @@ venv.bak/
151146

152147
# mkdocs documentation
153148
/site
149+
docs/getting_started/examples
154150

155151
# mypy
156152
.mypy_cache/

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ repos:
3939
rev: v0.9.29
4040
hooks:
4141
- id: pymarkdown
42+
exclude: '.*\.inc\.md'
4243
args: [fix]
4344
- repo: https://github.com/rhysd/actionlint
4445
rev: v1.7.7

.readthedocs.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ build:
88
tools:
99
python: "3.12"
1010

11-
sphinx:
12-
configuration: docs/source/conf.py
13-
fail_on_warning: true
14-
15-
# If using Sphinx, optionally build your docs in additional formats such as PDF
16-
formats: []
11+
mkdocs:
12+
configuration: mkdocs.yaml
1713

1814
# Optionally declare the Python requirements required to build your docs
1915
python:

docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ COPY vllm/v1 /usr/local/lib/python3.12/dist-packages/vllm/v1
329329
# will not be imported by other tests
330330
RUN mkdir test_docs
331331
RUN mv docs test_docs/
332+
RUN cp -r examples test_docs/
332333
RUN mv vllm test_docs/
334+
RUN mv mkdocs.yaml test_docs/
333335
#################### TEST IMAGE ####################
334336

335337
#################### OPENAI API SERVER ####################

docs/.nav.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
nav:
2+
- Home:
3+
- vLLM: README.md
4+
- Getting Started:
5+
- getting_started/quickstart.md
6+
- getting_started/installation
7+
- Examples:
8+
- LMCache: getting_started/examples/lmcache
9+
- getting_started/examples/offline_inference
10+
- getting_started/examples/online_serving
11+
- getting_started/examples/other
12+
- Roadmap: https://roadmap.vllm.ai
13+
- Releases: https://github.com/vllm-project/vllm/releases
14+
- User Guide:
15+
- Inference and Serving:
16+
- serving/offline_inference.md
17+
- serving/openai_compatible_server.md
18+
- serving/*
19+
- serving/integrations
20+
- Training: training
21+
- Deployment:
22+
- deployment/*
23+
- deployment/frameworks
24+
- deployment/integrations
25+
- Performance: performance
26+
- Models:
27+
- models/supported_models.md
28+
- models/generative_models.md
29+
- models/pooling_models.md
30+
- models/extensions
31+
- Features:
32+
- features/compatibility_matrix.md
33+
- features/*
34+
- features/quantization
35+
- Other:
36+
- getting_started/*
37+
- Developer Guide:
38+
- contributing/overview.md
39+
- glob: contributing/*
40+
flatten_single_child_sections: true
41+
- contributing/model
42+
- Design Documents:
43+
- V0: design
44+
- V1: design/v1
45+
- API Reference:
46+
- api/README.md
47+
- glob: api/vllm/*
48+
preserve_directory_names: true
49+
- Community:
50+
- community/*
51+
- vLLM Blog: https://blog.vllm.ai

docs/Makefile

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/README.md

Lines changed: 50 additions & 43 deletions

docs/api/README.md

Lines changed: 107 additions & 0 deletions

docs/api/vllm/.meta.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
search:
2+
boost: 0.5

0 commit comments

Comments
 (0)