[doc][mkdocs] Add edit button to documentation (#19637)

Signed-off-by: reidliu41 <reid201711@gmail.com>
Co-authored-by: reidliu41 <reid201711@gmail.com>
This commit is contained in:
Reid
2025-06-17 19:10:31 +08:00
committed by GitHub
parent ccd7c05089
commit 154d063b9f
3 changed files with 87 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
site_name: vLLM
site_url: https://docs.vllm.ai
repo_url: https://github.com/vllm-project/vllm
edit_uri: edit/main/docs/
exclude_docs: |
*.inc.md
*.template.md
@@ -29,6 +30,7 @@ theme:
icon: material/brightness-2
name: Switch to system preference
features:
- content.action.edit
- content.code.copy
- content.tabs.link
- navigation.tracking
@@ -124,6 +126,7 @@ extra_css:
extra_javascript:
- mkdocs/javascript/run_llm_widget.js
- https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML
- mkdocs/javascript/edit_and_feedback.js
# Makes the url format end in .html rather than act as a dir
# So index.md generates as index.html and is available under URL /index.html