fix: ReadTheDocs should display all versions

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
Yuan Tang 2025-05-14 21:25:14 -04:00
parent ff247e35be
commit ed9ac853cd
No known key found for this signature in database
2 changed files with 11 additions and 3 deletions

View file

@ -59,9 +59,15 @@ jobs:
exit 1 exit 1
fi fi
# Get the version from the GitHub ref
VERSION=${GITHUB_REF#refs/*/}
response=$(curl -X POST \ response=$(curl -X POST \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{\"token\": \"$TOKEN\"}" \ -d "{
\"token\": \"$TOKEN\",
\"version\": \"$VERSION\"
}" \
https://readthedocs.org/api/v2/webhook/llama-stack/289768/) https://readthedocs.org/api/v2/webhook/llama-stack/289768/)
echo "Response: $response" echo "Response: $response"

View file

@ -110,6 +110,8 @@ html_theme_options = {
"canonical_url": "https://github.com/meta-llama/llama-stack", "canonical_url": "https://github.com/meta-llama/llama-stack",
"collapse_navigation": False, "collapse_navigation": False,
# "style_nav_header_background": "#c3c9d4", # "style_nav_header_background": "#c3c9d4",
'display_version': True,
'version_selector': True,
} }
default_dark_mode = False default_dark_mode = False