[Docs] Add dynamic version in docs (#90)

### What this PR does / why we need it?
Add dynamic version in docs

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Preview: https://vllm-ascend--90.org.readthedocs.build/en/90/

Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
This commit is contained in:
Yikun Jiang
2025-02-19 08:57:27 +08:00
committed by GitHub
parent c18fb09b55
commit 17de078d83
5 changed files with 35 additions and 18 deletions

View File

@@ -53,10 +53,20 @@ extensions = [
"sphinxarg.ext",
"sphinx_design",
"sphinx_togglebutton",
"sphinx_substitution_extensions",
]
myst_enable_extensions = [
"colon_fence",
]
myst_enable_extensions = ["colon_fence", "substitution"]
# Change this when cut down release
myst_substitutions = {
# the branch of vllm, used in vllm clone
# such as 'main', 'v0.7.1'
'vllm_version': 'main',
# the branch of vllm-ascend, used in vllm-ascend clone and image tag
# such as 'main', 'v0.7.1-dev', 'v0.7.1rc1'
'vllm_ascend_version': 'main'
}
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']