fix: update version and fix docs release notes link

This commit is contained in:
Ashwin Bharambe 2025-03-03 11:48:57 -08:00
parent 789f918042
commit af396e3809
4 changed files with 10 additions and 3 deletions

View file

@ -21,6 +21,10 @@ with Path(__file__).parent.parent.parent.joinpath("pyproject.toml").open("rb") a
pyproject = tomli.load(f)
llama_stack_version = pyproject["project"]["version"]
# generate the full link including text and url here
llama_stack_version_url = f"https://github.com/meta-llama/llama-stack/releases/tag/v{llama_stack_version}"
llama_stack_version_link = f"<a href='{llama_stack_version_url}'>release notes</a>"
project = "llama-stack"
copyright = "2025, Meta"
author = "Meta"
@ -74,6 +78,7 @@ myst_enable_extensions = [
myst_substitutions = {
"docker_hub": "https://hub.docker.com/repository/docker/llamastack",
"llama_stack_version": llama_stack_version,
"llama_stack_version_link": llama_stack_version_link,
}
suppress_warnings = ['myst.header']

View file

@ -1,7 +1,7 @@
```{admonition} News
:class: tip
Llama Stack {{ llama_stack_version }} is now available! See the [release notes](https://github.com/meta-llama/llama-stack/releases/tag/v{{ llama_stack_version }}) for more details.
Llama Stack {{ llama_stack_version }} is now available! See the {{ llama_stack_version_link }} for more details.
```
# Llama Stack