mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-01 16:24:44 +00:00
fix: ReadTheDocs should display all versions
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
parent
ff247e35be
commit
ed9ac853cd
2 changed files with 11 additions and 3 deletions
10
.github/workflows/update-readthedocs.yml
vendored
10
.github/workflows/update-readthedocs.yml
vendored
|
@ -59,13 +59,19 @@ jobs:
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Get the version from the GitHub ref
|
||||
VERSION=${GITHUB_REF#refs/*/}
|
||||
|
||||
response=$(curl -X POST \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"token\": \"$TOKEN\"}" \
|
||||
-d "{
|
||||
\"token\": \"$TOKEN\",
|
||||
\"version\": \"$VERSION\"
|
||||
}" \
|
||||
https://readthedocs.org/api/v2/webhook/llama-stack/289768/)
|
||||
|
||||
echo "Response: $response"
|
||||
if [ $(echo $response | jq -r '.build_triggered') != 'true' ]; then
|
||||
echo "Failed to trigger ReadTheDocs build"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
|
@ -110,6 +110,8 @@ html_theme_options = {
|
|||
"canonical_url": "https://github.com/meta-llama/llama-stack",
|
||||
"collapse_navigation": False,
|
||||
# "style_nav_header_background": "#c3c9d4",
|
||||
'display_version': True,
|
||||
'version_selector': True,
|
||||
}
|
||||
|
||||
default_dark_mode = False
|
||||
|
@ -142,4 +144,4 @@ def setup(app):
|
|||
return [node], []
|
||||
|
||||
app.add_role("dockerhub", dockerhub_role)
|
||||
app.add_role("repopath", repopath_role)
|
||||
app.add_role("repopath", repopath_role)
|
Loading…
Add table
Add a link
Reference in a new issue